Searched refs:nup (Results 1 - 8 of 8) sorted by relevance

/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dgetcwd.c135 char *nup; local
137 if ((nup = realloc(up, upsize *= 2)) == NULL)
139 bup = nup + (bup - up);
140 up = nup;
/freebsd-13-stable/sys/contrib/openzfs/module/lua/
H A Dlauxlib.c684 const luaL_Reg *l, int nup) {
688 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */
691 luaL_setfuncs(L, l, nup);
693 lua_pop(L, nup); /* remove upvalues */
700 ** set functions from list 'l' into table at top - 'nup'; each
701 ** function gets the 'nup' elements at the top as upvalues.
704 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { argument
706 luaL_checkstack(L, nup, "too many upvalues");
709 for (i = 0; i < nup; i++) /* copy upvalues to the top */
710 lua_pushvalue(L, -nup);
683 luaL_openlib(lua_State *L, const char *libname, const luaL_Reg *l, int nup) argument
[all...]
H A Dlvm.c443 int nup = p->sizeupvalues; local
446 for (i = 0; i < nup; i++) { /* check whether it has right upvalues */
464 int nup = p->sizeupvalues; local
467 Closure *ncl = luaF_newLclosure(L, nup);
470 for (i = 0; i < nup; i++) { /* fill in its upvalues */
/freebsd-13-stable/sys/contrib/openzfs/include/sys/lua/
H A Dlauxlib.h79 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
166 const luaL_Reg *l, int nup);
/freebsd-13-stable/contrib/lua/src/
H A Dlauxlib.c900 ** set functions from list 'l' into table at top - 'nup'; each
901 ** function gets the 'nup' elements at the top as upvalues.
904 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { argument
905 luaL_checkstack(L, nup, "too many upvalues");
911 for (i = 0; i < nup; i++) /* copy upvalues to the top */
912 lua_pushvalue(L, -nup);
913 lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */
915 lua_setfield(L, -(nup + 2), l->name);
917 lua_pop(L, nup); /* remove upvalues */
H A Dldblib.c286 int nup = (int)luaL_checkinteger(L, argnup); /* upvalue index */ local
288 id = lua_upvalueid(L, argf, nup);
291 *pnup = nup;
H A Dlauxlib.h109 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
H A Dlvm.c794 int nup = p->sizeupvalues; local
797 LClosure *ncl = luaF_newLclosure(L, nup);
800 for (i = 0; i < nup; i++) { /* fill in its upvalues */

Completed in 83 milliseconds