Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Go to the source code of this file.
Macros | |
#define | lvm_c |
#define | LUA_CORE |
#define | LUA_USE_JUMPTABLE 0 |
#define | MAXTAGLOOP 2000 |
#define | NBM (l_floatatt(MANT_DIG)) |
#define | l_intfitsf(i) 1 |
#define | tostring(L, o) (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1))) |
#define | isemptystr(o) (ttisshrstring(o) && tsvalue(o)->shrlen == 0) |
#define | NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
#define | luaV_shiftr(x, y) luaV_shiftl(x,-(y)) |
#define | l_addi(L, a, b) intop(+, a, b) |
#define | l_subi(L, a, b) intop(-, a, b) |
#define | l_muli(L, a, b) intop(*, a, b) |
#define | l_band(a, b) intop(&, a, b) |
#define | l_bor(a, b) intop(|, a, b) |
#define | l_bxor(a, b) intop(^, a, b) |
#define | l_lti(a, b) (a < b) |
#define | l_lei(a, b) (a <= b) |
#define | l_gti(a, b) (a > b) |
#define | l_gei(a, b) (a >= b) |
#define | op_arithI(L, iop, fop) |
#define | op_arithf_aux(L, v1, v2, fop) |
#define | op_arithf(L, fop) |
#define | op_arithfK(L, fop) |
#define | op_arith_aux(L, v1, v2, iop, fop) |
#define | op_arith(L, iop, fop) |
#define | op_arithK(L, iop, fop) |
#define | op_bitwiseK(L, op) |
#define | op_bitwise(L, op) |
#define | op_order(L, opi, opn, other) |
#define | op_orderI(L, opi, opf, inv, tm) |
#define | RA(i) (base+GETARG_A(i)) |
#define | RB(i) (base+GETARG_B(i)) |
#define | vRB(i) s2v(RB(i)) |
#define | KB(i) (k+GETARG_B(i)) |
#define | RC(i) (base+GETARG_C(i)) |
#define | vRC(i) s2v(RC(i)) |
#define | KC(i) (k+GETARG_C(i)) |
#define | RKC(i) ((TESTARG_k(i)) ? k + GETARG_C(i) : s2v(base + GETARG_C(i))) |
#define | updatetrap(ci) (trap = ci->u.l.trap) |
#define | updatebase(ci) (base = ci->func + 1) |
#define | updatestack(ci) { if (l_unlikely(trap)) { updatebase(ci); ra = RA(i); } } |
#define | dojump(ci, i, e) { pc += GETARG_sJ(i) + e; updatetrap(ci); } |
#define | donextjump(ci) { Instruction ni = *pc; dojump(ci, ni, 1); } |
#define | docondjump() if (cond != GETARG_k(i)) pc++; else donextjump(ci); |
#define | savepc(L) (ci->u.l.savedpc = pc) |
#define | savestate(L, ci) (savepc(L), L->top = ci->top) |
#define | Protect(exp) (savestate(L,ci), (exp), updatetrap(ci)) |
#define | ProtectNT(exp) (savepc(L), (exp), updatetrap(ci)) |
#define | halfProtect(exp) (savestate(L,ci), (exp)) |
#define | checkGC(L, c) |
#define | vmfetch() |
#define | vmdispatch(o) switch(o) |
#define | vmcase(l) case l: |
#define | vmbreak break |
#define checkGC | ( | L, | |
c ) |
Definition at line 1108 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define docondjump | ( | ) | if (cond != GETARG_k(i)) pc++; else donextjump(ci); |
Definition at line 1076 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define dojump | ( | ci, | |
i, | |||
e ) { pc += GETARG_sJ(i) + e; updatetrap(ci); } |
Definition at line 1065 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define donextjump | ( | ci | ) | { Instruction ni = *pc; dojump(ci, ni, 1); } |
Definition at line 1069 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define halfProtect | ( | exp | ) | (savestate(L,ci), (exp)) |
Definition at line 1105 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define isemptystr | ( | o | ) | (ttisshrstring(o) && tsvalue(o)->shrlen == 0) |
Definition at line 621 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_concat().
#define KB | ( | i | ) | (k+GETARG_B(i)) |
Definition at line 1044 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define KC | ( | i | ) | (k+GETARG_C(i)) |
Definition at line 1047 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 873 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 876 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 877 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 878 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 883 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 882 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define l_intfitsf | ( | i | ) | 1 |
Definition at line 78 of file lua-5.4.3/src/lvm.c.
Referenced by LEfloatint(), LEintfloat(), LEintfloat(), LTfloatint(), LTintfloat(), and LTintfloat().
Definition at line 881 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 880 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 875 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 874 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/lvm.c.
#define LUA_USE_JUMPTABLE 0 |
Definition at line 42 of file lua-5.4.3/src/lvm.c.
#define luaV_shiftr | ( | x, | |
y ) luaV_shiftl(x,-(y)) |
Definition at line 769 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define lvm_c |
Definition at line 7 of file lua-5.4.3/src/lvm.c.
#define MAXTAGLOOP 2000 |
Definition at line 49 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_finishget(), and luaV_finishset().
#define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
Definition at line 764 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_shiftl().
#define NBM (l_floatatt(MANT_DIG)) |
Definition at line 58 of file lua-5.4.3/src/lvm.c.
#define op_arith | ( | L, | |
iop, | |||
fop ) |
Definition at line 947 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_arith_aux | ( | L, | |
v1, | |||
v2, | |||
iop, | |||
fop ) |
Definition at line 936 of file lua-5.4.3/src/lvm.c.
#define op_arithf | ( | L, | |
fop ) |
Definition at line 918 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_arithf_aux | ( | L, | |
v1, | |||
v2, | |||
fop ) |
Definition at line 908 of file lua-5.4.3/src/lvm.c.
#define op_arithfK | ( | L, | |
fop ) |
Definition at line 927 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_arithI | ( | L, | |
iop, | |||
fop ) |
Definition at line 890 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_arithK | ( | L, | |
iop, | |||
fop ) |
Definition at line 956 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_bitwise | ( | L, | |
op ) |
Definition at line 978 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_bitwiseK | ( | L, | |
op ) |
Definition at line 965 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_order | ( | L, | |
opi, | |||
opn, | |||
other ) |
Definition at line 992 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define op_orderI | ( | L, | |
opi, | |||
opf, | |||
inv, | |||
tm ) |
Definition at line 1011 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define Protect | ( | exp | ) | (savestate(L,ci), (exp), updatetrap(ci)) |
Definition at line 1096 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define ProtectNT | ( | exp | ) | (savepc(L), (exp), updatetrap(ci)) |
Definition at line 1099 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define RA | ( | i | ) | (base+GETARG_A(i)) |
Definition at line 1041 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define RB | ( | i | ) | (base+GETARG_B(i)) |
Definition at line 1042 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define RC | ( | i | ) | (base+GETARG_C(i)) |
Definition at line 1045 of file lua-5.4.3/src/lvm.c.
Definition at line 1048 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define savepc | ( | L | ) | (ci->u.l.savedpc = pc) |
Definition at line 1082 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define savestate | ( | L, | |
ci ) (savepc(L), L->top = ci->top) |
Definition at line 1089 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define tostring | ( | L, | |
o ) (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1))) |
Definition at line 618 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_concat().
#define updatebase | ( | ci | ) | (base = ci->func + 1) |
Definition at line 1054 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define updatestack | ( | ci | ) | { if (l_unlikely(trap)) { updatebase(ci); ra = RA(i); } } |
Definition at line 1057 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define updatetrap | ( | ci | ) | (trap = ci->u.l.trap) |
Definition at line 1052 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define vmbreak break |
Definition at line 1126 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define vmcase | ( | l | ) | case l: |
Definition at line 1125 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define vmdispatch | ( | o | ) | switch(o) |
Definition at line 1124 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
#define vmfetch | ( | ) |
Definition at line 1115 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 1043 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
Definition at line 1046 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
|
static |
Definition at line 624 of file lua-5.4.3/src/lvm.c.
References s2v, svalue, and vslen.
Referenced by luaV_concat().
|
static |
Definition at line 266 of file lua-5.4.3/src/lvm.c.
References chgfltvalue, fltvalue, luai_numadd, luai_numle, luai_numlt, s2v, and setfltvalue.
Referenced by luaV_execute().
|
static |
Definition at line 176 of file lua-5.4.3/src/lvm.c.
References F2Iceil, F2Ifloor, luaG_forerror(), luai_numlt, luaV_tointeger(), and tonumber.
Referenced by forprep().
Definition at line 206 of file lua-5.4.3/src/lvm.c.
References forlimit(), ivalue, l_castS2U, l_castU2S, luaG_forerror(), luaG_runerror(), luai_numlt, s2v, setfltvalue, setivalue, tonumber, and ttisinteger.
Referenced by forbody(), and luaV_execute().
Definition at line 375 of file lua-5.4.3/src/lvm.c.
References getstr, and tsslen.
Referenced by lessequalothers(), and lessthanothers().
Definition at line 90 of file lua-5.4.3/src/lvm.c.
References cvt2num, lua_assert, luaO_str2num(), svalue, and vslen.
Referenced by luaV_tointeger(), and luaV_tonumber_().
|
static |
Definition at line 460 of file lua-5.4.3/src/lvm.c.
References cast_num, F2Iceil, l_intfitsf, luai_numle, and luaV_flttointeger().
Referenced by LEnum().
|
static |
Definition at line 426 of file lua-5.4.3/src/lvm.c.
References cast_num, F2Ifloor, l_intfitsf, luai_numle, and luaV_flttointeger().
Referenced by LEnum().
Definition at line 498 of file lua-5.4.3/src/lvm.c.
References fltvalue, ivalue, LEfloatint(), LEintfloat(), lua_assert, luai_numle, ttisfloat, ttisinteger, and ttisnumber.
Referenced by luaV_execute(), and luaV_lessequal().
Definition at line 542 of file lua-5.4.3/src/lvm.c.
References l_strcmp(), lua_assert, luaT_callorderTM(), TM_LE, tsvalue, ttisnumber, and ttisstring.
Referenced by luaV_execute(), and luaV_lessequal().
Definition at line 520 of file lua-5.4.3/src/lvm.c.
References l_strcmp(), lua_assert, luaT_callorderTM(), TM_LT, tsvalue, ttisnumber, and ttisstring.
Referenced by luaV_execute(), and luaV_lessthan().
|
static |
Definition at line 443 of file lua-5.4.3/src/lvm.c.
References cast_num, F2Ifloor, l_intfitsf, luai_numlt, and luaV_flttointeger().
Referenced by LTnum().
|
static |
Definition at line 409 of file lua-5.4.3/src/lvm.c.
References cast_num, F2Iceil, l_intfitsf, luai_numlt, and luaV_flttointeger().
Referenced by LTnum().
Definition at line 476 of file lua-5.4.3/src/lvm.c.
References fltvalue, ivalue, LTfloatint(), LTintfloat(), lua_assert, luai_numlt, ttisfloat, ttisinteger, and ttisnumber.
Referenced by luaV_execute(), and luaV_lessthan().
void luaV_concat | ( | lua_State * | L, |
int | total ) |
Definition at line 638 of file lua-5.4.3/src/lvm.c.
References cast_void, copy2buff(), cvt2str, getstr, isemptystr, luaG_runerror(), LUAI_MAXSHORTLEN, luaS_createlngstrobj(), luaS_newlstr(), luaT_tryconcatTM(), MAX_SIZE, s2v, setobjs2s, setsvalue2s, lua_State::top, tostring, ttisstring, and vslen.
Referenced by luaV_execute(), and luaV_finishOp().
Definition at line 565 of file lua-5.4.3/src/lvm.c.
References eqshrstr, F2Ieq, fasttm, fltvalue, fvalue, gcvalue, hvalue, ivalue, l_isfalse, LUA_TNUMBER, 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_callTMres(), luaV_tointegerns(), NULL, pvalue, s2v, TM_EQ, lua_State::top, tsvalue, ttype, ttypetag, and uvalue.
Referenced by 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.
void luaV_finishget | ( | lua_State * | L, |
const TValue * | t, | ||
TValue * | key, | ||
StkId | val, | ||
const TValue * | slot ) |
Definition at line 287 of file lua-5.4.3/src/lvm.c.
References fasttm, hvalue, isempty, lua_assert, luaG_runerror(), luaG_typeerror(), luaH_get(), luaT_callTMres(), luaT_gettmbyobj(), luaV_fastget, MAXTAGLOOP, notm, NULL, s2v, setnilvalue, setobj2s, TM_INDEX, ttisfunction, and ttistable.
Referenced by luaV_execute().
void luaV_finishOp | ( | lua_State * | L | ) |
Definition at line 808 of file lua-5.4.3/src/lvm.c.
References CallInfo::callstatus, cast_int, lua_State::ci, CIST_LEQ, CallInfo::func, GET_OPCODE, GETARG_A, GETARG_k, CallInfo::l, l_isfalse, lua_assert, luaV_concat(), OP_BNOT, OP_CALL, OP_CLOSE, OP_CONCAT, OP_EQ, OP_GEI, OP_GETFIELD, OP_GETI, OP_GETTABLE, OP_GETTABUP, OP_GTI, OP_JMP, OP_LE, OP_LEI, OP_LEN, OP_LT, OP_LTI, OP_MMBIN, OP_MMBINI, OP_MMBINK, OP_RETURN, OP_SELF, OP_SETFIELD, OP_SETI, OP_SETTABLE, OP_SETTABUP, OP_TAILCALL, OP_TFORCALL, OP_UNM, s2v, CallInfo::savedpc, setobjs2s, lua_State::top, and CallInfo::u.
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().
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().
lua_Integer luaV_idiv | ( | lua_State * | L, |
lua_Integer | m, | ||
lua_Integer | n ) |
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 554 of file lua-5.4.3/src/lvm.c.
References LEnum(), lessequalothers(), and ttisnumber.
Definition at line 532 of file lua-5.4.3/src/lvm.c.
References lessthanothers(), LTnum(), and ttisnumber.
lua_Integer luaV_mod | ( | lua_State * | L, |
lua_Integer | m, | ||
lua_Integer | n ) |
Definition at line 738 of file lua-5.4.3/src/lvm.c.
References l_castS2U, and luaG_runerror().
Referenced by luaV_execute().
lua_Number luaV_modf | ( | lua_State * | L, |
lua_Number | m, | ||
lua_Number | n ) |
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 683 of file lua-5.4.3/src/lvm.c.
References fasttm, hvalue, LUA_VLNGSTR, LUA_VSHRSTR, LUA_VTABLE, luaG_typeerror(), luaH_getn(), luaT_callTMres(), luaT_gettmbyobj(), Table::metatable, notm, s2v, setivalue, TM_LEN, tsvalue, and ttypetag.
Referenced by luaV_execute().
lua_Integer luaV_shiftl | ( | lua_Integer | x, |
lua_Integer | y ) |
Definition at line 771 of file lua-5.4.3/src/lvm.c.
Referenced by luaV_execute().
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().
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().
int luaV_tonumber_ | ( | const TValue * | obj, |
lua_Number * | n ) |
Definition at line 103 of file lua-5.4.3/src/lvm.c.
References cast_num, ivalue, l_strton(), nvalue, and ttisinteger.
Definition at line 787 of file lua-5.4.3/src/lvm.c.
References Upvaldesc::idx, luaC_objbarrier, luaF_findupval(), luaF_newLclosure(), LClosure::p, setclLvalue2s, Proto::sizeupvalues, LClosure::upvals, and Proto::upvalues.
Referenced by luaV_execute().