/freebsd/contrib/lua/src/ |
H A D | lutf8lib.c | 47 static lua_Integer u_posrelat (lua_Integer pos, size_t len) { in u_posrelat() 50 else return (lua_Integer)len + pos + 1; in u_posrelat() 97 lua_Integer n = 0; /* counter for the number of characters */ in utflen() 100 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in utflen() 101 lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len); in utflen() 103 luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2, in utflen() 105 luaL_argcheck(L, --posj < (lua_Integer)len, 3, in utflen() 129 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in codepoint() 130 lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len); in codepoint() 135 luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of bounds"); in codepoint() [all …]
|
H A D | lvm.h | 124 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode); 125 LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p, 127 LUAI_FUNC int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode); 135 LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y); 136 LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); 138 LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y);
|
H A D | ltablib.c | 62 lua_Integer pos; /* where to insert new element */ in tinsert() 63 lua_Integer e = aux_getn(L, 1, TAB_RW); in tinsert() 71 lua_Integer i; in tinsert() 92 lua_Integer size = aux_getn(L, 1, TAB_RW); in tremove() 93 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove() 116 lua_Integer f = luaL_checkinteger(L, 2); in tmove() 117 lua_Integer e = luaL_checkinteger(L, 3); in tmove() 118 lua_Integer t = luaL_checkinteger(L, 4); in tmove() 123 lua_Integer n, i; in tmove() 147 static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { in addfield() [all …]
|
H A D | lvm.c | 125 int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode) { in luaV_flttointeger() 141 int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointegerns() 156 int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointeger() 180 static int forlimit (lua_State *L, lua_Integer init, const TValue *lim, in forlimit() 181 lua_Integer *p, lua_Integer step) { in forlimit() 215 lua_Integer init = ivalue(pinit); in forprep() 216 lua_Integer step = ivalue(pstep); in forprep() 217 lua_Integer limit; in forprep() 413 l_sinline int LTintfloat (lua_Integer i, lua_Number f) { in LTintfloat() 417 lua_Integer fi; in LTintfloat() [all …]
|
H A D | lauxlib.h | 44 #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number)) 62 LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); 63 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, 64 lua_Integer def); 103 LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx); 162 ((lua_Integer)((lua_Unsigned)(v1) op (lua_Unsigned)(v2))) 286 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
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() 558 lua_Integer low, up; in math_random() 624 lua_Integer n1 = luaL_checkinteger(L, 1); in math_randomseed() 625 lua_Integer n2 = luaL_optinteger(L, 2, 0); in math_randomseed()
|
H A 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() 180 lua_Integer pi = luaL_optinteger(L, 2, 1); in str_byte() 948 lua_Integer max_s = luaL_optinteger(L, 4, srcl + 1); /* max replacements */ in str_gsub() [all …]
|
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() 507 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 202 LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 246 LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); 264 LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); 266 LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); 281 LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); 283 LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); 417 #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n))
|
H A D | ltable.c | 108 static Node *hashint (const Table *t, lua_Integer i) { in hashint() 133 lua_Integer ni; in l_hashfloat() 154 lua_Integer i = ivalue(key); in mainpositionTV() 318 static unsigned int arrayindex (lua_Integer k) { in arrayindex() 413 static int countint (lua_Integer key, unsigned int *nums) { in countint() 672 lua_Integer k; in luaH_newkey() 730 const TValue *luaH_getint (Table *t, lua_Integer key) { in luaH_getint() 794 lua_Integer k; in luaH_get() 830 void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value) { in luaH_setint() 964 if (isdummy(t) || isempty(luaH_getint(t, cast(lua_Integer, limit + 1)))) in luaH_getn()
|
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() 303 lua_Integer i = luaL_checkinteger(L, 2); in ipairsaux() 445 lua_Integer i = luaL_checkinteger(L, 1); in luaB_select()
|
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 | loslib.c | 58 #define l_timet lua_Integer 59 #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()
|
H A D | lundump.c | 100 static lua_Integer loadInteger (LoadState *S) { in loadInteger() 101 lua_Integer x; in loadInteger() 301 checksize(S, lua_Integer); in checkHeader()
|
H A D | llimits.h | 44 #define MAX_SIZE (sizeof(size_t) < sizeof(lua_Integer) ? MAX_SIZET \ 161 #define l_castU2S(i) ((lua_Integer)(i))
|
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() 877 LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) { in luaL_len() 878 lua_Integer l; in luaL_len()
|
H A D | liolib.c | 702 lua_Integer p3 = luaL_optinteger(L, 3, 0); in f_seek() 704 luaL_argcheck(L, (lua_Integer)offset == p3, 3, in f_seek() 710 lua_pushinteger(L, (lua_Integer)l_ftell(f)); in f_seek() 721 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); in f_setvbuf()
|
H A D | ldump.c | 87 static void dumpInteger (DumpState *D, lua_Integer x) { in dumpInteger() 207 dumpByte(D, sizeof(lua_Integer)); in dumpHeader()
|
H A D | llex.h | 51 lua_Integer i;
|
/freebsd/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/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()
|
/freebsd/stand/liblua/ |
H A D | luaconf.local.h | 71 #define LUAI_MAXALIGN lua_Number n; void *s; lua_Integer i; long l
|
/freebsd/lib/clang/liblldb/ |
H A D | LLDBWrapLua.cpp | 2661 lua_pushinteger(L,(lua_Integer)constants[i].lvalue); in SWIG_Lua_InstallConstants() 4381 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAddress_GetFileAddress() 4412 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAddress_GetLoadAddress() 4619 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAddress_GetOffset() 5092 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAddressRange_GetByteSize() 5315 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAddressRangeList_GetSize() 5794 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAttachInfo_GetProcessID() 6149 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAttachInfo_GetResumeCount() 6249 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAttachInfo_GetUserID() 6273 lua_pushinteger(L, (lua_Integer) result); SWIG_arg++; in _wrap_SBAttachInfo_GetGroupID() [all …]
|