| /freebsd-12.1/contrib/lua/src/ |
| H A D | lutf8lib.c | 30 static lua_Integer u_posrelat (lua_Integer pos, size_t len) { in u_posrelat() 33 else return (lua_Integer)len + pos + 1; in u_posrelat() 77 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen() 79 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen() 129 lua_Integer code = luaL_checkinteger(L, arg); in pushutfchar() 163 lua_Integer n = luaL_checkinteger(L, 2); in byteoffset() 164 lua_Integer posi = (n >= 0) ? 1 : len + 1; in byteoffset() 185 while (n > 0 && posi < (lua_Integer)len) { in byteoffset() 204 lua_Integer n = lua_tointeger(L, 2) - 1; in iter_aux() 207 else if (n < (lua_Integer)len) { in iter_aux() [all …]
|
| H A D | lvm.h | 100 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, int mode); 108 LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y); 109 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); 110 LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y);
|
| H A D | lvm.c | 60 (-((lua_Integer)1 << NBM) <= (i) && (i) <= ((lua_Integer)1 << NBM)) 135 static int forlimit (const TValue *obj, lua_Integer *p, lua_Integer step, in forlimit() 552 lua_Integer luaV_div (lua_State *L, lua_Integer m, lua_Integer n) { in luaV_div() 572 lua_Integer luaV_mod (lua_State *L, lua_Integer m, lua_Integer n) { in luaV_mod() 593 lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { in luaV_shiftl() 894 lua_Integer ib = ivalue(rb); lua_Integer ic = ivalue(rc); in luaV_execute() 944 lua_Integer ib; lua_Integer ic; in luaV_execute() 954 lua_Integer ib; lua_Integer ic; in luaV_execute() 964 lua_Integer ib; lua_Integer ic; in luaV_execute() 974 lua_Integer ib; lua_Integer ic; in luaV_execute() [all …]
|
| H A D | ltablib.c | 88 lua_Integer i; in tinsert() 107 lua_Integer size = aux_getn(L, 1, TAB_RW); in tremove() 108 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove() 129 lua_Integer f = luaL_checkinteger(L, 2); in tmove() 130 lua_Integer e = luaL_checkinteger(L, 3); in tmove() 131 lua_Integer t = luaL_checkinteger(L, 4); in tmove() 136 lua_Integer n, i; in tmove() 171 lua_Integer last = aux_getn(L, 1, TAB_R); in tconcat() 174 lua_Integer i = luaL_optinteger(L, 3, 1); in tconcat() 209 lua_Integer i = luaL_optinteger(L, 2, 1); in unpack() [all …]
|
| H A D | lmathlib.c | 41 lua_Integer n = lua_tointeger(L, 1); in math_abs() 42 if (n < 0) n = (lua_Integer)(0u - (lua_Unsigned)n); in math_abs() 85 lua_Integer n = lua_tointegerx(L, 1, &valid); in math_toint() 97 lua_Integer n; in pushnumint() 129 lua_Integer d = lua_tointeger(L, 2); in math_fmod() 173 lua_Integer a = luaL_checkinteger(L, 1); in math_ult() 174 lua_Integer b = luaL_checkinteger(L, 2); in math_ult() 248 lua_Integer low, up; in math_random() 272 lua_pushinteger(L, (lua_Integer)r + low); in math_random() 278 l_srand((unsigned int)(lua_Integer)luaL_checknumber(L, 1)); in math_randomseed()
|
| H A D | lstrlib.c | 57 lua_pushinteger(L, (lua_Integer)l); in str_len() 63 static lua_Integer posrelat (lua_Integer pos, size_t len) { in posrelat() 66 else return (lua_Integer)len + pos + 1; in posrelat() 76 if (end > (lua_Integer)l) end = l; in str_sub() 125 lua_Integer n = luaL_checkinteger(L, 2); in str_rep() 155 if (pose > (lua_Integer)l) pose = l; in str_byte() 173 lua_Integer c = luaL_checkinteger(L, i); in str_char() 770 lua_Integer n = 0; /* replacement count */ in str_gsub() 1125 #define SZINT ((int)sizeof(lua_Integer)) 1363 lua_Integer lim = (lua_Integer)1 << ((size * NB) - 1); [all …]
|
| H A D | lbitlib.c | 22 #define pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n)) 99 static int b_shift (lua_State *L, lua_Unsigned r, lua_Integer i) { in b_shift() 128 lua_Integer i = luaL_checkinteger(L, 2); in b_arshift() 141 static int b_rot (lua_State *L, lua_Integer d) { in b_rot() 169 lua_Integer f = luaL_checkinteger(L, farg); in fieldargs() 170 lua_Integer w = luaL_optinteger(L, farg + 1, 1); in fieldargs()
|
| H A D | lauxlib.h | 37 #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number)) 54 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); 55 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, 56 lua_Integer def); 94 LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx); 249 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
| H A D | lobject.c | 83 static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, in intarith() 84 lua_Integer v2) { in intarith() 129 lua_Integer i1; lua_Integer i2; in luaO_arith() 299 static const char *l_str2int (const char *s, lua_Integer *result) { in l_str2int() 332 lua_Integer i; lua_Number n; in luaO_str2num() 426 setivalue(L->top, cast(lua_Integer, va_arg(argp, l_uacInt))); in luaO_pushvfstring()
|
| H A D | lua.h | 93 typedef LUA_INTEGER lua_Integer; typedef 182 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 226 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); 244 LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); 246 LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); 261 LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); 263 LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); 385 #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n))
|
| H A D | lbaselib.c | 48 static const char *b_str2int (const char *s, int base, lua_Integer *pn) { in b_str2int() 64 *pn = (lua_Integer)((neg) ? (0u - n) : n); in b_str2int() 87 lua_Integer n = 0; /* to avoid warnings */ in luaB_tonumber() 88 lua_Integer base = luaL_checkinteger(L, 2); in luaB_tonumber() 247 lua_Integer i = luaL_checkinteger(L, 2) + 1; in ipairsaux() 392 lua_Integer i = luaL_checkinteger(L, 1); in luaB_select()
|
| H A D | llimits.h | 42 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ 73 lua_Integer i; 133 #define l_castU2S(i) ((lua_Integer)(i))
|
| H A D | loslib.c | 66 #define l_timet lua_Integer 67 #define l_pushtime(L,t) lua_pushinteger(L,(lua_Integer)(t)) 70 lua_Integer t = luaL_checkinteger(L, arg); in l_checktime() 242 lua_Integer res = lua_tointegerx(L, -1, &isnum); in getfield()
|
| H A D | ltable.h | 43 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 44 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
|
| H A D | ltable.c | 99 lua_Integer ni; in l_hashfloat() 146 lua_Integer k = ivalue(key); in arrayindex() 466 lua_Integer k; in luaH_newkey() 516 const TValue *luaH_getint (Table *t, lua_Integer key) { in luaH_getint() 595 lua_Integer k; in luaH_get() 618 void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { in luaH_setint()
|
| H A D | lundump.c | 81 static lua_Integer LoadInteger (LoadState *S) { in LoadInteger() 82 lua_Integer x; in LoadInteger() 246 checksize(S, lua_Integer); in checkHeader()
|
| H A D | lauxlib.c | 430 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) { in luaL_checkinteger() 432 lua_Integer d = lua_tointegerx(L, arg, &isnum); in luaL_checkinteger() 440 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, in luaL_optinteger() 441 lua_Integer def) { in luaL_optinteger() 798 LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { in luaL_len() 799 lua_Integer l; in luaL_len()
|
| H A D | ldump.c | 68 static void DumpInteger (lua_Integer x, DumpState *D) { in DumpInteger() 192 DumpByte(sizeof(lua_Integer), D); in DumpHeader()
|
| H A D | liolib.c | 661 lua_Integer p3 = luaL_optinteger(L, 3, 0); in f_seek() 663 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek() 669 lua_pushinteger(L, (lua_Integer)l_ftell(f)); in f_seek() 680 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); in f_setvbuf()
|
| H A D | lparser.h | 57 lua_Integer ival; /* for VKINT */
|
| H A D | llex.h | 45 lua_Integer i;
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ |
| H A D | lauxlib.h | 42 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg); 43 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg, 44 lua_Integer def);
|
| H A D | llimits.h | 243 #define lua_number2integer(i,n) lua_number2int32(i, n, lua_Integer) 256 #define lua_number2integer(i,n) ((i)=(lua_Integer)(n))
|
| H A D | lua.h | 105 typedef LUA_INTEGER lua_Integer; typedef 168 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 206 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
|
| H A D | lauxlib.c | 350 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) { in luaL_checkinteger() 352 lua_Integer d = lua_tointegerx(L, narg, &isnum); in luaL_checkinteger() 368 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, in luaL_optinteger() 369 lua_Integer def) { in luaL_optinteger()
|