| /freebsd-13.1/contrib/lua/src/ |
| H A 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() 96 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 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() 186 lua_Integer n = luaL_checkinteger(L, 2); in byteoffset() 187 lua_Integer posi = (n >= 0) ? 1 : len + 1; in byteoffset() 208 while (n > 0 && posi < (lua_Integer)len) { in byteoffset() 227 lua_Integer n = lua_tointeger(L, 2) - 1; in iter_aux() 230 else if (n < (lua_Integer)len) { in iter_aux() [all …]
|
| H A 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);
|
| H A D | ltablib.c | 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() 157 lua_Integer last = aux_getn(L, 1, TAB_R); in tconcat() 160 lua_Integer i = luaL_optinteger(L, 3, 1); in tconcat() 195 lua_Integer i = luaL_optinteger(L, 2, 1); in tunpack() [all …]
|
| H A D | lvm.c | 184 lua_Integer *p, lua_Integer step) { in forlimit() 220 lua_Integer limit; in forprep() 423 lua_Integer fi; in LTintfloat() 440 lua_Integer fi; in LEintfloat() 457 lua_Integer fi; in LTfloatint() 474 lua_Integer fi; in LEfloatint() 723 lua_Integer luaV_idiv (lua_State *L, lua_Integer m, lua_Integer n) { in luaV_idiv() 743 lua_Integer luaV_mod (lua_State *L, lua_Integer m, lua_Integer n) { in luaV_mod() 776 lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { in luaV_shiftl() 939 lua_Integer i1 = ivalue(v1); lua_Integer i2 = ivalue(v2); \ [all …]
|
| H A D | lstrlib.c | 58 lua_pushinteger(L, (lua_Integer)l); in str_len() 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() 947 lua_Integer n = 0; /* replacement count */ in str_gsub() 1349 #define SZINT ((int)sizeof(lua_Integer)) 1366 void *p; lua_Integer i; lua_Number n; } u; 1584 lua_Integer lim = (lua_Integer)1 << ((size * NB) - 1); [all …]
|
| H A 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()
|
| H A 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)))
|
| H A 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()
|
| H A 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))
|
| H A 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()
|
| H A 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()
|
| H A 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,
|
| H A D | ltable.c | 116 lua_Integer ni; in l_hashfloat() 288 static unsigned int arrayindex (lua_Integer k) { in arrayindex() 383 static int countint (lua_Integer key, unsigned int *nums) { in countint() 642 lua_Integer k; in luaH_newkey() 697 const TValue *luaH_getint (Table *t, lua_Integer key) { in luaH_getint() 761 lua_Integer k; in luaH_get() 784 void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { in luaH_setint() 920 if (isdummy(t) || isempty(luaH_getint(t, cast(lua_Integer, limit + 1)))) in luaH_getn()
|
| H A D | llimits.h | 44 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ 148 #define l_castU2S(i) ((lua_Integer)(i))
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H A D | ldump.c | 83 static void dumpInteger (DumpState *D, lua_Integer x) { in dumpInteger() 203 dumpByte(D, sizeof(lua_Integer)); in dumpHeader()
|
| H A D | llex.h | 51 lua_Integer i;
|
| H A D | lparser.h | 71 lua_Integer ival; /* for VKINT */
|
| /freebsd-13.1/contrib/llvm-project/lldb/bindings/lua/ |
| H A D | lua-typemaps.swig | 19 %{ lua_pushinteger(L, (lua_Integer) $1); SWIG_arg++;%} 21 %{ lua_pushinteger(L, (lua_Integer) $1); SWIG_arg++;%} 30 %{ lua_pushinteger(L, (lua_Integer) *$1); SWIG_arg++;%}
|
| /freebsd-13.1/sys/contrib/openzfs/include/sys/lua/ |
| H A D | lauxlib.h | 41 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int numArg); 42 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg, 43 lua_Integer def);
|
| H A D | lua.h | 106 typedef LUA_INTEGER lua_Integer; typedef 169 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 207 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n);
|
| /freebsd-13.1/sys/contrib/openzfs/module/lua/ |
| H A D | llimits.h | 250 #define lua_number2integer(i,n) lua_number2int32(i, n, lua_Integer) 263 #define lua_number2integer(i,n) ((i)=(lua_Integer)(n))
|
| H A D | lauxlib.c | 349 LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) { in luaL_checkinteger() 351 lua_Integer d = lua_tointegerx(L, narg, &isnum); in luaL_checkinteger() 367 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, in luaL_optinteger() 368 lua_Integer def) { in luaL_optinteger()
|