/netbsd-src/external/mit/lua/dist/src/ |
H A D | lutf8lib.c | 51 static lua_Integer u_posrelat (lua_Integer pos, size_t len) { in u_posrelat() 54 else return (lua_Integer)len + pos + 1; in u_posrelat() 101 lua_Integer n = 0; /* counter for the number of characters */ in utflen() 104 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in utflen() 105 lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len); in utflen() 107 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen() 109 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen() 133 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in codepoint() 134 lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len); in codepoint() 139 luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of bounds"); in codepoint() [all …]
|
H A D | lvm.h | 130 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode); 131 LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p, 133 LUAI_FUNC int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode); 141 LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y); 142 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); 144 LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y);
|
H A D | ltablib.c | 66 lua_Integer pos; /* where to insert new element */ in tinsert() 67 lua_Integer e = aux_getn(L, 1, TAB_RW); in tinsert() 75 lua_Integer i; in tinsert() 96 lua_Integer size = aux_getn(L, 1, TAB_RW); in tremove() 97 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove() 120 lua_Integer f = luaL_checkinteger(L, 2); in tmove() 121 lua_Integer e = luaL_checkinteger(L, 3); in tmove() 122 lua_Integer t = luaL_checkinteger(L, 4); in tmove() 127 lua_Integer n, i; in tmove() 151 static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { in addfield() [all …]
|
H A D | lvm.c | 130 int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode) { in luaV_flttointeger() 147 int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) { 167 int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) { 192 static int forlimit (lua_State *L, lua_Integer init, const TValue *lim, 193 lua_Integer *p, lua_Integer step) { 230 lua_Integer init = ivalue(pinit); 231 lua_Integer step = ivalue(pstep); 232 lua_Integer limit; 435 l_sinline int LTintfloat (lua_Integer i, lua_Number f) { 439 lua_Integer fi; [all …]
|
H A D | lobject.c | 57 static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, in intarith() 58 lua_Integer v2) { in intarith() 101 lua_Integer i1; lua_Integer i2; in luaO_rawarith() 130 lua_Integer i1; lua_Integer i2; in luaO_rawarith() 294 static const char *l_str2int (const char *s, lua_Integer *result) { in l_str2int() 328 lua_Integer i; lua_Number n; in luaO_str2num() 330 lua_Integer i; in luaO_str2num() 536 setivalue(&num, cast(lua_Integer, va_arg(argp, l_uacInt))); in luaO_pushvfstring()
|
H A D | lauxlib.h | 48 #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number)) 67 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); 68 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, 69 lua_Integer def); 116 LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx); 177 ((lua_Integer)((lua_Unsigned)(v1) op (lua_Unsigned)(v2))) 306 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
H A D | lua.h | 98 typedef LUA_INTEGER lua_Integer; typedef 208 #define lua_tonumberx (lua_Integer) lua_tointegerx 210 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 267 #define lua_pushnumber(L, n) lua_pushinteger(L, (lua_Integer)(n)) 269 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); 287 LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); 289 LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); 304 LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); 306 LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); 440 #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n))
|
H A D | lmathlib.c | 33 lua_Integer n = lua_tointeger(L, 1); in math_abs() 34 if (n < 0) n = (lua_Integer)(0u - (lua_Unsigned)n); in math_abs() 77 lua_Integer n = lua_tointegerx(L, 1, &valid); in math_toint() 89 lua_Integer n; in pushnumint() 121 lua_Integer d = lua_tointeger(L, 2); in math_fmod() 165 lua_Integer a = luaL_checkinteger(L, 1); in math_ult() 166 lua_Integer b = luaL_checkinteger(L, 2); in math_ult() 560 lua_Integer low, up; in math_random() 626 lua_Integer n1 = luaL_checkinteger(L, 1); in math_randomseed() 627 lua_Integer n2 = luaL_optinteger(L, 2, 0); in math_randomseed()
|
H A D | lstrlib.c | 62 lua_pushinteger(L, (lua_Integer)l); in str_len() 75 static size_t posrelatI (lua_Integer pos, size_t len) { in posrelatI() 80 else if (pos < -(lua_Integer)len) /* inverted comparison */ in posrelatI() 91 static size_t getendpos (lua_State *L, int arg, lua_Integer def, in getendpos() 93 lua_Integer pos = luaL_optinteger(L, arg, def); in getendpos() 94 if (pos > (lua_Integer)len) in getendpos() 98 else if (pos < -(lua_Integer)len) in getendpos() 157 lua_Integer n = luaL_checkinteger(L, 2); in str_rep() 184 lua_Integer pi = luaL_optinteger(L, 2, 1); in str_byte() 956 lua_Integer max_s = luaL_optinteger(L, 4, srcl + 1); /* max replacements */ in str_gsub() [all …]
|
H A D | ltable.c | 112 static Node *hashint (const Table *t, lua_Integer i) { in hashint() 138 lua_Integer ni; in l_hashfloat() 160 lua_Integer i = ivalue(key); in mainpositionTV() 328 static unsigned int arrayindex (lua_Integer k) { in arrayindex() 423 static int countint (lua_Integer key, unsigned int *nums) { in countint() 685 lua_Integer k; in luaH_newkey() 744 const TValue *luaH_getint (Table *t, lua_Integer key) { in luaH_getint() 809 lua_Integer k; in luaH_get() 846 void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { in luaH_setint() 980 if (isdummy(t) || isempty(luaH_getint(t, cast(lua_Integer, limit + 1)))) in luaH_getn()
|
H A D | lbaselib.c | 64 static const char *b_str2int (const char *s, int base, lua_Integer *pn) { in b_str2int() 80 *pn = (lua_Integer)((neg) ? (0u - n) : n); in b_str2int() 103 lua_Integer n = 0; /* to avoid warnings */ in luaB_tonumber() 104 lua_Integer base = luaL_checkinteger(L, 2); in luaB_tonumber() 307 lua_Integer i = luaL_checkinteger(L, 2); in ipairsaux() 453 lua_Integer i = luaL_checkinteger(L, 1); in luaB_select()
|
H A D | loslib.c | 60 #define l_timet lua_Integer 61 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) 216 lua_pushinteger(L, (lua_Integer)value + delta); in setfield() 256 lua_Integer res = lua_tointegerx(L, -1, &isnum); in getfield()
|
H A D | ltable.h | 40 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 41 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
|
H A D | lundump.c | 104 static lua_Integer loadInteger (LoadState *S) { in loadInteger() 105 lua_Integer x; in loadInteger() 307 checksize(S, lua_Integer); in checkHeader()
|
H A D | lauxlib.c | 453 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) { in luaL_checkinteger() 455 lua_Integer d = lua_tointegerx(L, arg, &isnum); in luaL_checkinteger() 463 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, in luaL_optinteger() 464 lua_Integer def) { in luaL_optinteger() 891 LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { in luaL_len() 892 lua_Integer l; in luaL_len()
|
H A D | llimits.h | 48 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ 167 #define l_castU2S(i) ((lua_Integer)(i))
|
H A D | liolib.c | 704 lua_Integer p3 = luaL_optinteger(L, 3, 0); in f_seek() 706 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek() 712 lua_pushinteger(L, (lua_Integer)l_ftell(f)); in f_seek() 723 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); in f_setvbuf()
|
H A D | ldump.c | 98 static void dumpInteger (DumpState *D, lua_Integer x) { in dumpInteger() 220 dumpByte(D, sizeof(lua_Integer)); in dumpHeader()
|
H A D | lcode.c | 591 static int luaK_intK (FuncState *fs, lua_Integer n) { in luaK_intK() 612 lua_Integer ik; in luaK_numberK() 668 static int fitsC (lua_Integer i) { in fitsC() 676 static int fitsBx (lua_Integer i) { in fitsBx() 681 void luaK_int (FuncState *fs, int reg, lua_Integer i) { in luaK_int() 691 lua_Integer fi; in luaK_float() 1281 lua_Integer i; 1345 lua_Integer i; 1500 lua_Integer i2 = e2->u.ival;
|
H A D | luaconf.h | 789 #define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l 791 #define LUAI_MAXALIGN lua_Number n; void *s; lua_Integer i; long l
|
H A D | llex.h | 59 lua_Integer i;
|
H A D | lparser.h | 75 lua_Integer ival; /* for VKINT */
|
H A D | lapi.c | 397 LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { in lua_tointegerx() 398 lua_Integer res = 0; in lua_tointegerx() 523 LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { in lua_pushinteger() 705 LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) { in lua_geti() 754 LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { in lua_rawgeti() 887 LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) { in lua_seti() 931 LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) { in lua_rawseti()
|
H A D | ltm.h | 95 LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
|
H A D | lcode.h | 80 LUAI_FUNC void luaK_int (FuncState *fs, int reg, lua_Integer n);
|