Soft'N'Design Software
/
projects
/
calc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove limitation on max number of operands
[calc.git]
/
parser.h
diff --git
a/parser.h
b/parser.h
index 49acc2080005a8c4cef2f635c71010889f71d09a..67dd9ab2a7f9ef1f64f6c5eea95c665294c35af1 100644
(file)
--- a/
parser.h
+++ b/
parser.h
@@
-34,11
+34,10
@@
typedef struct _keyword_t {
/* calculus element type */
-#define MAX_OPERANDS 10
typedef struct _element_t {
func_t func;
int nbops;
- struct _element_t *
ops[MAX_OPERANDS]
;
+ struct _element_t *
*ops
;
double value;
int prio;
} element_t;