diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-18 15:18:09 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-18 15:18:09 -0200 |
| commit | 334ba8132bd0471ffe2a9964b577d3ae89ec490a (patch) | |
| tree | 3e0dde3bca4f1f51dad42d8c85ad9cb624aab1fa /lstate.h | |
| parent | ac71a0891d8571816ce32b5c2c1fd97942decf71 (diff) | |
| download | lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.tar.gz lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.tar.bz2 lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.zip | |
cleaner way to remark open upvalues
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.h,v 2.11 2005/01/05 18:20:51 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.12 2005/01/14 14:19:42 roberto Exp $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -72,7 +72,6 @@ typedef struct global_State { | |||
| 72 | lu_byte currentwhite; | 72 | lu_byte currentwhite; |
| 73 | lu_byte gcstate; /* state of garbage collector */ | 73 | lu_byte gcstate; /* state of garbage collector */ |
| 74 | GCObject *rootgc; /* list of all collectable objects */ | 74 | GCObject *rootgc; /* list of all collectable objects */ |
| 75 | GCObject *firstudata; /* udata go to the end of `rootgc' */ | ||
| 76 | GCObject **sweepgc; /* position of sweep in `rootgc' */ | 75 | GCObject **sweepgc; /* position of sweep in `rootgc' */ |
| 77 | int sweepstrgc; /* position of sweep in `strt' */ | 76 | int sweepstrgc; /* position of sweep in `strt' */ |
| 78 | GCObject *gray; /* list of gray objects */ | 77 | GCObject *gray; /* list of gray objects */ |
| @@ -89,6 +88,7 @@ typedef struct global_State { | |||
| 89 | lua_CFunction panic; /* to be called in unprotected errors */ | 88 | lua_CFunction panic; /* to be called in unprotected errors */ |
| 90 | TValue _registry; | 89 | TValue _registry; |
| 91 | struct lua_State *mainthread; | 90 | struct lua_State *mainthread; |
| 91 | UpVal uvhead; /* head of double-linked list of all open upvalues */ | ||
| 92 | TString *tmname[TM_N]; /* array with tag-method names */ | 92 | TString *tmname[TM_N]; /* array with tag-method names */ |
| 93 | } global_State; | 93 | } global_State; |
| 94 | 94 | ||
