Home
last modified time | relevance | path

Searched refs:lua_gettop (Results 1 – 25 of 25) sorted by relevance

/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlcorolib.c25 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { in auxresume()
32 int nres = lua_gettop(co); in auxresume()
52 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
68 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
99 return lua_yield(L, lua_gettop(L)); in luaB_yield()
116 else if (lua_gettop(co) == 0) in luaB_costatus()
H A Dlbitlib.c37 int i, n = lua_gettop(L); in andaux()
60 int i, n = lua_gettop(L); in b_or()
70 int i, n = lua_gettop(L); in b_xor()
H A Dlbaselib.c236 return lua_gettop(L); in luaB_assert()
241 int n = lua_gettop(L); in luaB_select()
H A Dltablib.c44 switch (lua_gettop(L)) { in tinsert()
120 int n = lua_gettop(L); /* number of elements to pack */ in pack()
H A Dlauxlib.c63 int top = lua_gettop(L); in pushglobalfuncname()
114 int top = lua_gettop(L); in luaL_traceback()
133 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
136 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
H A Dlstrlib.c182 int n = lua_gettop(L); /* number of arguments */ in str_char()
922 int top = lua_gettop(L); in str_format()
H A Dlua.h144 LUA_API int (lua_gettop) (lua_State *L); variable
H A Dlapi.c159 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() function
/freebsd-12.1/contrib/lua/src/
H A Dlcorolib.c34 if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) { in auxresume()
41 int nres = lua_gettop(co); in auxresume()
60 r = auxresume(L, co, lua_gettop(L) - 1); in luaB_coresume()
76 int r = auxresume(L, co, lua_gettop(L)); in luaB_auxwrap()
107 return lua_yield(L, lua_gettop(L)); in luaB_yield()
123 else if (lua_gettop(co) == 0) in luaB_costatus()
H A Dlbaselib.c25 int n = lua_gettop(L); /* number of arguments */ in luaB_print()
358 return lua_gettop(L) - 1; in dofilecont()
374 return lua_gettop(L); /* return all arguments */ in luaB_assert()
386 int n = lua_gettop(L); in luaB_select()
415 return lua_gettop(L) - (int)extra; /* return all results */ in finishpcall()
424 status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall); in luaB_pcall()
436 int n = lua_gettop(L); in luaB_xpcall()
H A Dlbitlib.c50 int i, n = lua_gettop(L); in andaux()
73 int i, n = lua_gettop(L); in b_or()
83 int i, n = lua_gettop(L); in b_xor()
H A Dlmathlib.c216 int n = lua_gettop(L); /* number of arguments */ in math_min()
230 int n = lua_gettop(L); /* number of arguments */ in math_max()
250 switch (lua_gettop(L)) { /* check number of arguments */ in math_random()
H A Dlua.c200 int base = lua_gettop(L) - narg; /* function index */ in docall()
380 lua_assert(lua_gettop(L) == 1); in loadline()
389 int n = lua_gettop(L); in l_print()
H A Dlauxlib.c74 int top = lua_gettop(L); in pushglobalfuncname()
128 int top = lua_gettop(L); in luaL_traceback()
149 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
152 lua_concat(L, lua_gettop(L) - top); in luaL_traceback()
708 int fnameindex = lua_gettop(L) + 1; /* index of filename on the stack */ in luaL_loadfilex()
H A Dltablib.c82 switch (lua_gettop(L)) { in tinsert()
196 int n = lua_gettop(L); /* number of elements to pack */ in pack()
H A Dliolib.c340 int n = lua_gettop(L) - 1; /* number of arguments to read */ in aux_lines()
530 int nargs = lua_gettop(L) - 1; in g_read()
621 int nargs = lua_gettop(L) - arg; in g_write()
H A Dlutf8lib.c139 int n = lua_gettop(L); /* number of arguments */ in utfchar()
H A Dlua.h159 LUA_API int (lua_gettop) (lua_State *L); variable
H A Dloadlib.c675 int lastarg = lua_gettop(L); /* last parameter */ in ll_module()
H A Dlstrlib.c168 int n = lua_gettop(L); /* number of arguments */ in str_char()
1022 int top = lua_gettop(L);
H A Dlapi.c167 LUA_API int lua_gettop (lua_State *L) { in lua_gettop() function
/freebsd-12.1/stand/liblua/
H A Dlutils.c48 int argc = lua_gettop(L); in lua_command()
97 if (lua_gettop(L) != 1) { in lua_interpret()
216 nargs = lua_gettop(L); in lua_openfile()
243 if (lua_gettop(L) != 1) { in lua_closefile()
265 if (lua_gettop(L) < 1 || lua_gettop(L) > 2) { in lua_readfile()
279 if (lua_gettop(L) == 2) in lua_readfile()
312 nargs = lua_gettop(L); in lua_writefile()
H A Dlfs.c155 if (lua_gettop(L) != 1) { in lua_dir()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzcp.c158 VERIFY3U(1, ==, lua_gettop(state)); in zcp_error_handler()
462 VERIFY3U(1, ==, lua_gettop(state)); in zcp_convert_return_values()
829 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
849 VERIFY3U(3, ==, lua_gettop(state)); in zcp_eval_impl()
1065 VERIFY0(lua_gettop(state)); in zcp_eval()
1068 VERIFY0(lua_gettop(state)); in zcp_eval()
1071 VERIFY0(lua_gettop(state)); in zcp_eval()
1077 VERIFY0(lua_gettop(state)); in zcp_eval()
1095 VERIFY0(lua_gettop(state)); in zcp_eval()
1102 VERIFY3U(1, ==, lua_gettop(state)); in zcp_eval()
[all …]
/freebsd-12.1/contrib/libucl/lua/
H A Dlua_ucl.c302 idx = lua_gettop (L) + idx + 1; in ucl_object_lua_fromtable()
338 obj = ucl_object_lua_fromelt (L, lua_gettop (L)); in ucl_object_lua_fromtable()
351 obj = ucl_object_lua_fromelt (L, lua_gettop (L)); in ucl_object_lua_fromtable()
488 if (lua_gettop (L) >= 1) { in lua_ucl_parser_init()
836 if (lua_gettop (L) > 1) { in lua_ucl_object_tostring()
878 if (lua_gettop (L) > 2) { in lua_ucl_object_validate()
891 if (lua_gettop (L) > 3) { in lua_ucl_object_validate()
1030 if (lua_gettop (L) > 1) { in lua_ucl_to_json()
1105 if (lua_gettop (L) > 1) { in lua_ucl_to_format()