Searched refs:nup (Results 1 – 8 of 8) sorted by relevance
| /f-stack/freebsd/contrib/openzfs/module/lua/ |
| H A D | lauxlib.c | 684 const luaL_Reg *l, int nup) { in luaL_openlib() argument 688 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ in luaL_openlib() 691 luaL_setfuncs(L, l, nup); in luaL_openlib() 693 lua_pop(L, nup); /* remove upvalues */ in luaL_openlib() 704 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { in luaL_setfuncs() argument 706 luaL_checkstack(L, nup, "too many upvalues"); in luaL_setfuncs() 709 for (i = 0; i < nup; i++) /* copy upvalues to the top */ in luaL_setfuncs() 710 lua_pushvalue(L, -nup); in luaL_setfuncs() 711 lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ in luaL_setfuncs() 712 lua_setfield(L, -(nup + 2), l->name); in luaL_setfuncs() [all …]
|
| H A D | lvm.c | 443 int nup = p->sizeupvalues; in getcached() local 446 for (i = 0; i < nup; i++) { /* check whether it has right upvalues */ in getcached() 464 int nup = p->sizeupvalues; in pushclosure() local 467 Closure *ncl = luaF_newLclosure(L, nup); in pushclosure() 470 for (i = 0; i < nup; i++) { /* fill in its upvalues */ in pushclosure()
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | lauxlib.c | 243 const luaL_Reg *l, int nup) { in luaI_openlib() argument 258 lua_insert(L, -(nup+1)); /* move library table to below upvalues */ in luaI_openlib() 262 for (i=0; i<nup; i++) /* copy upvalues to the top */ in luaI_openlib() 263 lua_pushvalue(L, -nup); in luaI_openlib() 264 lua_pushcclosure(L, l->func, nup); in luaI_openlib() 265 lua_setfield(L, -(nup+2), l->name); in luaI_openlib() 267 lua_pop(L, nup); /* remove upvalues */ in luaI_openlib()
|
| H A D | ldebug.c | 451 int nup, j; in symbexec() local 453 nup = pt->p[b]->nups; in symbexec() 454 check(pc + nup < pt->sizecode); in symbexec() 455 for (j = 1; j <= nup; j++) { in symbexec() 460 pc += nup; /* do not 'execute' these pseudo-instructions */ in symbexec()
|
| H A D | lua_cjson.c | 1300 static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup) in luaL_setfuncs() argument 1304 luaL_checkstack(l, nup, "too many upvalues"); in luaL_setfuncs() 1306 for (i = 0; i < nup; i++) /* copy upvalues to the top */ in luaL_setfuncs() 1307 lua_pushvalue(l, -nup); in luaL_setfuncs() 1308 lua_pushcclosure(l, reg->func, nup); /* closure with those upvalues */ in luaL_setfuncs() 1309 lua_setfield(l, -(nup + 2), reg->name); in luaL_setfuncs() 1311 lua_pop(l, nup); /* remove upvalues */ in luaL_setfuncs()
|
| H A D | lvm.c | 726 int nup, j; in luaV_execute() local 728 nup = p->nups; in luaV_execute() 729 ncl = luaF_newLclosure(L, nup, cl->env); in luaV_execute() 731 for (j=0; j<nup; j++, pc++) { in luaV_execute()
|
| H A D | lauxlib.h | 43 const luaL_Reg *l, int nup);
|
| /f-stack/freebsd/contrib/openzfs/include/sys/lua/ |
| H A D | lauxlib.h | 79 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup); 166 const luaL_Reg *l, int nup);
|