diff options
| author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-07-19 18:24:17 -0300 |
|---|---|---|
| committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-07-19 18:24:17 -0300 |
| commit | 1c749a3059051c52c3bc24540e27b0ccbcfff273 (patch) | |
| tree | 55013cf056590f361dc444d2223dba23d8100aff /tree.h | |
| parent | cde6ab178200cc4bb79c287ecf40a7508953933a (diff) | |
| download | lua-1c749a3059051c52c3bc24540e27b0ccbcfff273.tar.gz lua-1c749a3059051c52c3bc24540e27b0ccbcfff273.tar.bz2 lua-1c749a3059051c52c3bc24540e27b0ccbcfff273.zip | |
Arvore binaria de strings, variaveis e constantes.
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 | ||
