diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-08 20:42:41 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-08 20:42:41 -0200 |
| commit | e01f5e680951a66bd67a22eeed1d9e05ab30b9f2 (patch) | |
| tree | 99ff32eedd3bf3194561f5a2d916d948ba81c4f9 /lstate.h | |
| parent | cbfc581990db2e20ee06670dbf84f28bcfe1dc42 (diff) | |
| download | lua-e01f5e680951a66bd67a22eeed1d9e05ab30b9f2.tar.gz lua-e01f5e680951a66bd67a22eeed1d9e05ab30b9f2.tar.bz2 lua-e01f5e680951a66bd67a22eeed1d9e05ab30b9f2.zip | |
better order of record fields for 64-bit machines
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 24 |
1 files changed, 12 insertions, 12 deletions
| @@ -79,9 +79,9 @@ struct lua_longjmp; /* defined in ldo.c */ | |||
| 79 | 79 | ||
| 80 | 80 | ||
| 81 | typedef struct stringtable { | 81 | typedef struct stringtable { |
| 82 | int size; | ||
| 83 | ls_nstr nuse; /* number of elements */ | ||
| 84 | TString **hash; | 82 | TString **hash; |
| 83 | ls_nstr nuse; /* number of elements */ | ||
| 84 | int size; | ||
| 85 | } stringtable; | 85 | } stringtable; |
| 86 | 86 | ||
| 87 | 87 | ||
| @@ -109,17 +109,17 @@ typedef struct CallInfo { | |||
| 109 | ** `global state', shared by all threads of this state | 109 | ** `global state', shared by all threads of this state |
| 110 | */ | 110 | */ |
| 111 | typedef struct global_State { | 111 | typedef struct global_State { |
| 112 | void *Mbuffer; /* global buffer */ | ||
| 113 | size_t Mbuffsize; /* size of Mbuffer */ | ||
| 114 | stringtable strt; /* hash table for strings */ | 112 | stringtable strt; /* hash table for strings */ |
| 115 | lu_mem GCthreshold; | ||
| 116 | lu_mem nblocks; /* number of `bytes' currently allocated */ | ||
| 117 | Proto *rootproto; /* list of all prototypes */ | 113 | Proto *rootproto; /* list of all prototypes */ |
| 118 | Closure *rootcl; /* list of all closures */ | 114 | Closure *rootcl; /* list of all closures */ |
| 119 | Table *roottable; /* list of all tables */ | 115 | Table *roottable; /* list of all tables */ |
| 120 | UpVal *rootupval; /* list of closed up values */ | 116 | UpVal *rootupval; /* list of closed up values */ |
| 121 | Udata *rootudata; /* list of all userdata */ | 117 | Udata *rootudata; /* list of all userdata */ |
| 122 | Udata *tmudata; /* list of userdata to be GC */ | 118 | Udata *tmudata; /* list of userdata to be GC */ |
| 119 | void *Mbuffer; /* global buffer */ | ||
| 120 | size_t Mbuffsize; /* size of Mbuffer */ | ||
| 121 | lu_mem GCthreshold; | ||
| 122 | lu_mem nblocks; /* number of `bytes' currently allocated */ | ||
| 123 | TString *tmname[TM_N]; /* array with tag-method names */ | 123 | TString *tmname[TM_N]; /* array with tag-method names */ |
| 124 | } global_State; | 124 | } global_State; |
| 125 | 125 | ||
| @@ -133,19 +133,19 @@ struct lua_State { | |||
| 133 | CallInfo *ci; /* call info for current function */ | 133 | CallInfo *ci; /* call info for current function */ |
| 134 | StkId stack_last; /* last free slot in the stack */ | 134 | StkId stack_last; /* last free slot in the stack */ |
| 135 | StkId stack; /* stack base */ | 135 | StkId stack; /* stack base */ |
| 136 | int stacksize; | ||
| 137 | int maxstacksize; | ||
| 138 | CallInfo *end_ci; /* points after end of ci array*/ | 136 | CallInfo *end_ci; /* points after end of ci array*/ |
| 139 | CallInfo *base_ci; /* array of CallInfo's */ | 137 | CallInfo *base_ci; /* array of CallInfo's */ |
| 140 | int size_ci; /* size of array `base_ci' */ | ||
| 141 | global_State *_G; | 138 | global_State *_G; |
| 142 | lua_Hook callhook; | ||
| 143 | lua_Hook linehook; | ||
| 144 | int allowhooks; | ||
| 145 | struct lua_longjmp *errorJmp; /* current error recover point */ | 139 | struct lua_longjmp *errorJmp; /* current error recover point */ |
| 146 | UpVal *openupval; /* list of open upvalues in this stack */ | 140 | UpVal *openupval; /* list of open upvalues in this stack */ |
| 147 | lua_State *next; /* circular double linked list of states */ | 141 | lua_State *next; /* circular double linked list of states */ |
| 148 | lua_State *previous; | 142 | lua_State *previous; |
| 143 | int stacksize; | ||
| 144 | int maxstacksize; | ||
| 145 | int size_ci; /* size of array `base_ci' */ | ||
| 146 | int allowhooks; | ||
| 147 | lua_Hook callhook; | ||
| 148 | lua_Hook linehook; | ||
| 149 | }; | 149 | }; |
| 150 | 150 | ||
| 151 | 151 | ||
