diff options
Diffstat (limited to 'tree.h')
| -rw-r--r-- | tree.h | 27 |
1 files changed, 27 insertions, 0 deletions
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | ** tree.h | ||
| 3 | ** TecCGraf - PUC-Rio | ||
| 4 | ** $Id: $ | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef tree_h | ||
| 8 | #define tree_h | ||
| 9 | |||
| 10 | #include "opcode.h" | ||
| 11 | |||
| 12 | |||
| 13 | #define UNMARKED_STRING 0xFFFF | ||
| 14 | #define MARKED_STRING 0xFFFE | ||
| 15 | #define MAX_WORD 0xFFFD | ||
| 16 | |||
| 17 | #define indexstring(s) (*(((Word *)s)-1)) | ||
| 18 | |||
| 19 | |||
| 20 | char *lua_strcreate (char *str); | ||
| 21 | char *lua_constcreate (char *str); | ||
| 22 | char *lua_varcreate (char *str); | ||
| 23 | void lua_strcollector (void); | ||
| 24 | char *lua_varnext (char *n); | ||
| 25 | char *lua_varname (Word index); | ||
| 26 | |||
| 27 | #endif | ||
