mirror of https://github.com/lua/lua
small improvements for allignments
This commit is contained in:
parent
64205e91a3
commit
ea2cc2bc47
10
lstate.h
10
lstate.h
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lstate.h,v 2.22 2005/06/03 20:15:58 roberto Exp roberto $
|
** $Id: lstate.h,v 2.23 2005/07/09 13:22:34 roberto Exp roberto $
|
||||||
** Global State
|
** Global State
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -49,8 +49,8 @@ typedef struct CallInfo {
|
||||||
StkId base; /* base for this function */
|
StkId base; /* base for this function */
|
||||||
StkId func; /* function index in the stack */
|
StkId func; /* function index in the stack */
|
||||||
StkId top; /* top for this function */
|
StkId top; /* top for this function */
|
||||||
int nresults; /* expected number of results from this function */
|
|
||||||
const Instruction *savedpc;
|
const Instruction *savedpc;
|
||||||
|
int nresults; /* expected number of results from this function */
|
||||||
int tailcalls; /* number of tail calls lost under this entry */
|
int tailcalls; /* number of tail calls lost under this entry */
|
||||||
} CallInfo;
|
} CallInfo;
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ typedef struct global_State {
|
||||||
void *ud; /* auxiliary data to `frealloc' */
|
void *ud; /* auxiliary data to `frealloc' */
|
||||||
lu_byte currentwhite;
|
lu_byte currentwhite;
|
||||||
lu_byte gcstate; /* state of garbage collector */
|
lu_byte gcstate; /* state of garbage collector */
|
||||||
|
int sweepstrgc; /* position of sweep in `strt' */
|
||||||
GCObject *rootgc; /* list of all collectable objects */
|
GCObject *rootgc; /* list of all collectable objects */
|
||||||
GCObject **sweepgc; /* position of sweep in `rootgc' */
|
GCObject **sweepgc; /* position of sweep in `rootgc' */
|
||||||
int sweepstrgc; /* position of sweep in `strt' */
|
|
||||||
GCObject *gray; /* list of gray objects */
|
GCObject *gray; /* list of gray objects */
|
||||||
GCObject *grayagain; /* list of objects to be traversed atomically */
|
GCObject *grayagain; /* list of objects to be traversed atomically */
|
||||||
GCObject *weak; /* list of weak tables (to be cleared) */
|
GCObject *weak; /* list of weak tables (to be cleared) */
|
||||||
|
@ -99,6 +99,7 @@ typedef struct global_State {
|
||||||
*/
|
*/
|
||||||
struct lua_State {
|
struct lua_State {
|
||||||
CommonHeader;
|
CommonHeader;
|
||||||
|
lu_byte status;
|
||||||
StkId top; /* first free slot in the stack */
|
StkId top; /* first free slot in the stack */
|
||||||
StkId base; /* base of current function */
|
StkId base; /* base of current function */
|
||||||
global_State *l_G;
|
global_State *l_G;
|
||||||
|
@ -106,14 +107,13 @@ struct lua_State {
|
||||||
const Instruction *savedpc; /* `savedpc' of current function */
|
const Instruction *savedpc; /* `savedpc' of current function */
|
||||||
StkId stack_last; /* last free slot in the stack */
|
StkId stack_last; /* last free slot in the stack */
|
||||||
StkId stack; /* stack base */
|
StkId stack; /* stack base */
|
||||||
int stacksize;
|
|
||||||
CallInfo *end_ci; /* points after end of ci array*/
|
CallInfo *end_ci; /* points after end of ci array*/
|
||||||
CallInfo *base_ci; /* array of CallInfo's */
|
CallInfo *base_ci; /* array of CallInfo's */
|
||||||
|
int stacksize;
|
||||||
int size_ci; /* size of array `base_ci' */
|
int size_ci; /* size of array `base_ci' */
|
||||||
unsigned short nCcalls; /* number of nested C calls */
|
unsigned short nCcalls; /* number of nested C calls */
|
||||||
lu_byte hookmask;
|
lu_byte hookmask;
|
||||||
lu_byte allowhook;
|
lu_byte allowhook;
|
||||||
lu_byte status;
|
|
||||||
int basehookcount;
|
int basehookcount;
|
||||||
int hookcount;
|
int hookcount;
|
||||||
lua_Hook hook;
|
lua_Hook hook;
|
||||||
|
|
Loading…
Reference in New Issue