diff options
author | Lua Team <team@lua.org> | 1996-05-14 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 1996-05-14 12:00:00 +0000 |
commit | 721542976ebc89f2f8d17d19be7e4426570b69be (patch) | |
tree | 0c79a45c63aa89d6e4b8ac80931e46d74a72f8cb /src/table.h | |
parent | 71754d2f6423fb9b6e87658e58bafc5470d53f65 (diff) | |
download | lua-github-2.4.tar.gz |
Lua 2.42.4
Diffstat (limited to 'src/table.h')
-rw-r--r-- | src/table.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/table.h b/src/table.h index 4e581401..d7003c96 100644 --- a/src/table.h +++ b/src/table.h @@ -1,7 +1,7 @@ /* ** Module to control static tables ** TeCGraf - PUC-Rio -** $Id: table.h,v 2.13 1995/10/26 14:21:56 roberto Exp $ +** $Id: table.h,v 2.21 1996/04/22 18:00:37 roberto Exp $ */ #ifndef table_h @@ -10,19 +10,28 @@ #include "tree.h" #include "opcode.h" -extern Symbol *lua_table; -extern TaggedString **lua_constant; +typedef struct +{ + Object object; + TaggedString *varname; +} Symbol; -extern char *lua_file[]; -extern int lua_nfile; +extern Symbol *lua_table; +extern Word lua_ntable; +extern TaggedString **lua_constant; +extern Word lua_nconstant; -void lua_initconstant (void); +void luaI_initsymbol (void); +void luaI_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 *luaI_createfixedstring (char *str); int lua_markobject (Object *o); +int luaI_ismarked (Object *o); +Long luaI_collectgarbage (void); void lua_pack (void); |