aboutsummaryrefslogtreecommitdiffstats
path: root/variable.h
diff options
context:
space:
mode:
Diffstat (limited to 'variable.h')
-rw-r--r--variable.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/variable.h b/variable.h
index 82c6b25..e5aa20c 100644
--- a/variable.h
+++ b/variable.h
@@ -9,7 +9,7 @@
typedef struct {
uint8_t used :1;
uint8_t fromc :1;
- uint8_t valtype :2;
+ uint8_t valtype :4;
uint32_t value;
char *svalue;
} variable;
@@ -18,9 +18,13 @@ enum valtype {
STRING = 0,
INTEGER,
FLOAT,
- FUNC
+ FUNC,
+ EXPR
};
+variable *vmake(uint8_t fromc, uint8_t valtype, void *value);
+variable *vmakef(float value);
+
void isetstr(variable *i);
void fsetstr(variable *f);