Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | cvt2str(o) ttisnumber(o) |
#define | cvt2num(o) ttisstring(o) |
#define | LUA_FLOORN2I F2Ieq |
#define | tonumber(o, n) (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n)) |
#define | tonumberns(o, n) |
#define | tointeger(o, i) |
#define | tointegerns(o, i) |
#define | intop(op, v1, v2) l_castU2S(l_castS2U(v1) op l_castS2U(v2)) |
#define | luaV_rawequalobj(t1, t2) luaV_equalobj(NULL,t1,t2) |
#define | luaV_fastget(L, t, k, slot, f) |
#define | luaV_fastgeti(L, t, k, slot) |
#define | luaV_finishfastset(L, t, slot, v) |
Enumerations | |
enum | F2Imod { F2Ieq , F2Ifloor , F2Iceil } |
#define cvt2num | ( | o | ) | ttisstring(o) |
Definition at line 24 of file lua-5.4.3/src/lvm.h.
#define cvt2str | ( | o | ) | ttisnumber(o) |
Definition at line 17 of file lua-5.4.3/src/lvm.h.
Definition at line 73 of file lua-5.4.3/src/lvm.h.
#define LUA_FLOORN2I F2Ieq |
Definition at line 36 of file lua-5.4.3/src/lvm.h.
#define luaV_fastget | ( | L, | |
t, | |||
k, | |||
slot, | |||
f ) |
Definition at line 85 of file lua-5.4.3/src/lvm.h.
#define luaV_fastgeti | ( | L, | |
t, | |||
k, | |||
slot ) |
Definition at line 96 of file lua-5.4.3/src/lvm.h.
Referenced by lua_geti(), lua_seti(), and luaV_execute().
#define luaV_finishfastset | ( | L, | |
t, | |||
slot, | |||
v ) |
Definition at line 108 of file lua-5.4.3/src/lvm.h.
Referenced by auxsetstr(), lua_seti(), lua_settable(), luaV_execute(), and luaV_finishset().
#define luaV_rawequalobj | ( | t1, | |
t2 ) luaV_equalobj(NULL,t1,t2) |
Definition at line 75 of file lua-5.4.3/src/lvm.h.
#define tointeger | ( | o, | |
i ) |
Definition at line 62 of file lua-5.4.3/src/lvm.h.
#define tointegerns | ( | o, | |
i ) |
Definition at line 68 of file lua-5.4.3/src/lvm.h.
Referenced by luaO_rawarith(), and luaV_execute().
#define tonumber | ( | o, | |
n ) (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n)) |
Definition at line 51 of file lua-5.4.3/src/lvm.h.
#define tonumberns | ( | o, | |
n ) |
Definition at line 56 of file lua-5.4.3/src/lvm.h.
Referenced by luaO_rawarith(), and luaV_execute().
enum F2Imod |
Enumerator | |
---|---|
F2Ieq | |
F2Ifloor | |
F2Iceil |
Definition at line 43 of file lua-5.4.3/src/lvm.h.
Definition at line 293 of file lua-5.2.4/src/lvm.c.
References call_binTM(), cast_void, copy2buff(), copy2buff(), cvt2str, G, getstr, isemptystr, lua_assert, luaG_concaterror(), luaG_runerror(), LUAI_MAXSHORTLEN, luaS_createlngstrobj(), luaS_newlstr(), luaT_trybinTM(), luaT_tryconcatTM(), luaZ_openspace(), MAX_SIZE, MAX_SIZET, s2v, setobjs2s, setsvalue2s, svalue, TM_CONCAT, lua_State::top, tostring, tsvalue, ttisnumber, ttisstring, and vslen.
Referenced by luaV_execute(), luaV_execute(), and luaV_finishOp().
Definition at line 407 of file lua-5.3.6/src/lvm.c.
References bvalue, eqshrstr, F2Ieq, fasttm, fltvalue, fvalue, gcvalue, hvalue, ivalue, l_isfalse, LUA_TBOOLEAN, LUA_TLCF, LUA_TLIGHTUSERDATA, LUA_TLNGSTR, LUA_TNIL, LUA_TNUMBER, LUA_TNUMFLT, LUA_TNUMINT, LUA_TSHRSTR, LUA_TTABLE, LUA_TUSERDATA, LUA_VFALSE, LUA_VLCF, LUA_VLIGHTUSERDATA, LUA_VLNGSTR, LUA_VNIL, LUA_VNUMFLT, LUA_VNUMINT, LUA_VSHRSTR, LUA_VTABLE, LUA_VTRUE, LUA_VUSERDATA, luai_numeq, luaS_eqlngstr(), luaT_callTM(), luaT_callTMres(), luaV_tointegerns(), NULL, pvalue, s2v, TM_EQ, tointeger, lua_State::top, tsvalue, ttnov, ttype, ttypetag, and uvalue.
Referenced by lua_compare(), luaV_execute(), and luaV_execute().
Definition at line 1129 of file lua-5.4.3/src/lvm.c.
References Table::array, CallInfo::callstatus, cast_int, cast_num, cast_void, checkGC, checkstackGCp, chgivalue, lua_State::ci, CIST_FRESH, clLvalue, CLOSEKTOP, Proto::code, cond(), docondjump, dojump, donextjump, floatforloop(), fltvalue, forprep(), CallInfo::func, GET_OPCODE, GETARG_A, GETARG_Ax, GETARG_B, GETARG_Bx, GETARG_C, GETARG_k, GETARG_sB, GETARG_sBx, GETARG_sC, halfProtect, lua_State::hookmask, hvalue, intop, Proto::is_vararg, isIT, ivalue, Proto::k, KB, KC, CallInfo::l, l_addi, l_band, l_bor, l_bxor, l_castS2U, l_gei, l_gti, l_isfalse, l_lei, l_lti, l_muli, l_subi, LEnum(), lessequalothers(), lessthanothers(), LTnum(), lua_assert, LUA_MULTRET, LUA_OK, luaC_barrier, luaC_barrierback, luaD_call(), luaD_hookcall(), luaD_poscall(), luaD_precall(), luaD_pretailcall(), luaD_tryfuncTM(), luaF_close(), luaF_closeupval(), luaF_newtbcupval(), luaH_get(), luaH_getshortstr(), luaH_getstr(), luaH_new(), luaH_realasize(), luaH_resize(), luaH_resizearray(), luai_numadd, luai_numdiv, luai_numeq, luai_numge, luai_numgt, luai_numidiv, luai_numle, luai_numlt, luai_nummul, luai_numpow, luai_numsub, luai_numunm, luaT_adjustvarargs(), luaT_getvarargs(), luaT_trybinassocTM(), luaT_trybiniTM(), luaT_trybinTM(), luaV_concat(), luaV_equalobj(), luaV_fastget, luaV_fastgeti, luaV_finishfastset, luaV_finishget(), luaV_finishset(), luaV_idiv(), luaV_mod(), luaV_modf(), luaV_objlen(), luaV_rawequalobj, luaV_shiftl(), luaV_shiftr, MAXARG_C, CallInfo::nextraargs, CallInfo::nresults, NULL, obj2gco, lua_State::oldpc, OP_ADD, OP_ADDI, OP_ADDK, op_arith, op_arithf, op_arithfK, op_arithI, op_arithK, OP_BAND, OP_BANDK, op_bitwise, op_bitwiseK, OP_BNOT, OP_BOR, OP_BORK, OP_BXOR, OP_BXORK, OP_CALL, OP_CLOSE, OP_CLOSURE, OP_CONCAT, OP_DIV, OP_DIVK, OP_EQ, OP_EQI, OP_EQK, OP_EXTRAARG, OP_FORLOOP, OP_FORPREP, OP_GEI, OP_GETFIELD, OP_GETI, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_GTI, OP_IDIV, OP_IDIVK, OP_JMP, OP_LE, OP_LEI, OP_LEN, OP_LFALSESKIP, OP_LOADF, OP_LOADFALSE, OP_LOADI, OP_LOADK, OP_LOADKX, OP_LOADNIL, OP_LOADTRUE, OP_LT, OP_LTI, OP_MMBIN, OP_MMBINI, OP_MMBINK, OP_MOD, OP_MODK, OP_MOVE, OP_MUL, OP_MULK, OP_NEWTABLE, OP_NOT, op_order, op_orderI, OP_POW, OP_POWK, OP_RETURN, OP_RETURN0, OP_RETURN1, OP_SELF, OP_SETFIELD, OP_SETI, OP_SETLIST, OP_SETTABLE, OP_SETTABUP, OP_SETUPVAL, OP_SHL, OP_SHLI, OP_SHR, OP_SHRI, OP_SUB, OP_SUBK, OP_TAILCALL, OP_TBC, OP_TEST, OP_TESTSET, OP_TFORCALL, OP_TFORLOOP, OP_TFORPREP, OP_UNM, OP_VARARG, OP_VARARGPREP, Proto::p, LClosure::p, CallInfo::previous, Protect, ProtectNT, pushclosure(), RA, RB, RKC, s2v, CallInfo::savedpc, savepc, savestate, setbfvalue, setbtvalue, setfltvalue, sethvalue2s, setivalue, setnilvalue, setobj, setobj2s, setobj2t, setobjs2s, lua_State::stack_last, lua_State::tbclist, TESTARG_k, TM_BNOT, TM_LE, TM_LT, TM_UNM, tointegerns, tonumberns, CallInfo::top, lua_State::top, CallInfo::trap, tsvalue, ttisfloat, ttisfunction, ttisinteger, ttisLclosure, ttisnil, CallInfo::u, updatebase, updatestack, updatetrap, LClosure::upvals, UpVal::v, vmbreak, vmcase, vmdispatch, vmfetch, vRB, and vRC.
LUAI_FUNC void luaV_finishget | ( | lua_State * | L, |
const TValue * | t, | ||
TValue * | key, | ||
StkId | val, | ||
const TValue * | slot ) |
Definition at line 160 of file lua-5.3.6/src/lvm.c.
References fasttm, hvalue, isempty, lua_assert, luaG_runerror(), luaG_typeerror(), luaH_get(), luaT_callTM(), luaT_callTMres(), luaT_gettmbyobj(), luaV_fastget, MAXTAGLOOP, notm, NULL, s2v, setnilvalue, setobj2s, TM_INDEX, ttisfunction, ttisnil, and ttistable.
Referenced by auxgetstr(), auxgetstr(), lua_geti(), lua_gettable(), luaV_execute(), and luaV_execute().
Definition at line 423 of file lua-5.2.4/src/lvm.c.
References CallInfo::base, CallInfo::callstatus, cast_int, lua_State::ci, CIST_LEQ, CallInfo::func, GET_OPCODE, GETARG_A, GETARG_B, GETARG_C, GETARG_k, ISK, CallInfo::l, l_isfalse, lua_assert, luaT_gettmbyobj(), luaV_concat(), OP_ADD, OP_BAND, OP_BNOT, OP_BOR, OP_BXOR, OP_CALL, OP_CLOSE, OP_CONCAT, OP_DIV, OP_EQ, OP_GEI, OP_GETFIELD, OP_GETI, OP_GETTABLE, OP_GETTABUP, OP_GTI, OP_IDIV, OP_JMP, OP_LE, OP_LEI, OP_LEN, OP_LT, OP_LTI, OP_MMBIN, OP_MMBINI, OP_MMBINK, OP_MOD, OP_MUL, OP_POW, OP_RETURN, OP_SELF, OP_SETFIELD, OP_SETI, OP_SETTABLE, OP_SETTABUP, OP_SHL, OP_SHR, OP_SUB, OP_TAILCALL, OP_TFORCALL, OP_TFORLOOP, OP_UNM, s2v, CallInfo::savedpc, setobj2s, setobjs2s, TM_LE, CallInfo::top, lua_State::top, ttisnil, and CallInfo::u.
LUAI_FUNC void luaV_finishset | ( | lua_State * | L, |
const TValue * | t, | ||
TValue * | key, | ||
TValue * | val, | ||
const TValue * | slot ) |
Definition at line 330 of file lua-5.4.3/src/lvm.c.
References fasttm, hvalue, invalidateTMcache, isempty, lua_assert, luaC_barrierback, luaG_runerror(), luaG_typeerror(), luaH_finishset(), luaH_get(), luaT_callTM(), luaT_gettmbyobj(), luaV_fastget, luaV_finishfastset, MAXTAGLOOP, Table::metatable, notm, NULL, obj2gco, TM_NEWINDEX, and ttisfunction.
Referenced by luaV_execute().
LUAI_FUNC int luaV_flttointeger | ( | lua_Number | n, |
lua_Integer * | p, | ||
F2Imod | mode ) |
Definition at line 121 of file lua-5.4.3/src/lvm.c.
References F2Iceil, F2Ieq, l_floor, and lua_numbertointeger.
Referenced by isSCnumber(), LEfloatint(), LEintfloat(), LTfloatint(), LTintfloat(), luaH_get(), luaH_newkey(), luaK_float(), and luaV_tointegerns().
LUAI_FUNC lua_Integer luaV_idiv | ( | lua_State * | L, |
lua_Integer | x, | ||
lua_Integer | y ) |
Definition at line 718 of file lua-5.4.3/src/lvm.c.
References intop, l_castS2U, and luaG_runerror().
Referenced by intarith(), and luaV_execute().
Definition at line 243 of file lua-5.2.4/src/lvm.c.
References call_orderTM(), CallInfo::callstatus, lua_State::ci, CIST_LEQ, l_strcmp(), l_strcmp(), LEnum(), LEnum(), lessequalothers(), luaG_ordererror(), luai_numle, luaT_callorderTM(), nvalue, rawtsvalue, TM_LE, TM_LT, tsvalue, ttisnumber, and ttisstring.
Referenced by lua_compare(), and luaV_execute().
Definition at line 225 of file lua-5.1.5/src/lvm.c.
References call_orderTM(), call_orderTM(), l_strcmp(), l_strcmp(), l_strcmp(), lessthanothers(), LTnum(), LTnum(), luaG_ordererror(), luai_numlt, luaT_callorderTM(), nvalue, rawtsvalue, TM_LT, tsvalue, ttisnumber, ttisstring, and ttype.
Referenced by lua_compare(), lua_lessthan(), luaV_execute(), and luaV_execute().
LUAI_FUNC lua_Integer luaV_mod | ( | lua_State * | L, |
lua_Integer | x, | ||
lua_Integer | y ) |
Definition at line 572 of file lua-5.3.6/src/lvm.c.
References l_castS2U, and luaG_runerror().
Referenced by intarith(), intarith(), luaV_execute(), and luaV_execute().
LUAI_FUNC lua_Number luaV_modf | ( | lua_State * | L, |
lua_Number | x, | ||
lua_Number | y ) |
Definition at line 756 of file lua-5.4.3/src/lvm.c.
References luai_nummod.
Referenced by luaV_execute(), and numarith().
Definition at line 335 of file lua-5.2.4/src/lvm.c.
References callTM(), cast_num, fasttm, hvalue, LUA_TLNGSTR, LUA_TSHRSTR, LUA_TSTRING, LUA_TTABLE, LUA_VLNGSTR, LUA_VSHRSTR, LUA_VTABLE, luaG_typeerror(), luaH_getn(), luaT_callTM(), luaT_callTMres(), luaT_gettmbyobj(), Table::metatable, notm, s2v, setivalue, setnvalue, TM_LEN, tsvalue, ttisnil, ttype, ttypenv, and ttypetag.
Referenced by lua_len(), luaV_execute(), and luaV_execute().
LUAI_FUNC lua_Integer luaV_shiftl | ( | lua_Integer | x, |
lua_Integer | y ) |
Definition at line 593 of file lua-5.3.6/src/lvm.c.
Referenced by intarith(), intarith(), luaV_execute(), and luaV_execute().
LUAI_FUNC int luaV_tointeger | ( | const TValue * | obj, |
lua_Integer * | p, | ||
F2Imod | mode ) |
Definition at line 152 of file lua-5.4.3/src/lvm.c.
References l_strton(), and luaV_tointegerns().
Referenced by forlimit().
LUAI_FUNC int luaV_tointegerns | ( | const TValue * | obj, |
lua_Integer * | p, | ||
F2Imod | mode ) |
Definition at line 137 of file lua-5.4.3/src/lvm.c.
References fltvalue, ivalue, luaV_flttointeger(), ttisfloat, and ttisinteger.
Referenced by luaG_tointerror(), luaV_equalobj(), luaV_tointeger(), and validop().
LUAI_FUNC int luaV_tonumber_ | ( | const TValue * | obj, |
lua_Number * | n ) |
Definition at line 72 of file lua-5.3.6/src/lvm.c.
References cast_num, cvt2num, ivalue, l_strton(), luaO_str2num(), nvalue, svalue, ttisinteger, and vslen.