Home
last modified time | relevance | path

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

/netbsd-src/external/mit/lua/dist/src/
H A Dlbaselib.c119 int level = (int)luaL_optinteger(L, 2, 1); in luaB_error()
220 int step = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
228 int p = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
241 int minormul = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
242 int majormul = (int)luaL_optinteger(L, 3, 0); in luaB_collectgarbage()
246 int pause = (int)luaL_optinteger(L, 2, 0); in luaB_collectgarbage()
247 int stepmul = (int)luaL_optinteger(L, 3, 0); in luaB_collectgarbage()
248 int stepsize = (int)luaL_optinteger(L, 4, 0); in luaB_collectgarbage()
H A Dlutf8lib.c104 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in utflen()
105 lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len); in utflen()
133 lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len); in codepoint()
134 lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len); in codepoint()
196 posi = u_posrelat(luaL_optinteger(L, 3, posi), len); in byteoffset()
H A Dlauxlib.h68 LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg,
72 #define luaL_optinteger(L,a,d) luaL_optnumber(L, (a), (lua_Number)(d)) macro
306 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
309 #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
312 #define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))
H A Dltablib.c97 lua_Integer pos = luaL_optinteger(L, 2, size); in tremove()
165 lua_Integer i = luaL_optinteger(L, 3, 1); in tconcat()
166 last = luaL_optinteger(L, 4, last); in tconcat()
200 lua_Integer i = luaL_optinteger(L, 2, 1); in tunpack()
H A Dldblib.c70 int n = (int)luaL_optinteger(L, 2, 1); in db_getuservalue()
82 int n = (int)luaL_optinteger(L, 3, 1); in db_setuservalue()
380 count = (int)luaL_optinteger(L, arg + 3, 0); in db_sethook()
448 int level = (int)luaL_optinteger(L, arg + 2, (L == L1) ? 1 : 0); in db_traceback()
H A Dlstrlib.c93 lua_Integer pos = luaL_optinteger(L, arg, def); in getendpos()
184 lua_Integer pi = luaL_optinteger(L, 2, 1); in str_byte()
785 size_t init = posrelatI(luaL_optinteger(L, 3, 1), ls) - 1; in str_find_aux()
866 size_t init = posrelatI(luaL_optinteger(L, 3, 1), ls) - 1; in gmatch()
956 lua_Integer max_s = luaL_optinteger(L, 4, srcl + 1); /* max replacements */ in str_gsub()
1787 size_t pos = posrelatI(luaL_optinteger(L, 3, 1), ld) - 1; in str_unpack()
H A Dliolib.c704 lua_Integer p3 = luaL_optinteger(L, 3, 0); in f_seek()
723 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.c627 lua_Integer n2 = luaL_optinteger(L, 2, 0); in math_randomseed()
H A Dlauxlib.c463 LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, in luaL_optinteger() function