BIG CHANGE: new data structure for constants, strings and globals, using

an array of hash tables for all them.
This commit is contained in:
Roberto Ierusalimschy
1996-02-12 15:32:40 -03:00
parent afaa98a666
commit 41259bff31
12 changed files with 146 additions and 135 deletions

View File

@@ -1,7 +1,7 @@
/*
** Module to control static tables
** TeCGraf - PUC-Rio
** $Id: table.h,v 2.15 1996/01/26 18:03:19 roberto Exp roberto $
** $Id: table.h,v 2.16 1996/02/06 16:18:21 roberto Exp roberto $
*/
#ifndef table_h
@@ -13,7 +13,7 @@
typedef struct
{
Object object;
TreeNode *varname;
TaggedString *varname;
} Symbol;
@@ -22,9 +22,10 @@ extern TaggedString **lua_constant;
void lua_initconstant (void);
Word luaI_findsymbolbyname (char *name);
Word luaI_findsymbol (TreeNode *t);
Word luaI_findconstant (TreeNode *t);
Word luaI_findsymbol (TaggedString *t);
Word luaI_findconstant (TaggedString *t);
Word luaI_findconstantbyname (char *name);
TaggedString *lua_constcreate (char *str);
int lua_markobject (Object *o);
Long luaI_collectgarbage (void);
void lua_pack (void);