/external/lua/src/ |
D | lutf8lib.c | 43 static lua_Integer u_posrelat (lua_Integer pos, size_t len) { in u_posrelat() 46 else return (lua_Integer)len + pos + 1; in u_posrelat() 93 lua_Integer n = 0; /* counter for the number of characters */ in utflen() 96 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in utflen() 97 lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len); in utflen() 99 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen() 101 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen() 125 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in codepoint() 126 lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len); in codepoint() 131 luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of bounds"); in codepoint() [all …]
|
D | lvm.h | 117 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode); 118 LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p, 120 LUAI_FUNC int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode); 128 LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y); 129 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); 131 LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y);
|
D | ltablib.c | 62 lua_Integer e = aux_getn(L, 1, TAB_RW) + 1; /* first empty element */ in tinsert() 63 lua_Integer pos; /* where to insert new element */ in tinsert() 70 lua_Integer i; in tinsert() 91 lua_Integer size = aux_getn(L, 1, TAB_RW); in tremove() 92 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove() 115 lua_Integer f = luaL_checkinteger(L, 2); in tmove() 116 lua_Integer e = luaL_checkinteger(L, 3); in tmove() 117 lua_Integer t = luaL_checkinteger(L, 4); in tmove() 122 lua_Integer n, i; in tmove() 146 static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { in addfield() [all …]
|
D | lvm.c | 121 int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode) { in luaV_flttointeger() 137 int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointegerns() 152 int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointeger() 176 static int forlimit (lua_State *L, lua_Integer init, const TValue *lim, in forlimit() 177 lua_Integer *p, lua_Integer step) { in forlimit() 211 lua_Integer init = ivalue(pinit); in forprep() 212 lua_Integer step = ivalue(pstep); in forprep() 213 lua_Integer limit; in forprep() 412 static int LTintfloat (lua_Integer i, lua_Number f) { in LTintfloat() 416 lua_Integer fi; in LTintfloat() [all …]
|
D | lstrlib.c | 58 lua_pushinteger(L, (lua_Integer)l); in str_len() 71 static size_t posrelatI (lua_Integer pos, size_t len) { in posrelatI() 76 else if (pos < -(lua_Integer)len) /* inverted comparison */ in posrelatI() 87 static size_t getendpos (lua_State *L, int arg, lua_Integer def, in getendpos() 89 lua_Integer pos = luaL_optinteger(L, arg, def); in getendpos() 90 if (pos > (lua_Integer)len) in getendpos() 94 else if (pos < -(lua_Integer)len) in getendpos() 153 lua_Integer n = luaL_checkinteger(L, 2); in str_rep() 179 lua_Integer pi = luaL_optinteger(L, 2, 1); in str_byte() 945 lua_Integer max_s = luaL_optinteger(L, 4, srcl + 1); /* max replacements */ in str_gsub() [all …]
|
D | lauxlib.h | 43 #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number)) 61 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); 62 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, 63 lua_Integer def); 102 LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx); 261 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
D | lmathlib.c | 31 lua_Integer n = lua_tointeger(L, 1); in math_abs() 32 if (n < 0) n = (lua_Integer)(0u - (lua_Unsigned)n); in math_abs() 75 lua_Integer n = lua_tointegerx(L, 1, &valid); in math_toint() 87 lua_Integer n; in pushnumint() 119 lua_Integer d = lua_tointeger(L, 2); in math_fmod() 163 lua_Integer a = luaL_checkinteger(L, 1); in math_ult() 164 lua_Integer b = luaL_checkinteger(L, 2); in math_ult() 557 lua_Integer low, up; in math_random() 623 lua_Integer n1 = luaL_checkinteger(L, 1); in math_randomseed() 624 lua_Integer n2 = luaL_optinteger(L, 2, 0); in math_randomseed()
|
D | lua.h | 94 typedef LUA_INTEGER lua_Integer; typedef 191 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 235 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); 253 LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); 255 LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); 270 LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); 272 LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); 405 #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n))
|
D | lobject.c | 53 static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, in intarith() 54 lua_Integer v2) { in intarith() 95 lua_Integer i1; lua_Integer i2; in luaO_rawarith() 276 static const char *l_str2int (const char *s, lua_Integer *result) { in l_str2int() 309 lua_Integer i; lua_Number n; in luaO_str2num() 497 setivalue(&num, cast(lua_Integer, va_arg(argp, l_uacInt))); in luaO_pushvfstring()
|
D | lbaselib.c | 60 static const char *b_str2int (const char *s, int base, lua_Integer *pn) { in b_str2int() 76 *pn = (lua_Integer)((neg) ? (0u - n) : n); in b_str2int() 99 lua_Integer n = 0; /* to avoid warnings */ in luaB_tonumber() 100 lua_Integer base = luaL_checkinteger(L, 2); in luaB_tonumber() 282 lua_Integer i = luaL_checkinteger(L, 2) + 1; in ipairsaux() 423 lua_Integer i = luaL_checkinteger(L, 1); in luaB_select()
|
D | loslib.c | 67 #define l_timet lua_Integer 68 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) 214 lua_pushinteger(L, (lua_Integer)value + delta); in setfield() 254 lua_Integer res = lua_tointegerx(L, -1, &isnum); in getfield() 265 : (lua_Integer)INT_MIN + delta <= res)) in getfield()
|
D | ltable.h | 38 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 39 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
|
D | ltable.c | 116 lua_Integer ni; in l_hashfloat() 274 static unsigned int arrayindex (lua_Integer k) { in arrayindex() 369 static int countint (lua_Integer key, unsigned int *nums) { in countint() 628 lua_Integer k; in luaH_newkey() 683 const TValue *luaH_getint (Table *t, lua_Integer key) { in luaH_getint() 747 lua_Integer k; in luaH_get() 770 void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { in luaH_setint() 906 if (isdummy(t) || isempty(luaH_getint(t, cast(lua_Integer, limit + 1)))) in luaH_getn()
|
D | llimits.h | 44 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ 148 #define l_castU2S(i) ((lua_Integer)(i))
|
D | lundump.c | 100 static lua_Integer loadInteger (LoadState *S) { in loadInteger() 101 lua_Integer x; in loadInteger() 299 checksize(S, lua_Integer); in checkHeader()
|
D | lauxlib.c | 442 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) { in luaL_checkinteger() 444 lua_Integer d = lua_tointegerx(L, arg, &isnum); in luaL_checkinteger() 452 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, in luaL_optinteger() 453 lua_Integer def) { in luaL_optinteger() 849 LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { in luaL_len() 850 lua_Integer l; in luaL_len()
|
D | ldump.c | 83 static void dumpInteger (DumpState *D, lua_Integer x) { in dumpInteger() 203 dumpByte(D, sizeof(lua_Integer)); in dumpHeader()
|
D | liolib.c | 695 lua_Integer p3 = luaL_optinteger(L, 3, 0); in f_seek() 697 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek() 703 lua_pushinteger(L, (lua_Integer)l_ftell(f)); in f_seek() 714 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); in f_setvbuf()
|
D | llex.h | 51 lua_Integer i;
|
D | lparser.h | 70 lua_Integer ival; /* for VKINT */
|
D | lcode.c | 592 static int luaK_intK (FuncState *fs, lua_Integer n) { in luaK_intK() 646 static int fitsC (lua_Integer i) { in fitsC() 654 static int fitsBx (lua_Integer i) { in fitsBx() 659 void luaK_int (FuncState *fs, int reg, lua_Integer i) { in luaK_int() 668 lua_Integer fi; in luaK_float() 1239 lua_Integer i; in isSCnumber() 1301 lua_Integer i; in validop() 1403 lua_Integer i2 = e2->u.ival; in finishbinexpneg()
|
D | ltm.h | 90 LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
|
D | lapi.c | 365 LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { in lua_tointegerx() 366 lua_Integer res = 0; in lua_tointegerx() 489 LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { in lua_pushinteger() 661 LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) { in lua_geti() 710 LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { in lua_rawgeti() 843 LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) { in lua_seti() 889 LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) { in lua_rawseti()
|
D | lcode.h | 73 LUAI_FUNC void luaK_int (FuncState *fs, int reg, lua_Integer n);
|
D | luaconf.h | 756 #define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l
|