Home
last modified time | relevance | path

Searched refs:lua_pushvalue (Results 1 – 17 of 17) sorted by relevance

/minix3/external/mit/lua/dist/src/
H A Dlbaselib.c35 lua_pushvalue(L, -1); /* function to be called */ in luaB_print()
36 lua_pushvalue(L, i); /* value to print */ in luaB_print()
111 lua_pushvalue(L, 1); in luaB_error()
210 lua_pushvalue(L, lua_upvalueindex(lua_type(L, 1) + 1)); in luaB_type()
220 lua_pushvalue(L, 1); /* state, */ in pairsmeta()
225 lua_pushvalue(L, 1); /* argument 'self' to metamethod */ in pairsmeta()
283 lua_pushvalue(L, 1); /* state */ in luaB_ipairs()
293 lua_pushvalue(L, envidx); /* environment for loaded function */ in load_aux()
342 lua_pushvalue(L, 1); /* get function */ in generic_reader()
435 lua_pushvalue(L, -2); /* error message */ in finishpcall()
[all …]
H A Dloadlib.c297 lua_pushvalue(L, -1); in addtoclib()
577 lua_pushvalue(L, -1); /* extra copy to be returned */ in ll_require()
603 lua_pushvalue(L, -2); /* copy new environment table to top */ in set_env()
613 lua_pushvalue(L, i); /* get option (a function) */ in dooptions()
614 lua_pushvalue(L, -2); /* module */ in dooptions()
623 lua_pushvalue(L, -1); in modinit()
647 lua_pushvalue(L, -1); in ll_module()
658 lua_pushvalue(L, -1); in ll_seeall()
739 lua_pushvalue(L, -2); /* set 'package' as upvalue for all searchers */ in createsearcherstable()
744 lua_pushvalue(L, -1); /* make a copy of 'searchers' table */ in createsearcherstable()
[all …]
H A Dldblib.c46 lua_pushvalue(L, LUA_REGISTRYINDEX); in db_getregistry()
157 lua_pushvalue(L, arg + 1); /* move function to 'L1' stack */ in db_getinfo()
204 lua_pushvalue(L, arg + 1); /* push function */ in db_getlocal()
367 lua_pushvalue(L, -1); in db_sethook()
371 lua_pushvalue(L, -1); in db_sethook()
376 lua_pushvalue(L, arg + 1); /* value (hook function) */ in db_sethook()
428 lua_pushvalue(L, arg + 1); /* return it untouched */ in db_traceback()
H A Dltablib.c157 lua_pushvalue(L, tt); /* return "to table" */ in tmove()
250 lua_pushvalue(L, 2); in sort_comp()
251 lua_pushvalue(L, a-1); /* -1 to compensate function */ in sort_comp()
252 lua_pushvalue(L, b-2); /* -2 to compensate function and 'a' */ in sort_comp()
288 lua_pushvalue(L, -1); in auxsort()
H A Dlauxlib.c305 lua_pushvalue(L, -1); in luaL_newmetatable()
744 lua_pushvalue(L, obj); in luaL_callmeta()
773 lua_pushvalue(L, idx); in luaL_tolstring()
801 if (idx) lua_pushvalue(L, idx); in luaL_findtable()
810 lua_pushvalue(L, -2); in luaL_findtable()
849 lua_pushvalue(L, -1); in luaL_pushmodule()
882 lua_pushvalue(L, -nup); in luaL_setfuncs()
901 lua_pushvalue(L, -1); /* copy to be left at top */ in luaL_getsubtable()
923 lua_pushvalue(L, -1); /* make copy of module (call result) */ in luaL_requiref()
928 lua_pushvalue(L, -1); /* copy of module */ in luaL_requiref()
H A Dliolib.c300 lua_pushvalue(L, 1); in g_iofile()
578 lua_pushvalue(L, lua_upvalueindex(3 + i)); in io_readline()
590 lua_pushvalue(L, lua_upvalueindex(1)); in io_readline()
629 lua_pushvalue(L, 1); /* push file at the stack top (to be returned) */ in f_write()
713 lua_pushvalue(L, -1); /* push metatable */ in createmeta()
738 lua_pushvalue(L, -1); in createstdfile()
H A Dlcorolib.c97 lua_pushvalue(L, 1); /* move function to top */ in luaB_cocreate()
H A Dlmathlib.c223 lua_pushvalue(L, imin); in math_min()
237 lua_pushvalue(L, imax); in math_max()
H A Dlutf8lib.c232 lua_pushvalue(L, 1); in iter_codes()
H A Dlstrlib.c726 lua_pushvalue(L, 3); in add_value()
1524 lua_pushvalue(L, -2); /* copy table */ in createmetatable()
1527 lua_pushvalue(L, -2); /* get string library */ in createmetatable()
H A Dlua.c336 lua_pushvalue(L, -2); /* duplicate line */ in addreturn()
H A Dlua.h175 LUA_API void (lua_pushvalue) (lua_State *L, int idx); variable
H A Dlapi.c241 LUA_API void lua_pushvalue (lua_State *L, int idx) { in lua_pushvalue() function
/minix3/external/bsd/lutok/dist/
H A Dstate.cpp321 lua_pushvalue(_pimpl->lua_state, registry_index); in get_global_table()
326 lua_pushvalue(_pimpl->lua_state, LUA_GLOBALSINDEX); in get_global_table()
372 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in get_table()
373 lua_pushvalue(_pimpl->lua_state, -3); in get_table()
557 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in next()
558 lua_pushvalue(_pimpl->lua_state, -3); in next()
729 lua_pushvalue(_pimpl->lua_state, index); in push_value()
769 lua_pushvalue(_pimpl->lua_state, -3); in set_global()
798 lua_pushvalue(_pimpl->lua_state, index < 0 ? index - 1 : index); in set_table()
799 lua_pushvalue(_pimpl->lua_state, -4); in set_table()
[all …]
H A Dstate_test.cpp1083 lua_pushvalue(raw(state), lutok::registry_index); in ATF_TEST_CASE_BODY()
/minix3/lib/lua/sqlite/
H A Dsqlite.c463 lua_pushvalue(L, -2); in luaopen_sqlite()
481 lua_pushvalue(L, -2); in luaopen_sqlite()
/minix3/lib/lua/gpio/
H A Dgpio.c304 lua_pushvalue(L, -2); in luaopen_gpio()