diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-29 18:22:22 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-29 18:22:22 -0200 |
| commit | 413fc7334bf8ceaea71417d73edef15c99d3a793 (patch) | |
| tree | 50e762d979ad8e80681902cdeb8aa42b041ae323 /lstate.h | |
| parent | fca0a12e23f964006ce43d35ab86b27c6bbb0a48 (diff) | |
| download | lua-413fc7334bf8ceaea71417d73edef15c99d3a793.tar.gz lua-413fc7334bf8ceaea71417d73edef15c99d3a793.tar.bz2 lua-413fc7334bf8ceaea71417d73edef15c99d3a793.zip | |
new implementation for lua upvalues (sugested by E.T.): simpler and solves
a bug for multi-stacks
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.h,v 1.63 2001/10/31 19:58:11 roberto Exp $ | 2 | ** $Id: lstate.h,v 1.64 2001/11/06 21:40:51 roberto Exp $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -65,10 +65,10 @@ typedef struct global_State { | |||
| 65 | lu_mem GCthreshold; | 65 | lu_mem GCthreshold; |
| 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 closures */ |
| 69 | Table *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 | TObject *rootupval; /* list of all up values */ | 71 | UpVal *rootupval; /* list of closed up values */ |
| 72 | } global_State; | 72 | } global_State; |
| 73 | 73 | ||
| 74 | 74 | ||
| @@ -88,7 +88,7 @@ struct lua_State { | |||
| 88 | lua_Hook linehook; | 88 | lua_Hook linehook; |
| 89 | int allowhooks; | 89 | int allowhooks; |
| 90 | struct lua_longjmp *errorJmp; /* current error recover point */ | 90 | struct lua_longjmp *errorJmp; /* current error recover point */ |
| 91 | Closure *opencl; /* list of closures still pointing to this stack */ | 91 | UpVal *openupval; /* list of open upvalues in this stack */ |
| 92 | lua_State *next; /* circular double linked list of states */ | 92 | lua_State *next; /* circular double linked list of states */ |
| 93 | lua_State *previous; | 93 | lua_State *previous; |
| 94 | CallInfo basefunc; | 94 | CallInfo basefunc; |
