diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-25 17:12:21 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-25 17:12:21 -0200 |
commit | 0b551a24f81153f58bee3c528515e54378c0831a (patch) | |
tree | cb619fbdb394edfa54be98d2bb48e1f0e9bffe79 | |
parent | 8069f77ca4b33177c881e35cb329415eb44b7147 (diff) | |
download | lua-0b551a24f81153f58bee3c528515e54378c0831a.tar.gz lua-0b551a24f81153f58bee3c528515e54378c0831a.tar.bz2 lua-0b551a24f81153f58bee3c528515e54378c0831a.zip |
`Hash' -> `Table'
-rw-r--r-- | lparser.h | 4 | ||||
-rw-r--r-- | lstate.h | 8 |
2 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.h,v 1.34 2001/08/27 15:16:28 roberto Exp $ | 2 | ** $Id: lparser.h,v 1.35 2001/09/07 17:39:10 roberto Exp $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -68,7 +68,7 @@ typedef struct FuncState { | |||
68 | int jlt; /* list of jumps to `lasttarget' */ | 68 | int jlt; /* list of jumps to `lasttarget' */ |
69 | int freereg; /* first free register */ | 69 | int freereg; /* first free register */ |
70 | int nk; /* number of elements in `k' */ | 70 | int nk; /* number of elements in `k' */ |
71 | Hash *h; /* table to find (and reuse) elements in `k' */ | 71 | Table *h; /* table to find (and reuse) elements in `k' */ |
72 | int np; /* number of elements in `p' */ | 72 | int np; /* number of elements in `p' */ |
73 | int nlineinfo; /* number of elements in `lineinfo' */ | 73 | int nlineinfo; /* number of elements in `lineinfo' */ |
74 | int nlocvars; /* number of elements in `locvars' */ | 74 | int nlocvars; /* number of elements in `locvars' */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.60 2001/10/02 16:43:29 roberto Exp $ | 2 | ** $Id: lstate.h,v 1.61 2001/10/17 21:12:57 roberto Exp $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -57,7 +57,7 @@ typedef struct global_State { | |||
57 | void *Mbuffer; /* global buffer */ | 57 | void *Mbuffer; /* global buffer */ |
58 | size_t Mbuffsize; /* size of Mbuffer */ | 58 | size_t Mbuffsize; /* size of Mbuffer */ |
59 | stringtable strt; /* hash table for strings */ | 59 | stringtable strt; /* hash table for strings */ |
60 | Hash *type2tag; /* hash table from type names to tags */ | 60 | Table *type2tag; /* hash table from type names to tags */ |
61 | TObject registry; /* registry table */ | 61 | TObject registry; /* registry table */ |
62 | struct TM *TMtable; /* table for tag methods */ | 62 | struct TM *TMtable; /* table for tag methods */ |
63 | int sizeTM; /* size of TMtable */ | 63 | int sizeTM; /* size of TMtable */ |
@@ -66,7 +66,7 @@ typedef struct global_State { | |||
66 | lu_mem nblocks; /* number of `bytes' currently allocated */ | 66 | lu_mem nblocks; /* number of `bytes' currently allocated */ |
67 | Proto *rootproto; /* list of all prototypes */ | 67 | Proto *rootproto; /* list of all prototypes */ |
68 | Closure *rootcl; /* list of all C closures and closed Lua closures */ | 68 | Closure *rootcl; /* list of all C closures and closed Lua closures */ |
69 | Hash *roottable; /* list of all tables */ | 69 | Table *roottable; /* list of all tables */ |
70 | Udata *rootudata; /* list of all userdata */ | 70 | Udata *rootudata; /* list of all userdata */ |
71 | UpVal *rootupval; /* list of all up values */ | 71 | UpVal *rootupval; /* list of all up values */ |
72 | } global_State; | 72 | } global_State; |
@@ -80,7 +80,7 @@ struct lua_State { | |||
80 | StkId top; /* first free slot in the stack */ | 80 | StkId top; /* first free slot in the stack */ |
81 | CallInfo *ci; /* call info for current function */ | 81 | CallInfo *ci; /* call info for current function */ |
82 | StkId stack_last; /* last free slot in the stack */ | 82 | StkId stack_last; /* last free slot in the stack */ |
83 | Hash *gt; /* table for globals */ | 83 | Table *gt; /* table for globals */ |
84 | global_State *G; | 84 | global_State *G; |
85 | StkId stack; /* stack base */ | 85 | StkId stack; /* stack base */ |
86 | int stacksize; | 86 | int stacksize; |