Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Data Structures | |
union | Value |
struct | TValue |
union | StackValue |
struct | GCObject |
struct | TString |
union | UValue |
struct | Udata |
struct | Udata0 |
struct | Upvaldesc |
struct | LocVar |
struct | AbsLineInfo |
struct | Proto |
struct | UpVal |
struct | CClosure |
struct | LClosure |
union | Closure |
union | Node |
struct | Node::NodeKey |
struct | Table |
Macros | |
#define | LUA_TUPVAL LUA_NUMTYPES /* upvalues */ |
#define | LUA_TPROTO (LUA_NUMTYPES+1) /* function prototypes */ |
#define | LUA_TDEADKEY (LUA_NUMTYPES+2) /* removed keys in tables */ |
#define | LUA_TOTALTYPES (LUA_TPROTO + 2) |
#define | makevariant(t, v) ((t) | ((v) << 4)) |
#define | TValuefields Value value_; lu_byte tt_ |
#define | val_(o) ((o)->value_) |
#define | valraw(o) (&val_(o)) |
#define | rawtt(o) ((o)->tt_) |
#define | novariant(t) ((t) & 0x0F) |
#define | withvariant(t) ((t) & 0x3F) |
#define | ttypetag(o) withvariant(rawtt(o)) |
#define | ttype(o) (novariant(rawtt(o))) |
#define | checktag(o, t) (rawtt(o) == (t)) |
#define | checktype(o, t) (ttype(o) == (t)) |
#define | righttt(obj) (ttypetag(obj) == gcvalue(obj)->tt) |
#define | checkliveness(L, obj) |
#define | settt_(o, t) ((o)->tt_=(t)) |
#define | setobj(L, obj1, obj2) |
#define | setobjs2s(L, o1, o2) setobj(L,s2v(o1),s2v(o2)) |
#define | setobj2s(L, o1, o2) setobj(L,s2v(o1),o2) |
#define | setobjt2t setobj |
#define | setobj2n setobj |
#define | setobj2t setobj |
#define | s2v(o) (&(o)->val) |
#define | LUA_VNIL makevariant(LUA_TNIL, 0) |
#define | LUA_VEMPTY makevariant(LUA_TNIL, 1) |
#define | LUA_VABSTKEY makevariant(LUA_TNIL, 2) |
#define | ttisnil(v) checktype((v), LUA_TNIL) |
#define | ttisstrictnil(o) checktag((o), LUA_VNIL) |
#define | setnilvalue(obj) settt_(obj, LUA_VNIL) |
#define | isabstkey(v) checktag((v), LUA_VABSTKEY) |
#define | isnonstrictnil(v) (ttisnil(v) && !ttisstrictnil(v)) |
#define | isempty(v) ttisnil(v) |
#define | ABSTKEYCONSTANT {NULL}, LUA_VABSTKEY |
#define | setempty(v) settt_(v, LUA_VEMPTY) |
#define | LUA_VFALSE makevariant(LUA_TBOOLEAN, 0) |
#define | LUA_VTRUE makevariant(LUA_TBOOLEAN, 1) |
#define | ttisboolean(o) checktype((o), LUA_TBOOLEAN) |
#define | ttisfalse(o) checktag((o), LUA_VFALSE) |
#define | ttistrue(o) checktag((o), LUA_VTRUE) |
#define | l_isfalse(o) (ttisfalse(o) || ttisnil(o)) |
#define | setbfvalue(obj) settt_(obj, LUA_VFALSE) |
#define | setbtvalue(obj) settt_(obj, LUA_VTRUE) |
#define | LUA_VTHREAD makevariant(LUA_TTHREAD, 0) |
#define | ttisthread(o) checktag((o), ctb(LUA_VTHREAD)) |
#define | thvalue(o) check_exp(ttisthread(o), gco2th(val_(o).gc)) |
#define | setthvalue(L, obj, x) |
#define | setthvalue2s(L, o, t) setthvalue(L,s2v(o),t) |
#define | CommonHeader struct GCObject *next; lu_byte tt; lu_byte marked |
#define | BIT_ISCOLLECTABLE (1 << 6) |
#define | iscollectable(o) (rawtt(o) & BIT_ISCOLLECTABLE) |
#define | ctb(t) ((t) | BIT_ISCOLLECTABLE) |
#define | gcvalue(o) check_exp(iscollectable(o), val_(o).gc) |
#define | gcvalueraw(v) ((v).gc) |
#define | setgcovalue(L, obj, x) |
#define | LUA_VNUMINT makevariant(LUA_TNUMBER, 0) /* integer numbers */ |
#define | LUA_VNUMFLT makevariant(LUA_TNUMBER, 1) /* float numbers */ |
#define | ttisnumber(o) checktype((o), LUA_TNUMBER) |
#define | ttisfloat(o) checktag((o), LUA_VNUMFLT) |
#define | ttisinteger(o) checktag((o), LUA_VNUMINT) |
#define | nvalue(o) |
#define | fltvalue(o) check_exp(ttisfloat(o), val_(o).n) |
#define | ivalue(o) check_exp(ttisinteger(o), val_(o).i) |
#define | fltvalueraw(v) ((v).n) |
#define | ivalueraw(v) ((v).i) |
#define | setfltvalue(obj, x) { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_VNUMFLT); } |
#define | chgfltvalue(obj, x) { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); } |
#define | setivalue(obj, x) { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_VNUMINT); } |
#define | chgivalue(obj, x) { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); } |
#define | LUA_VSHRSTR makevariant(LUA_TSTRING, 0) /* short strings */ |
#define | LUA_VLNGSTR makevariant(LUA_TSTRING, 1) /* long strings */ |
#define | ttisstring(o) checktype((o), LUA_TSTRING) |
#define | ttisshrstring(o) checktag((o), ctb(LUA_VSHRSTR)) |
#define | ttislngstring(o) checktag((o), ctb(LUA_VLNGSTR)) |
#define | tsvalueraw(v) (gco2ts((v).gc)) |
#define | tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc)) |
#define | setsvalue(L, obj, x) |
#define | setsvalue2s(L, o, s) setsvalue(L,s2v(o),s) |
#define | setsvalue2n setsvalue |
#define | getstr(ts) ((ts)->contents) |
#define | svalue(o) getstr(tsvalue(o)) |
#define | tsslen(s) ((s)->tt == LUA_VSHRSTR ? (s)->shrlen : (s)->u.lnglen) |
#define | vslen(o) tsslen(tsvalue(o)) |
#define | LUA_VLIGHTUSERDATA makevariant(LUA_TLIGHTUSERDATA, 0) |
#define | LUA_VUSERDATA makevariant(LUA_TUSERDATA, 0) |
#define | ttislightuserdata(o) checktag((o), LUA_VLIGHTUSERDATA) |
#define | ttisfulluserdata(o) checktag((o), ctb(LUA_VUSERDATA)) |
#define | pvalue(o) check_exp(ttislightuserdata(o), val_(o).p) |
#define | uvalue(o) check_exp(ttisfulluserdata(o), gco2u(val_(o).gc)) |
#define | pvalueraw(v) ((v).p) |
#define | setpvalue(obj, x) { TValue *io=(obj); val_(io).p=(x); settt_(io, LUA_VLIGHTUSERDATA); } |
#define | setuvalue(L, obj, x) |
#define | udatamemoffset(nuv) |
#define | getudatamem(u) (cast_charp(u) + udatamemoffset((u)->nuvalue)) |
#define | sizeudata(nuv, nb) (udatamemoffset(nuv) + (nb)) |
#define | LUA_VPROTO makevariant(LUA_TPROTO, 0) |
#define | LUA_VUPVAL makevariant(LUA_TUPVAL, 0) |
#define | LUA_VLCL makevariant(LUA_TFUNCTION, 0) /* Lua closure */ |
#define | LUA_VLCF makevariant(LUA_TFUNCTION, 1) /* light C function */ |
#define | LUA_VCCL makevariant(LUA_TFUNCTION, 2) /* C closure */ |
#define | ttisfunction(o) checktype(o, LUA_TFUNCTION) |
#define | ttisLclosure(o) checktag((o), ctb(LUA_VLCL)) |
#define | ttislcf(o) checktag((o), LUA_VLCF) |
#define | ttisCclosure(o) checktag((o), ctb(LUA_VCCL)) |
#define | ttisclosure(o) (ttisLclosure(o) || ttisCclosure(o)) |
#define | isLfunction(o) ttisLclosure(o) |
#define | clvalue(o) check_exp(ttisclosure(o), gco2cl(val_(o).gc)) |
#define | clLvalue(o) check_exp(ttisLclosure(o), gco2lcl(val_(o).gc)) |
#define | fvalue(o) check_exp(ttislcf(o), val_(o).f) |
#define | clCvalue(o) check_exp(ttisCclosure(o), gco2ccl(val_(o).gc)) |
#define | fvalueraw(v) ((v).f) |
#define | setclLvalue(L, obj, x) |
#define | setclLvalue2s(L, o, cl) setclLvalue(L,s2v(o),cl) |
#define | setfvalue(obj, x) { TValue *io=(obj); val_(io).f=(x); settt_(io, LUA_VLCF); } |
#define | setclCvalue(L, obj, x) |
#define | ClosureHeader CommonHeader; lu_byte nupvalues; GCObject *gclist |
#define | getproto(o) (clLvalue(o)->p) |
#define | LUA_VTABLE makevariant(LUA_TTABLE, 0) |
#define | ttistable(o) checktag((o), ctb(LUA_VTABLE)) |
#define | hvalue(o) check_exp(ttistable(o), gco2t(val_(o).gc)) |
#define | sethvalue(L, obj, x) |
#define | sethvalue2s(L, o, h) sethvalue(L,s2v(o),h) |
#define | setnodekey(L, node, obj) |
#define | getnodekey(L, obj, node) |
#define | BITRAS (1 << 7) |
#define | isrealasize(t) (!((t)->flags & BITRAS)) |
#define | setrealasize(t) ((t)->flags &= cast_byte(~BITRAS)) |
#define | setnorealasize(t) ((t)->flags |= BITRAS) |
#define | keytt(node) ((node)->u.key_tt) |
#define | keyval(node) ((node)->u.key_val) |
#define | keyisnil(node) (keytt(node) == LUA_TNIL) |
#define | keyisinteger(node) (keytt(node) == LUA_VNUMINT) |
#define | keyival(node) (keyval(node).i) |
#define | keyisshrstr(node) (keytt(node) == ctb(LUA_VSHRSTR)) |
#define | keystrval(node) (gco2ts(keyval(node).gc)) |
#define | setnilkey(node) (keytt(node) = LUA_TNIL) |
#define | keyiscollectable(n) (keytt(n) & BIT_ISCOLLECTABLE) |
#define | gckey(n) (keyval(n).gc) |
#define | gckeyN(n) (keyiscollectable(n) ? gckey(n) : NULL) |
#define | setdeadkey(node) (keytt(node) = LUA_TDEADKEY) |
#define | keyisdead(node) (keytt(node) == LUA_TDEADKEY) |
#define | lmod(s, size) (check_exp((size&(size-1))==0, (cast_int((s) & ((size)-1))))) |
#define | twoto(x) (1<<(x)) |
#define | sizenode(t) (twoto((t)->lsizenode)) |
#define | UTF8BUFFSZ 8 |
Typedefs | |
typedef union Value | Value |
typedef struct TValue | TValue |
typedef union StackValue | StackValue |
typedef StackValue * | StkId |
typedef struct GCObject | GCObject |
typedef struct TString | TString |
typedef union UValue | UValue |
typedef struct Udata | Udata |
typedef struct Udata0 | Udata0 |
typedef struct Upvaldesc | Upvaldesc |
typedef struct LocVar | LocVar |
typedef struct AbsLineInfo | AbsLineInfo |
typedef struct Proto | Proto |
typedef struct UpVal | UpVal |
typedef struct CClosure | CClosure |
typedef struct LClosure | LClosure |
typedef union Closure | Closure |
typedef union Node | Node |
typedef struct Table | Table |
Functions | |
LUAI_FUNC int | luaO_utf8esc (char *buff, unsigned long x) |
LUAI_FUNC int | luaO_ceillog2 (unsigned int x) |
LUAI_FUNC int | luaO_rawarith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res) |
LUAI_FUNC void | luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, StkId res) |
LUAI_FUNC size_t | luaO_str2num (const char *s, TValue *o) |
LUAI_FUNC int | luaO_hexavalue (int c) |
LUAI_FUNC void | luaO_tostring (lua_State *L, TValue *obj) |
LUAI_FUNC const char * | luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) |
LUAI_FUNC const char * | luaO_pushfstring (lua_State *L, const char *fmt,...) |
LUAI_FUNC void | luaO_chunkid (char *out, const char *source, size_t srclen) |
#define ABSTKEYCONSTANT {NULL}, LUA_VABSTKEY |
Definition at line 208 of file lua-5.4.3/src/lobject.h.
#define BIT_ISCOLLECTABLE (1 << 6) |
Definition at line 285 of file lua-5.4.3/src/lobject.h.
#define BITRAS (1 << 7) |
Definition at line 718 of file lua-5.4.3/src/lobject.h.
#define checkliveness | ( | L, | |
obj ) |
Definition at line 104 of file lua-5.4.3/src/lobject.h.
#define checktag | ( | o, | |
t ) (rawtt(o) == (t)) |
Definition at line 89 of file lua-5.4.3/src/lobject.h.
#define checktype | ( | o, | |
t ) (ttype(o) == (t)) |
Definition at line 90 of file lua-5.4.3/src/lobject.h.
#define chgfltvalue | ( | obj, | |
x ) { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); } |
Definition at line 328 of file lua-5.4.3/src/lobject.h.
#define chgivalue | ( | obj, | |
x ) { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); } |
Definition at line 334 of file lua-5.4.3/src/lobject.h.
#define clCvalue | ( | o | ) | check_exp(ttisCclosure(o), gco2ccl(val_(o).gc)) |
Definition at line 593 of file lua-5.4.3/src/lobject.h.
#define clLvalue | ( | o | ) | check_exp(ttisLclosure(o), gco2lcl(val_(o).gc)) |
Definition at line 591 of file lua-5.4.3/src/lobject.h.
#define ClosureHeader CommonHeader; lu_byte nupvalues; GCObject *gclist |
Definition at line 631 of file lua-5.4.3/src/lobject.h.
#define clvalue | ( | o | ) | check_exp(ttisclosure(o), gco2cl(val_(o).gc)) |
Definition at line 590 of file lua-5.4.3/src/lobject.h.
Definition at line 275 of file lua-5.4.3/src/lobject.h.
#define ctb | ( | t | ) | ((t) | BIT_ISCOLLECTABLE) |
Definition at line 290 of file lua-5.4.3/src/lobject.h.
Definition at line 319 of file lua-5.4.3/src/lobject.h.
#define fltvalueraw | ( | v | ) | ((v).n) |
Definition at line 322 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and mainposition().
Definition at line 592 of file lua-5.4.3/src/lobject.h.
#define fvalueraw | ( | v | ) | ((v).f) |
Definition at line 595 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and mainposition().
#define gckey | ( | n | ) | (keyval(n).gc) |
Definition at line 753 of file lua-5.4.3/src/lobject.h.
#define gckeyN | ( | n | ) | (keyiscollectable(n) ? gckey(n) : NULL) |
Definition at line 754 of file lua-5.4.3/src/lobject.h.
Referenced by clearbykeys(), and traverseephemeron().
#define gcvalue | ( | o | ) | check_exp(iscollectable(o), val_(o).gc) |
Definition at line 292 of file lua-5.4.3/src/lobject.h.
#define gcvalueraw | ( | v | ) | ((v).gc) |
Definition at line 294 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and mainposition().
#define getnodekey | ( | L, | |
obj, | |||
node ) |
Definition at line 705 of file lua-5.4.3/src/lobject.h.
Referenced by luaH_next(), and reinsert().
#define getproto | ( | o | ) | (clLvalue(o)->p) |
Definition at line 654 of file lua-5.4.3/src/lobject.h.
#define getstr | ( | ts | ) | ((ts)->contents) |
Definition at line 390 of file lua-5.4.3/src/lobject.h.
#define getudatamem | ( | u | ) | (cast_charp(u) + udatamemoffset((u)->nuvalue)) |
Definition at line 482 of file lua-5.4.3/src/lobject.h.
Definition at line 669 of file lua-5.4.3/src/lobject.h.
#define isabstkey | ( | v | ) | checktag((v), LUA_VABSTKEY) |
Definition at line 190 of file lua-5.4.3/src/lobject.h.
Referenced by findindex(), luaH_finishset(), and luaH_setint().
#define iscollectable | ( | o | ) | (rawtt(o) & BIT_ISCOLLECTABLE) |
Definition at line 287 of file lua-5.4.3/src/lobject.h.
#define isempty | ( | v | ) | ttisnil(v) |
Definition at line 204 of file lua-5.4.3/src/lobject.h.
Referenced by binsearch(), clearbykeys(), clearbyvalues(), clearkey(), finishrawget(), hash_search(), luaH_getn(), luaH_newkey(), luaH_next(), luaH_resize(), luaV_finishget(), luaV_finishset(), numusearray(), numusehash(), reinsert(), traverseephemeron(), traversestrongtable(), and traverseweakvalue().
#define isLfunction | ( | o | ) | ttisLclosure(o) |
Definition at line 588 of file lua-5.4.3/src/lobject.h.
#define isnonstrictnil | ( | v | ) | (ttisnil(v) && !ttisstrictnil(v)) |
Definition at line 196 of file lua-5.4.3/src/lobject.h.
#define isrealasize | ( | t | ) | (!((t)->flags & BITRAS)) |
Definition at line 719 of file lua-5.4.3/src/lobject.h.
Referenced by ispow2realasize().
#define ivalue | ( | o | ) | check_exp(ttisinteger(o), val_(o).i) |
Definition at line 320 of file lua-5.4.3/src/lobject.h.
#define ivalueraw | ( | v | ) | ((v).i) |
Definition at line 323 of file lua-5.4.3/src/lobject.h.
Referenced by mainposition().
#define keyiscollectable | ( | n | ) | (keytt(n) & BIT_ISCOLLECTABLE) |
Definition at line 751 of file lua-5.4.3/src/lobject.h.
Referenced by clearkey().
#define keyisdead | ( | node | ) | (keytt(node) == LUA_TDEADKEY) |
Definition at line 764 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey().
#define keyisinteger | ( | node | ) | (keytt(node) == LUA_VNUMINT) |
Definition at line 744 of file lua-5.4.3/src/lobject.h.
Referenced by luaH_getint(), and numusehash().
Definition at line 743 of file lua-5.4.3/src/lobject.h.
Referenced by getfreepos(), traversestrongtable(), and traverseweakvalue().
#define keyisshrstr | ( | node | ) | (keytt(node) == ctb(LUA_VSHRSTR)) |
Definition at line 746 of file lua-5.4.3/src/lobject.h.
Referenced by luaH_getshortstr().
#define keyival | ( | node | ) | (keyval(node).i) |
Definition at line 745 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), luaH_getint(), and numusehash().
Definition at line 747 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), luaH_getshortstr(), and luaX_newstring().
#define keytt | ( | node | ) | ((node)->u.key_tt) |
Definition at line 740 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and luaH_newkey().
#define keyval | ( | node | ) | ((node)->u.key_val) |
Definition at line 741 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and luaH_newkey().
Definition at line 234 of file lua-5.4.3/src/lobject.h.
Definition at line 773 of file lua-5.4.3/src/lobject.h.
#define LUA_TDEADKEY (LUA_NUMTYPES+2) /* removed keys in tables */ |
Definition at line 24 of file lua-5.4.3/src/lobject.h.
#define LUA_TOTALTYPES (LUA_TPROTO + 2) |
Definition at line 31 of file lua-5.4.3/src/lobject.h.
#define LUA_TPROTO (LUA_NUMTYPES+1) /* function prototypes */ |
Definition at line 23 of file lua-5.4.3/src/lobject.h.
#define LUA_TUPVAL LUA_NUMTYPES /* upvalues */ |
Definition at line 22 of file lua-5.4.3/src/lobject.h.
#define LUA_VABSTKEY makevariant(LUA_TNIL, 2) |
Definition at line 176 of file lua-5.4.3/src/lobject.h.
#define LUA_VCCL makevariant(LUA_TFUNCTION, 2) /* C closure */ |
Definition at line 579 of file lua-5.4.3/src/lobject.h.
Referenced by aux_upvalue(), freeobj(), getgclist(), lua_upvalueid(), luaD_precall(), luaF_newCclosure(), propagatemark(), and reallymarkobject().
#define LUA_VEMPTY makevariant(LUA_TNIL, 1) |
Definition at line 173 of file lua-5.4.3/src/lobject.h.
#define LUA_VFALSE makevariant(LUA_TBOOLEAN, 0) |
Definition at line 226 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), equalkey(), loadConstants(), luaV_equalobj(), mainposition(), PrintConstant(), and PrintType().
#define LUA_VLCF makevariant(LUA_TFUNCTION, 1) /* light C function */ |
Definition at line 578 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), lua_topointer(), lua_upvalueid(), luaD_precall(), luaV_equalobj(), and mainposition().
#define LUA_VLCL makevariant(LUA_TFUNCTION, 0) /* Lua closure */ |
Definition at line 577 of file lua-5.4.3/src/lobject.h.
Referenced by aux_upvalue(), freeobj(), getgclist(), lua_upvalueid(), luaD_precall(), luaF_newLclosure(), propagatemark(), and reallymarkobject().
#define LUA_VLIGHTUSERDATA makevariant(LUA_TLIGHTUSERDATA, 0) |
Definition at line 416 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), lua_topointer(), luaV_equalobj(), and mainposition().
#define LUA_VLNGSTR makevariant(LUA_TSTRING, 1) /* long strings */ |
Definition at line 348 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), equalkey(), freeobj(), loadConstants(), lua_rawlen(), luaS_createlngstrobj(), luaS_eqlngstr(), luaS_hashlongstr(), luaV_equalobj(), luaV_objlen(), mainposition(), PrintConstant(), PrintType(), and reallymarkobject().
#define LUA_VNIL makevariant(LUA_TNIL, 0) |
Definition at line 170 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), equalkey(), loadConstants(), luaH_get(), luaV_equalobj(), PrintConstant(), and PrintType().
#define LUA_VNUMFLT makevariant(LUA_TNUMBER, 1) /* float numbers */ |
Definition at line 311 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), equalkey(), loadConstants(), luaH_get(), luaV_equalobj(), mainposition(), PrintConstant(), and PrintType().
#define LUA_VNUMINT makevariant(LUA_TNUMBER, 0) /* integer numbers */ |
Definition at line 310 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), equalkey(), loadConstants(), luaH_get(), luaV_equalobj(), mainposition(), PrintConstant(), and PrintType().
#define LUA_VPROTO makevariant(LUA_TPROTO, 0) |
Definition at line 496 of file lua-5.4.3/src/lobject.h.
Referenced by freeobj(), getgclist(), luaF_newproto(), propagatemark(), and reallymarkobject().
#define LUA_VSHRSTR makevariant(LUA_TSTRING, 0) /* short strings */ |
Definition at line 347 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), freeobj(), internshrstr(), loadConstants(), lua_rawlen(), luaH_get(), luaH_getshortstr(), luaH_getstr(), luaV_equalobj(), luaV_objlen(), mainposition(), PrintConstant(), PrintType(), and reallymarkobject().
#define LUA_VTABLE makevariant(LUA_TTABLE, 0) |
Definition at line 665 of file lua-5.4.3/src/lobject.h.
Referenced by freeobj(), getgclist(), lua_rawlen(), luaH_new(), luaV_equalobj(), luaV_objlen(), propagatemark(), and reallymarkobject().
#define LUA_VTHREAD makevariant(LUA_TTHREAD, 0) |
Definition at line 249 of file lua-5.4.3/src/lobject.h.
Referenced by correctgraylist(), freeobj(), getgclist(), lua_newstate(), lua_newthread(), propagatemark(), reallymarkobject(), and sweep2old().
#define LUA_VTRUE makevariant(LUA_TBOOLEAN, 1) |
Definition at line 227 of file lua-5.4.3/src/lobject.h.
Referenced by const2exp(), dumpConstants(), equalkey(), loadConstants(), luaV_equalobj(), mainposition(), PrintConstant(), and PrintType().
#define LUA_VUPVAL makevariant(LUA_TUPVAL, 0) |
Definition at line 573 of file lua-5.4.3/src/lobject.h.
Referenced by freeobj(), luaF_initupvals(), newupval(), reallymarkobject(), and sweep2old().
#define LUA_VUSERDATA makevariant(LUA_TUSERDATA, 0) |
Definition at line 418 of file lua-5.4.3/src/lobject.h.
Referenced by freeobj(), getgclist(), lua_rawlen(), lua_topointer(), luaS_newudata(), luaV_equalobj(), propagatemark(), and reallymarkobject().
#define makevariant | ( | t, | |
v ) ((t) | ((v) << 4)) |
Definition at line 42 of file lua-5.4.3/src/lobject.h.
#define novariant | ( | t | ) | ((t) & 0x0F) |
Definition at line 78 of file lua-5.4.3/src/lobject.h.
#define nvalue | ( | o | ) |
Definition at line 317 of file lua-5.4.3/src/lobject.h.
#define pvalue | ( | o | ) | check_exp(ttislightuserdata(o), val_(o).p) |
Definition at line 423 of file lua-5.4.3/src/lobject.h.
#define pvalueraw | ( | v | ) | ((v).p) |
Definition at line 426 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and mainposition().
#define rawtt | ( | o | ) | ((o)->tt_) |
Definition at line 75 of file lua-5.4.3/src/lobject.h.
Referenced by equalkey(), and mainpositionTV().
Definition at line 96 of file lua-5.4.3/src/lobject.h.
#define s2v | ( | o | ) | (&(o)->val) |
Definition at line 159 of file lua-5.4.3/src/lobject.h.
Referenced by aux_rawset(), auxgetstr(), auxsetstr(), checkclosemth(), collectvalidlines(), copy2buff(), correctstack(), findvararg(), finishrawget(), floatforloop(), forprep(), index2value(), isinstack(), lua_arith(), lua_closeslot(), lua_copy(), lua_dump(), lua_error(), lua_geti(), lua_getinfo(), lua_getiuservalue(), lua_getlocal(), lua_gettable(), lua_load(), lua_newuserdatauv(), lua_pcallk(), lua_pushboolean(), lua_pushcclosure(), lua_pushinteger(), lua_pushlightuserdata(), lua_pushnil(), lua_pushnumber(), lua_pushstring(), lua_pushthread(), lua_rawget(), lua_rawset(), lua_rawseti(), lua_seti(), lua_setiuservalue(), lua_setmetatable(), lua_settable(), lua_settop(), lua_setupvalue(), lua_stringtonumber(), luaD_precall(), luaD_pretailcall(), luaD_reallocstack(), luaD_seterrorobj(), luaD_tryfuncTM(), luaE_resetthread(), luaE_warnerror(), luaF_newtbcupval(), luaG_errormsg(), luaH_next(), luaO_arith(), luaO_pushvfstring(), luaT_adjustvarargs(), luaT_callorderTM(), luaT_getvarargs(), luaT_tryconcatTM(), luaV_concat(), luaV_equalobj(), luaV_execute(), luaV_finishget(), luaV_finishOp(), luaV_objlen(), luaX_newstring(), moveresults(), newupval(), prepcallclosemth(), reverse(), stack_init(), and traversethread().
#define setbfvalue | ( | obj | ) | settt_(obj, LUA_VFALSE) |
Definition at line 237 of file lua-5.4.3/src/lobject.h.
Referenced by boolF(), loadConstants(), lua_pushboolean(), luaK_exp2const(), and luaV_execute().
Definition at line 238 of file lua-5.4.3/src/lobject.h.
Referenced by boolT(), collectvalidlines(), loadConstants(), lua_pushboolean(), luaK_exp2const(), and luaV_execute().
#define setclCvalue | ( | L, | |
obj, | |||
x ) |
Definition at line 607 of file lua-5.4.3/src/lobject.h.
#define setclLvalue | ( | L, | |
obj, | |||
x ) |
Definition at line 597 of file lua-5.4.3/src/lobject.h.
#define setclLvalue2s | ( | L, | |
o, | |||
cl ) setclLvalue(L,s2v(o),cl) |
Definition at line 602 of file lua-5.4.3/src/lobject.h.
Referenced by luaU_undump(), luaY_parser(), and pushclosure().
#define setdeadkey | ( | node | ) | (keytt(node) = LUA_TDEADKEY) |
Definition at line 763 of file lua-5.4.3/src/lobject.h.
Referenced by clearkey().
#define setempty | ( | v | ) | settt_(v, LUA_VEMPTY) |
Definition at line 212 of file lua-5.4.3/src/lobject.h.
Referenced by clearbykeys(), clearbyvalues(), luaH_newkey(), luaH_resize(), and setnodevector().
#define setfltvalue | ( | obj, | |
x ) { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_VNUMFLT); } |
Definition at line 325 of file lua-5.4.3/src/lobject.h.
Definition at line 604 of file lua-5.4.3/src/lobject.h.
#define setgcovalue | ( | L, | |
obj, | |||
x ) |
Definition at line 296 of file lua-5.4.3/src/lobject.h.
#define sethvalue | ( | L, | |
obj, | |||
x ) |
Definition at line 671 of file lua-5.4.3/src/lobject.h.
Definition at line 676 of file lua-5.4.3/src/lobject.h.
#define setivalue | ( | obj, | |
x ) { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_VNUMINT); } |
Definition at line 331 of file lua-5.4.3/src/lobject.h.
Definition at line 749 of file lua-5.4.3/src/lobject.h.
Referenced by setnodevector().
Definition at line 187 of file lua-5.4.3/src/lobject.h.
#define setnodekey | ( | L, | |
node, | |||
obj ) |
Definition at line 698 of file lua-5.4.3/src/lobject.h.
#define setnorealasize | ( | t | ) | ((t)->flags |= BITRAS) |
Definition at line 721 of file lua-5.4.3/src/lobject.h.
Referenced by luaH_getn().
#define setobj | ( | L, | |
obj1, | |||
obj2 ) |
Definition at line 116 of file lua-5.4.3/src/lobject.h.
#define setobj2n setobj |
Definition at line 133 of file lua-5.4.3/src/lobject.h.
Definition at line 129 of file lua-5.4.3/src/lobject.h.
#define setobj2t setobj |
Definition at line 135 of file lua-5.4.3/src/lobject.h.
Definition at line 127 of file lua-5.4.3/src/lobject.h.
#define setobjt2t setobj |
Definition at line 131 of file lua-5.4.3/src/lobject.h.
#define setpvalue | ( | obj, | |
x ) { TValue *io=(obj); val_(io).p=(x); settt_(io, LUA_VLIGHTUSERDATA); } |
Definition at line 428 of file lua-5.4.3/src/lobject.h.
Definition at line 720 of file lua-5.4.3/src/lobject.h.
Referenced by setlimittosize().
#define setsvalue | ( | L, | |
obj, | |||
x ) |
Definition at line 358 of file lua-5.4.3/src/lobject.h.
#define setsvalue2n setsvalue |
Definition at line 367 of file lua-5.4.3/src/lobject.h.
Definition at line 364 of file lua-5.4.3/src/lobject.h.
#define setthvalue | ( | L, | |
obj, | |||
x ) |
Definition at line 255 of file lua-5.4.3/src/lobject.h.
#define setthvalue2s | ( | L, | |
o, | |||
t ) setthvalue(L,s2v(o),t) |
Definition at line 260 of file lua-5.4.3/src/lobject.h.
Referenced by lua_newthread().
#define settt_ | ( | o, | |
t ) ((o)->tt_=(t)) |
Definition at line 112 of file lua-5.4.3/src/lobject.h.
#define setuvalue | ( | L, | |
obj, | |||
x ) |
Definition at line 431 of file lua-5.4.3/src/lobject.h.
#define sizenode | ( | t | ) | (twoto((t)->lsizenode)) |
Definition at line 778 of file lua-5.4.3/src/lobject.h.
#define sizeudata | ( | nuv, | |
nb ) (udatamemoffset(nuv) + (nb)) |
Definition at line 485 of file lua-5.4.3/src/lobject.h.
Definition at line 394 of file lua-5.4.3/src/lobject.h.
#define thvalue | ( | o | ) | check_exp(ttisthread(o), gco2th(val_(o).gc)) |
Definition at line 253 of file lua-5.4.3/src/lobject.h.
#define tsslen | ( | s | ) | ((s)->tt == LUA_VSHRSTR ? (s)->shrlen : (s)->u.lnglen) |
Definition at line 397 of file lua-5.4.3/src/lobject.h.
#define tsvalue | ( | o | ) | check_exp(ttisstring(o), gco2ts(val_(o).gc)) |
Definition at line 356 of file lua-5.4.3/src/lobject.h.
#define tsvalueraw | ( | v | ) | (gco2ts((v).gc)) |
Definition at line 354 of file lua-5.4.3/src/lobject.h.
Referenced by mainposition().
#define ttisboolean | ( | o | ) | checktype((o), LUA_TBOOLEAN) |
Definition at line 229 of file lua-5.4.3/src/lobject.h.
Definition at line 584 of file lua-5.4.3/src/lobject.h.
#define ttisclosure | ( | o | ) | (ttisLclosure(o) || ttisCclosure(o)) |
Definition at line 585 of file lua-5.4.3/src/lobject.h.
#define ttisfalse | ( | o | ) | checktag((o), LUA_VFALSE) |
Definition at line 230 of file lua-5.4.3/src/lobject.h.
#define ttisfloat | ( | o | ) | checktag((o), LUA_VNUMFLT) |
Definition at line 314 of file lua-5.4.3/src/lobject.h.
#define ttisfulluserdata | ( | o | ) | checktag((o), ctb(LUA_VUSERDATA)) |
Definition at line 421 of file lua-5.4.3/src/lobject.h.
#define ttisfunction | ( | o | ) | checktype(o, LUA_TFUNCTION) |
Definition at line 581 of file lua-5.4.3/src/lobject.h.
#define ttisinteger | ( | o | ) | checktag((o), LUA_VNUMINT) |
Definition at line 315 of file lua-5.4.3/src/lobject.h.
Definition at line 583 of file lua-5.4.3/src/lobject.h.
Definition at line 582 of file lua-5.4.3/src/lobject.h.
#define ttislightuserdata | ( | o | ) | checktag((o), LUA_VLIGHTUSERDATA) |
Definition at line 420 of file lua-5.4.3/src/lobject.h.
#define ttislngstring | ( | o | ) | checktag((o), ctb(LUA_VLNGSTR)) |
Definition at line 352 of file lua-5.4.3/src/lobject.h.
Definition at line 180 of file lua-5.4.3/src/lobject.h.
#define ttisnumber | ( | o | ) | checktype((o), LUA_TNUMBER) |
Definition at line 313 of file lua-5.4.3/src/lobject.h.
#define ttisshrstring | ( | o | ) | checktag((o), ctb(LUA_VSHRSTR)) |
Definition at line 351 of file lua-5.4.3/src/lobject.h.
Definition at line 184 of file lua-5.4.3/src/lobject.h.
#define ttisstring | ( | o | ) | checktype((o), LUA_TSTRING) |
Definition at line 350 of file lua-5.4.3/src/lobject.h.
#define ttistable | ( | o | ) | checktag((o), ctb(LUA_VTABLE)) |
Definition at line 667 of file lua-5.4.3/src/lobject.h.
#define ttisthread | ( | o | ) | checktag((o), ctb(LUA_VTHREAD)) |
Definition at line 251 of file lua-5.4.3/src/lobject.h.
Definition at line 231 of file lua-5.4.3/src/lobject.h.
Definition at line 85 of file lua-5.4.3/src/lobject.h.
#define ttypetag | ( | o | ) | withvariant(rawtt(o)) |
Definition at line 82 of file lua-5.4.3/src/lobject.h.
Referenced by addk(), aux_upvalue(), const2exp(), dumpConstants(), lua_rawlen(), lua_topointer(), lua_upvalueid(), luaD_precall(), luaH_get(), luaV_equalobj(), luaV_objlen(), PrintConstant(), and PrintType().
Definition at line 63 of file lua-5.4.3/src/lobject.h.
#define twoto | ( | x | ) | (1<<(x)) |
Definition at line 777 of file lua-5.4.3/src/lobject.h.
#define udatamemoffset | ( | nuv | ) |
Definition at line 477 of file lua-5.4.3/src/lobject.h.
Referenced by luaS_newudata().
#define UTF8BUFFSZ 8 |
Definition at line 782 of file lua-5.4.3/src/lobject.h.
#define uvalue | ( | o | ) | check_exp(ttisfulluserdata(o), gco2u(val_(o).gc)) |
Definition at line 424 of file lua-5.4.3/src/lobject.h.
#define val_ | ( | o | ) | ((o)->value_) |
Definition at line 70 of file lua-5.4.3/src/lobject.h.
#define valraw | ( | o | ) | (&val_(o)) |
Definition at line 71 of file lua-5.4.3/src/lobject.h.
Referenced by mainpositionTV().
Definition at line 400 of file lua-5.4.3/src/lobject.h.
#define withvariant | ( | t | ) | ((t) & 0x3F) |
Definition at line 81 of file lua-5.4.3/src/lobject.h.
Referenced by mainposition().
typedef struct AbsLineInfo AbsLineInfo |
typedef struct CClosure CClosure |
typedef union Closure Closure |
typedef struct GCObject GCObject |
typedef struct LClosure LClosure |
typedef struct LocVar LocVar |
typedef union Node Node |
typedef struct Proto Proto |
typedef union StackValue StackValue |
typedef StackValue* StkId |
Definition at line 156 of file lua-5.4.3/src/lobject.h.
typedef struct Table Table |
typedef struct TString TString |
typedef struct TValue TValue |
typedef struct Udata Udata |
typedef struct Udata0 Udata0 |
typedef struct UpVal UpVal |
typedef struct Upvaldesc Upvaldesc |
typedef union UValue UValue |
typedef union Value Value |
LUAI_FUNC void luaO_arith | ( | lua_State * | L, |
int | op, | ||
const TValue * | p1, | ||
const TValue * | p2, | ||
StkId | res ) |
Definition at line 126 of file lua-5.4.3/src/lobject.c.
References cast, LUA_OPADD, luaO_rawarith(), luaT_trybinTM(), s2v, and TM_ADD.
LUAI_FUNC int luaO_ceillog2 | ( | unsigned int | x | ) |
Definition at line 55 of file lua-5.2.4/src/lobject.c.
Referenced by countint(), countint(), countint(), luaK_settablesize(), setnodevector(), setnodevector(), and setnodevector().
LUAI_FUNC void luaO_chunkid | ( | char * | out, |
const char * | source, | ||
size_t | srclen ) |
Definition at line 182 of file lua-5.1.5/src/lobject.c.
References addstr, bufflen, LL, LUA_IDSIZE, NULL, POS, PRE, and RETS.
Referenced by addinfo(), addinfo(), funcinfo(), funcinfo(), funcinfo(), funcinfo(), info_tailcall(), lexerror(), luaG_addinfo(), and luaX_lexerror().
LUAI_FUNC int luaO_hexavalue | ( | int | c | ) |
Definition at line 87 of file lua-5.2.4/src/lobject.c.
References lisdigit, and ltolower.
Referenced by gethexa(), gethexa(), l_str2int(), l_str2int(), readhexa(), readhexaesc(), readutf8esc(), and readutf8esc().
Definition at line 172 of file lua-5.1.5/src/lobject.c.
References luaO_pushvfstring().
Referenced by addinfo(), addinfo(), check_match(), check_match(), check_match(), check_match(), check_readonly(), checkmode(), checkmode(), checkmode(), checkrepeated(), checkrepeated(), checkrepeated(), closegoto(), closegoto(), error(), error(), error(), error(), error_expected(), error_expected(), error_expected(), error_expected(), errorlimit(), errorlimit(), errorlimit(), errorlimit(), fchecksize(), fchecksize(), GCTM(), GCTM(), getlocalattribute(), jumpscopeerror(), lexerror(), lexerror(), lexerror(), luaG_addinfo(), luaO_pushvfstring(), luaX_lexerror(), luaX_token2str(), read_long_string(), read_long_string(), txtToken(), txtToken(), txtToken(), undefgoto(), undefgoto(), undefgoto(), varinfo(), and varinfo().
Definition at line 111 of file lua-5.1.5/src/lobject.c.
References addnum2buff(), addsize, addstr2buff(), lua_State::base, BuffFS::blen, cast, cast_int, cast_num, cast_uchar, clearbuff(), getbuff(), incr_top, BuffFS::L, lisprint, lua_assert, lua_pointer2str, LUA_QL, luaD_checkstack, luaD_inctop(), luaG_runerror(), luaO_pushfstring(), luaO_tostring(), luaO_utf8esc(), luaS_newlstr(), luaV_concat(), NULL, BuffFS::pushed, pushstr(), pushstr(), pushstr(), s, s2v, setfltvalue, setivalue, setnvalue, setsvalue2s, svalue, lua_State::top, and UTF8BUFFSZ.
Referenced by lua_pushfstring(), lua_pushvfstring(), luaG_runerror(), and luaO_pushfstring().
LUAI_FUNC int luaO_rawarith | ( | lua_State * | L, |
int | op, | ||
const TValue * | p1, | ||
const TValue * | p2, | ||
TValue * | res ) |
Definition at line 89 of file lua-5.4.3/src/lobject.c.
References intarith(), ivalue, LUA_OPBAND, LUA_OPBNOT, LUA_OPBOR, LUA_OPBXOR, LUA_OPDIV, LUA_OPPOW, LUA_OPSHL, LUA_OPSHR, numarith(), setfltvalue, setivalue, tointegerns, tonumberns, and ttisinteger.
Referenced by constfolding(), and luaO_arith().
Definition at line 331 of file lua-5.3.6/src/lobject.c.
References l_str2d(), l_str2d(), l_str2int(), l_str2int(), NULL, s, setfltvalue, and setivalue.
Referenced by l_strton(), lua_stringtonumber(), luaV_tointeger(), luaV_tonumber_(), read_numeral(), and read_numeral().
Definition at line 374 of file lua-5.4.3/src/lobject.c.
References luaS_newlstr(), MAXNUMBER2STR, setsvalue, and tostringbuff().
LUAI_FUNC int luaO_utf8esc | ( | char * | buff, |
unsigned long | x ) |
Definition at line 346 of file lua-5.3.6/src/lobject.c.
References cast, cast_char, lua_assert, and UTF8BUFFSZ.
Referenced by luaO_pushvfstring(), utf8esc(), and utf8esc().