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
correct a double freeze
[calc.git]
/
parser.h
diff --git
a/parser.h
b/parser.h
index 4907c67699a74dc69f5655065e5165df7ae8b072..0b9233fa406a25834e6cb93c8acea5cc505f7272 100644
(file)
--- a/
parser.h
+++ b/
parser.h
@@
-20,7
+20,7
@@
typedef enum {
Ans, E, Pi,
Equal, Diff, Ge, Le, Gt, Lt,
And, Or, Not,
Ans, E, Pi,
Equal, Diff, Ge, Le, Gt, Lt,
And, Or, Not,
- Cond, While,
Prog
, Print,
+ Cond, While,
Code
, Print,
Prog, Call, List, Edit, Del
} func_t;
Prog, Call, List, Edit, Del
} func_t;
@@
-43,6
+43,7
@@
typedef struct _element_t {
double value;
int prio;
int hidden;
double value;
int prio;
int hidden;
+ char *string;
} element_t;
#define ERROR_OP ((element_t *)(-1))
} element_t;
#define ERROR_OP ((element_t *)(-1))
@@
-53,7
+54,9
@@
typedef struct _workspace_t {
int id;
double answer;
double *storage;
int id;
double answer;
double *storage;
+ int storage_size;
element_t *root;
element_t *root;
+ char *string;
} workspace_t;
/* parser function */
} workspace_t;
/* parser function */