Home
last modified time | relevance | path

Searched refs:luaL_optinteger (Results 1 – 14 of 14) sorted by relevance

/freebsd-13.1/contrib/lua/src/
H A Dlbaselib.c115 int level = (int)luaL_optinteger(L, 2, 1); in luaB_error()
206 int step = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
213 int p = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
224 int minormul = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
225 int majormul = (int)luaL_optinteger(L, 3, 0); in luaB_collectgarbage()
229 int pause = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
230 int stepmul = (int)luaL_optinteger(L, 3, 0); in luaB_collectgarbage()
231 int stepsize = (int)luaL_optinteger(L, 4, 0); in luaB_collectgarbage()
H A Dlutf8lib.c96 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in utflen()
97 lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len); in utflen()
125 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in codepoint()
126 lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len); in codepoint()
188 posi = u_posrelat(luaL_optinteger(L, 3, posi), len); in byteoffset()
H A Dlauxlib.h62 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg,
261 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
264 #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
267 #define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))
H A Dltablib.c92 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove()
160 lua_Integer i = luaL_optinteger(L, 3, 1); in tconcat()
161 last = luaL_optinteger(L, 4, last); in tconcat()
195 lua_Integer i = luaL_optinteger(L, 2, 1); in tunpack()
H A Dldblib.c66 int n = (int)luaL_optinteger(L, 2, 1); in db_getuservalue()
78 int n = (int)luaL_optinteger(L, 3, 1); in db_setuservalue()
375 count = (int)luaL_optinteger(L, arg + 3, 0); in db_sethook()
441 int level = (int)luaL_optinteger(L, arg + 2, (L == L1) ? 1 : 0); in db_traceback()
H A Dlstrlib.c89 lua_Integer pos = luaL_optinteger(L, arg, def); in getendpos()
179 lua_Integer pi = luaL_optinteger(L, 2, 1); in str_byte()
774 size_t init = posrelatI(luaL_optinteger(L, 3, 1), ls) - 1; in str_find_aux()
855 size_t init = posrelatI(luaL_optinteger(L, 3, 1), ls) - 1; in gmatch()
945 lua_Integer max_s = luaL_optinteger(L, 4, srcl + 1); /* max replacements */ in str_gsub()
1714 size_t pos = posrelatI(luaL_optinteger(L, 3, 1), ld) - 1;
H A Dliolib.c695 lua_Integer p3 = luaL_optinteger(L, 3, 0); in f_seek()
714 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); in f_setvbuf()
H A Dloslib.c399 status = (int)luaL_optinteger(L, 1, EXIT_SUCCESS); in os_exit()
H A Dlmathlib.c624 lua_Integer n2 = luaL_optinteger(L, 2, 0); in math_randomseed()
H A Dlauxlib.c452 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, in luaL_optinteger() function
/freebsd-13.1/sys/contrib/openzfs/include/sys/lua/
H A Dlauxlib.h42 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int nArg,
106 #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
108 #define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))
/freebsd-13.1/sys/contrib/openzfs/module/lua/
H A Dlstrlib.c67 size_t end = posrelat(luaL_optinteger(L, 3, -1), l); in str_sub()
146 size_t posi = posrelat(luaL_optinteger(L, 2, 1), l); in str_byte()
147 size_t pose = posrelat(luaL_optinteger(L, 3, posi), l); in str_byte()
592 size_t init = posrelat(luaL_optinteger(L, 3, 1), ls); in str_find_aux()
751 size_t max_s = luaL_optinteger(L, 4, srcl+1); in str_gsub()
H A Dlauxlib.c367 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg, in luaL_optinteger() function
/freebsd-13.1/lib/flua/libjail/
H A Dlua_jail.c391 flags = luaL_optinteger(L, 3, 0); in l_getparams()
482 flags = luaL_optinteger(L, 3, 0); in l_setparams()