diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-12 15:32:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-12 15:32:40 -0300 |
commit | 41259bff31dbb904edfb8070006ccb15577f8f04 (patch) | |
tree | 664bf9cbe6394e9074435ecf2bd710712b4537c3 /table.h | |
parent | afaa98a666acd5f596b50f56bb288815838c096e (diff) | |
download | lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.gz lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.bz2 lua-41259bff31dbb904edfb8070006ccb15577f8f04.zip |
BIG CHANGE: new data structure for constants, strings and globals, using
an array of hash tables for all them.
Diffstat (limited to 'table.h')
-rw-r--r-- | table.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | ** Module to control static tables | 2 | ** Module to control static tables |
3 | ** TeCGraf - PUC-Rio | 3 | ** TeCGraf - PUC-Rio |
4 | ** $Id: table.h,v 2.15 1996/01/26 18:03:19 roberto Exp roberto $ | 4 | ** $Id: table.h,v 2.16 1996/02/06 16:18:21 roberto Exp roberto $ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef table_h | 7 | #ifndef table_h |
@@ -13,7 +13,7 @@ | |||
13 | typedef struct | 13 | typedef struct |
14 | { | 14 | { |
15 | Object object; | 15 | Object object; |
16 | TreeNode *varname; | 16 | TaggedString *varname; |
17 | } Symbol; | 17 | } Symbol; |
18 | 18 | ||
19 | 19 | ||
@@ -22,9 +22,10 @@ extern TaggedString **lua_constant; | |||
22 | 22 | ||
23 | void lua_initconstant (void); | 23 | void lua_initconstant (void); |
24 | Word luaI_findsymbolbyname (char *name); | 24 | Word luaI_findsymbolbyname (char *name); |
25 | Word luaI_findsymbol (TreeNode *t); | 25 | Word luaI_findsymbol (TaggedString *t); |
26 | Word luaI_findconstant (TreeNode *t); | 26 | Word luaI_findconstant (TaggedString *t); |
27 | Word luaI_findconstantbyname (char *name); | 27 | Word luaI_findconstantbyname (char *name); |
28 | TaggedString *lua_constcreate (char *str); | ||
28 | int lua_markobject (Object *o); | 29 | int lua_markobject (Object *o); |
29 | Long luaI_collectgarbage (void); | 30 | Long luaI_collectgarbage (void); |
30 | void lua_pack (void); | 31 | void lua_pack (void); |