summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1996-05-14 12:00:00 +0000
committerrepogen <>1996-05-14 12:00:00 +0000
commit721542976ebc89f2f8d17d19be7e4426570b69be (patch)
tree0c79a45c63aa89d6e4b8ac80931e46d74a72f8cb /src/tree.h
parent71754d2f6423fb9b6e87658e58bafc5470d53f65 (diff)
downloadlua-github-2.4.tar.gz
Lua 2.42.4
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/tree.h b/src/tree.h
index 48ecb02c..f3af0a0a 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -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