Searched refs:nup (Results 1 – 4 of 4) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/ |
D | lauxlib.c | 828 const luaL_Reg *l, int nup) { in luaL_openlib() argument 832 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ in luaL_openlib() 835 luaL_setfuncs(L, l, nup); in luaL_openlib() 837 lua_pop(L, nup); /* remove upvalues */ in luaL_openlib() 848 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { in luaL_setfuncs() argument 850 luaL_checkstack(L, nup, "too many upvalues"); in luaL_setfuncs() 853 for (i = 0; i < nup; i++) /* copy upvalues to the top */ in luaL_setfuncs() 854 lua_pushvalue(L, -nup); in luaL_setfuncs() 855 lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ in luaL_setfuncs() 856 lua_setfield(L, -(nup + 2), l->name); in luaL_setfuncs() [all …]
|
D | ldblib.c | 230 int nup = luaL_checkint(L, argnup); in checkupval() local 234 luaL_argcheck(L, 1 <= nup && nup <= ar.nups, argnup, "invalid upvalue index"); in checkupval() 235 return nup; in checkupval()
|
D | lvm.c | 382 int nup = p->sizeupvalues; in getcached() local 385 for (i = 0; i < nup; i++) { /* check whether it has right upvalues */ in getcached() 403 int nup = p->sizeupvalues; in pushclosure() local 406 Closure *ncl = luaF_newLclosure(L, nup); in pushclosure() 409 for (i = 0; i < nup; i++) { /* fill in its upvalues */ in pushclosure()
|
/device/linaro/bootloader/edk2/StdLib/Include/Lua/ |
D | lauxlib.h | 91 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup); 203 const luaL_Reg *l, int nup);
|