diff options
Diffstat (limited to 'src/tree.h')
-rw-r--r-- | src/tree.h | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -1,7 +1,7 @@ /* ** tree.h ** TecCGraf - PUC-Rio -** $Id: tree.h,v 1.10 1995/10/17 11:53:53 roberto Exp $ +** $Id: tree.h,v 1.14 1996/02/26 17:07:49 roberto Exp $ */ #ifndef tree_h @@ -14,24 +14,15 @@ typedef struct TaggedString { + Word varindex; /* != NOT_USED if this is a symbol */ + Word constindex; /* != NOT_USED if this is a constant */ unsigned long hash; /* 0 if not initialized */ - char marked; /* for garbage collection */ + int marked; /* for garbage collection; never collect (nor change) if > 1 */ char str[1]; /* \0 byte already reserved */ } TaggedString; -typedef struct TreeNode -{ - struct TreeNode *right; - struct TreeNode *left; - unsigned short varindex; /* != NOT_USED if this is a symbol */ - unsigned short constindex; /* != NOT_USED if this is a constant */ - TaggedString ts; -} TreeNode; - TaggedString *lua_createstring (char *str); -TreeNode *lua_constcreate (char *str); Long lua_strcollector (void); -TreeNode *luaI_nodebysymbol (Word symbol); #endif |