aboutsummaryrefslogtreecommitdiffstats
path: root/variable.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-02-12 11:23:17 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-02-12 11:23:17 -0500
commit5d85baa270b046eedf472d4cb851fe17fb608fc5 (patch)
tree346fe38604047b1d25157af0966a1561961a3b4c /variable.h
parent1d092d70a3c941920da6fb25899bac0aec5cf6bf (diff)
indent fixes, nested conditionals
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);