summaryrefslogtreecommitdiff
path: root/math/eval/files/patch-ab
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-04-26 03:25:11 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-04-26 03:25:11 +0000
commit50db84abd37e97f7cbbfbed00f9ab3f3240ee0e3 (patch)
tree90e6070b2a800afe8f93647724540a734eb5abef /math/eval/files/patch-ab
parentportlint. (diff)
Import of Eval v113, a command-line based floating-point calculator.
PR: 4979 Submitted by: Slaven Rezic <eserte@cs.tu-berlin.de>
Notes
Notes: svn path=/head/; revision=10680
Diffstat (limited to '')
-rw-r--r--math/eval/files/patch-ab33
1 files changed, 33 insertions, 0 deletions
diff --git a/math/eval/files/patch-ab b/math/eval/files/patch-ab
new file mode 100644
index 000000000000..84b35dd51993
--- /dev/null
+++ b/math/eval/files/patch-ab
@@ -0,0 +1,33 @@
+--- /tmp/Eval/source/eval.h Tue Apr 13 21:04:44 1993
++++ eval.h Wed Mar 16 04:26:57 1994
+@@ -55,6 +55,8 @@
+ #define MAXINPUT 160
+ #define NUMFUNCS 30
+ #define MAXFLEN 6
++#define MAXALEN 3
++#define MAXDLEN 80
+ #define SCRWIDTH 80
+ #define MAXARGS 10
+ #define EOS '\0'
+@@ -115,6 +117,12 @@
+ char type;
+ int code;
+ } TOKEN, *TOKENPTR;
++typedef struct {
++ int id;
++ char name[MAXFLEN+1];
++ char argspec[MAXALEN+1];
++ char desc[MAXDLEN+1];
++ } FUNC, *FUNCPTR;
+
+ /* Function definitions */
+
+@@ -131,6 +139,8 @@
+ char *func_name (int);
+ int func_nargs (int);
+ int print_funclist (FILE *s,char *input,int d);
++
++extern FUNC flist[];
+
+ /* ----- PARSE.C functions -------------------------------------------- */
+