| /src/external/mit/lua/dist/src/ |
| 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) [all...] |
| lutf8lib.c | 51 static lua_Integer u_posrelat (lua_Integer pos, size_t len) { 54 else return (lua_Integer)len + pos + 1; 101 lua_Integer n = 0; /* counter for the number of characters */ 104 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); 105 lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len); 107 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, 109 luaL_argcheck(L, --posj < (lua_Integer)len, 3, 133 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); 134 lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len) [all...] |
| ltablib.c | 66 lua_Integer pos; /* where to insert new element */ 67 lua_Integer e = aux_getn(L, 1, TAB_RW); 75 lua_Integer i; 96 lua_Integer size = aux_getn(L, 1, TAB_RW); 97 lua_Integer pos = luaL_optinteger(L, 2, size); 120 lua_Integer f = luaL_checkinteger(L, 2); 121 lua_Integer e = luaL_checkinteger(L, 3); 122 lua_Integer t = luaL_checkinteger(L, 4); 127 lua_Integer n, i; 151 static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) [all...] |
| 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,
|
| 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); 173 ** Perform arithmetic operations on lua_Integer values with wrap-around 177 ((lua_Integer)((lua_Unsigned)(v1) op (lua_Unsigned)(v2))) 306 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
| lvm.c | 130 int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode) { 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) [all...] |
| lobject.c | 57 static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, 58 lua_Integer v2) { 101 lua_Integer i1; lua_Integer i2; 130 lua_Integer i1; lua_Integer i2; 294 static const char *l_str2int (const char *s, lua_Integer *result) { 328 lua_Integer i; lua_Number n; 330 lua_Integer i [all...] |
| lmathlib.c | 33 lua_Integer n = lua_tointeger(L, 1); 34 if (n < 0) n = (lua_Integer)(0u - (lua_Unsigned)n); 77 lua_Integer n = lua_tointegerx(L, 1, &valid); 89 lua_Integer n; 121 lua_Integer d = lua_tointeger(L, 2); 165 lua_Integer a = luaL_checkinteger(L, 1); 166 lua_Integer b = luaL_checkinteger(L, 2); 560 lua_Integer low, up; 626 lua_Integer n1 = luaL_checkinteger(L, 1); 627 lua_Integer n2 = luaL_optinteger(L, 2, 0) [all...] |
| lua.h | 98 typedef LUA_INTEGER lua_Integer; 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) [all...] |
| lstrlib.c | 49 ** 'size_t'. (We assume that 'lua_Integer' cannot be smaller than 'int'.) 62 lua_pushinteger(L, (lua_Integer)l); 70 ** The length of any string in Lua must fit in a lua_Integer, 75 static size_t posrelatI (lua_Integer pos, size_t len) { 80 else if (pos < -(lua_Integer)len) /* inverted comparison */ 91 static size_t getendpos (lua_State *L, int arg, lua_Integer def, 93 lua_Integer pos = luaL_optinteger(L, arg, def); 94 if (pos > (lua_Integer)len) 98 else if (pos < -(lua_Integer)len) 157 lua_Integer n = luaL_checkinteger(L, 2) [all...] |
| lbaselib.c | 64 static const char *b_str2int (const char *s, int base, lua_Integer *pn) { 80 *pn = (lua_Integer)((neg) ? (0u - n) : n); 103 lua_Integer n = 0; /* to avoid warnings */ 104 lua_Integer base = luaL_checkinteger(L, 2); 307 lua_Integer i = luaL_checkinteger(L, 2); 453 lua_Integer i = luaL_checkinteger(L, 1);
|
| llex.h | 59 lua_Integer i;
|
| loslib.c | 60 #define l_timet lua_Integer 61 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) 204 ** is represented by a lua_Integer, because either lua_Integer is 207 ** times are represented as doubles and lua_Integer is int, then the 216 lua_pushinteger(L, (lua_Integer)value + delta); 256 lua_Integer res = lua_tointegerx(L, -1, &isnum);
|
| lparser.h | 75 lua_Integer ival; /* for VKINT */
|
| ltable.c | 112 static Node *hashint (const Table *t, lua_Integer i) { 138 lua_Integer ni; 160 lua_Integer i = ivalue(key); 328 static unsigned int arrayindex (lua_Integer k) { 423 static int countint (lua_Integer key, unsigned int *nums) { 685 lua_Integer k; 744 const TValue *luaH_getint (Table *t, lua_Integer key) { 809 lua_Integer k; 846 void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { 980 if (isdummy(t) || isempty(luaH_getint(t, cast(lua_Integer, limit + 1))) [all...] |
| ltm.h | 95 LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
|
| ldump.c | 98 static void dumpInteger (DumpState *D, lua_Integer x) { 220 dumpByte(D, sizeof(lua_Integer));
|
| llimits.h | 47 /* maximum size visible for Lua (must be representable in a lua_Integer) */ 48 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ 99 /* types of 'usual argument conversions' for lua_Number and lua_Integer */ 156 /* cast a signed lua_Integer to lua_Unsigned */ 162 ** cast a lua_Unsigned to a signed lua_Integer; this cast is 167 #define l_castU2S(i) ((lua_Integer)(i))
|
| lundump.c | 104 static lua_Integer loadInteger (LoadState *S) { 105 lua_Integer x; 307 checksize(S, lua_Integer);
|
| lcode.h | 80 LUAI_FUNC void luaK_int (FuncState *fs, int reg, lua_Integer n);
|
| liolib.c | 704 lua_Integer p3 = luaL_optinteger(L, 3, 0); 706 luaL_argcheck(L, (lua_Integer)offset == p3, 3, 712 lua_pushinteger(L, (lua_Integer)l_ftell(f)); 723 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE);
|
| luaconf.h | 425 ** a lua_Integer. (The range comparisons are tricky because of 434 (*(p) = (LUA_INTEGER)(n), 1)) 495 @@ LUA_UNSIGNED is the unsigned version of LUA_INTEGER. 497 @@ over a LUA_INTEGER. 500 @@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER. 501 @@ LUA_MININTEGER is the minimum value for a LUA_INTEGER. 511 #define LUAI_UACINT LUA_INTEGER 527 #define LUA_INTEGER int 537 #define LUA_INTEGER long 551 #define LUA_INTEGER long lon [all...] |
| lauxlib.c | 453 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) { 455 lua_Integer d = lua_tointegerx(L, arg, &isnum); 463 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, 464 lua_Integer def) { 891 LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { 892 lua_Integer l;
|
| lcode.c | 591 static int luaK_intK (FuncState *fs, lua_Integer n) { 612 lua_Integer ik; 668 static int fitsC (lua_Integer i) { 676 static int fitsBx (lua_Integer i) { 681 void luaK_int (FuncState *fs, int reg, lua_Integer i) { 691 lua_Integer fi; 1281 lua_Integer i; 1345 lua_Integer i; 1500 lua_Integer i2 = e2->u.ival;
|
| lapi.c | 397 LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *pisnum) { 398 lua_Integer res = 0; 523 LUA_API void lua_pushinteger (lua_State *L, lua_Integer n) { 705 LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) { 754 LUA_API int lua_rawgeti (lua_State *L, int idx, lua_Integer n) { 887 LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) { 931 LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) {
|