diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-07 16:31:03 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-07 16:31:03 -0500 |
commit | 025ed8530ce92d4a2282af8bba1b9e3e93afbb99 (patch) | |
tree | 9c2414485d90c3745340eaed682baaed7127ffa0 /include/variable.h | |
parent | 12fa2716dbc3ea80c833411b12fe403421cebb00 (diff) |
need to sync with desktop
Diffstat (limited to 'include/variable.h')
-rw-r--r-- | include/variable.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/include/variable.h b/include/variable.h index fd84a6e..067ce13 100644 --- a/include/variable.h +++ b/include/variable.h @@ -1,24 +1,21 @@ -#ifndef TOKEN_H_ -#define TOKEN_H_ +#ifndef VARIABLE_H_ +#define VARIABLE_H_ #include <stdint.h> typedef struct { - uint16_t nameidx; - uint8_t type; - uint8_t info; + uint8_t used :1; + uint8_t fromc :1; + uint8_t valtype :2; uint32_t value; + char *svalue; } variable; -#define INFO_ARGS(x) ((x) & 0x07) -#define INFO_RET (1 << 3) - -enum vartype { - VALUE = 0, - VARIABLE, - OPERATOR, - FUNCTION, - CFUNCTION +enum valtype { + STRING = 0, + INTEGER, + FLOAT, + FUNC }; -#endif // TOKEN_H_ +#endif // VARIABLE_H_ |