aboutsummaryrefslogtreecommitdiff
path: root/table.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:40 -0300
commit41259bff31dbb904edfb8070006ccb15577f8f04 (patch)
tree664bf9cbe6394e9074435ecf2bd710712b4537c3 /table.h
parentafaa98a666acd5f596b50f56bb288815838c096e (diff)
downloadlua-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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/table.h b/table.h
index 10c89a92..37085fec 100644
--- a/table.h
+++ b/table.h
@@ -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 @@
13typedef struct 13typedef 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
23void lua_initconstant (void); 23void lua_initconstant (void);
24Word luaI_findsymbolbyname (char *name); 24Word luaI_findsymbolbyname (char *name);
25Word luaI_findsymbol (TreeNode *t); 25Word luaI_findsymbol (TaggedString *t);
26Word luaI_findconstant (TreeNode *t); 26Word luaI_findconstant (TaggedString *t);
27Word luaI_findconstantbyname (char *name); 27Word luaI_findconstantbyname (char *name);
28TaggedString *lua_constcreate (char *str);
28int lua_markobject (Object *o); 29int lua_markobject (Object *o);
29Long luaI_collectgarbage (void); 30Long luaI_collectgarbage (void);
30void lua_pack (void); 31void lua_pack (void);