diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-12 11:23:17 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-12 11:23:17 -0500 |
commit | 5d85baa270b046eedf472d4cb851fe17fb608fc5 (patch) | |
tree | 346fe38604047b1d25157af0966a1561961a3b4c /variable.h | |
parent | 1d092d70a3c941920da6fb25899bac0aec5cf6bf (diff) |
indent fixes, nested conditionals
Diffstat (limited to 'variable.h')
-rw-r--r-- | variable.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |