lu_byte
LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2];
lu_byte old_allowhooks = L->allowhook;
lu_byte h[LUAC_HEADERSIZE];
lu_byte oldah = L->allowhook;
#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS)
#define resetbits(x,m) ((x) &= cast(lu_byte, ~(m)))
#define cast_byte(i) cast(lu_byte, (i))
static const lu_byte log_2[256] = {
lu_byte extra; /* reserved words for short strings; "has hash" for longs */
lu_byte instack; /* whether it is in stack */
lu_byte idx; /* index of upvalue (in stack or in outer function's list) */
lu_byte numparams; /* number of fixed parameters */
lu_byte is_vararg;
lu_byte maxstacksize; /* maximum stack used by this function */
CommonHeader; lu_byte nupvalues; GCObject *gclist
lu_byte flags; /* 1<<p means tagmethod(p) is not present */
lu_byte lsizenode; /* log2 of size of `node' array */
#define CommonHeader GCObject *next; lu_byte tt; lu_byte marked
LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES];
lu_byte left; /* left priority for each binary operator */
lu_byte right; /* right priority */
static void enterblock (FuncState *fs, BlockCnt *bl, lu_byte isloop) {
lu_byte nactvar; /* # active locals outside the block */
lu_byte upval; /* true if some variable in the block is an upvalue */
lu_byte isloop; /* true if `block' is a loop */
lu_byte nactvar; /* number of active local variables */
lu_byte nups; /* number of upvalues */
lu_byte freereg; /* first free register */
lu_byte t; /* table (register or upvalue) */
lu_byte vt; /* whether 't' is register (VLOCAL) or upvalue (VUPVAL) */
lu_byte nactvar; /* local level where it appears in current block */
#define fromstate(L) (cast(LX *, cast(lu_byte *, (L)) - offsetof(LX, l)))
lu_byte currentwhite;
lu_byte gcstate; /* state of garbage collector */
lu_byte gckind; /* kind of GC running */
lu_byte gcrunning; /* true if GC is running */
lu_byte status;
lu_byte hookmask;
lu_byte allowhook;
lu_byte callstatus;
lu_byte old_allowhook;
lu_byte status;
lu_byte h[LUAC_HEADERSIZE];
lu_byte s[LUAC_HEADERSIZE];
void luaU_header (lu_byte* h)
#define LoadByte(S) (lu_byte)LoadChar(S)
LUAI_FUNC void luaU_header (lu_byte* h);
lu_byte mask = L->hookmask;