Searched refs:nresults (Results 1 - 22 of 22) sorted by relevance

/freebsd-13-stable/contrib/lutok/
H A Doperations.cpp68 /// \param nresults The number of results to expect; -1 for any.
77 const int nresults, const int errfunc)
79 assert(nresults >= -1);
86 s.pcall(nargs, nresults == -1 ? LUA_MULTRET : nresults,
94 assert(nresults == -1 || actual_results == nresults);
108 /// \param nresults The number of results to expect; -1 for any.
117 const int nresults, const int errfunc)
119 assert(nresults >
76 do_file(state& s, const std::string& file, const int nargs, const int nresults, const int errfunc) argument
116 do_string(state& s, const std::string& str, const int nargs, const int nresults, const int errfunc) argument
149 eval(state& s, const std::string& expression, const int nresults) argument
[all...]
H A Dstate.cpp638 /// \param nresults The third parameter to lua_pcall.
643 lutok::state::pcall(const int nargs, const int nresults, const int errfunc) argument
645 if (lua_pcall(_pimpl->lua_state, nargs, nresults, errfunc) != 0)
/freebsd-13-stable/lib/libc/iconv/
H A Dcitrus_iconv.h59 uint32_t flags, size_t * __restrict nresults)
63 outbytes, flags, nresults);
56 _citrus_iconv_convert(struct _citrus_iconv * __restrict cv, char * __restrict * __restrict in, size_t * __restrict inbytes, char * __restrict * __restrict out, size_t * __restrict outbytes, uint32_t flags, size_t * __restrict nresults) argument
/freebsd-13-stable/contrib/ntp/lib/isc/
H A Dresult.c116 register_table(unsigned int base, unsigned int nresults, const char **txt, argument
122 REQUIRE(nresults <= ISC_RESULTCLASS_SIZE);
133 table->last = base + nresults - 1;
208 isc_result_register(unsigned int base, unsigned int nresults, argument
213 return (register_table(base, nresults, txt, msgcat, set));
/freebsd-13-stable/sys/contrib/openzfs/module/lua/
H A Dldo.h33 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
H A Dldo.c365 int luaD_precall (lua_State *L, StkId func, int nresults) { argument
379 ci->nresults = nresults;
410 ci->nresults = nresults;
425 return luaD_precall(L, func, nresults); /* now it must be a function */
444 wanted = ci->nresults;
492 adjustresults(L, ci->nresults);
641 LUA_API int lua_yieldk (lua_State *L, int nresults, int ctx, lua_CFunction k) { argument
643 luai_userstateyield(L, nresults);
[all...]
H A Dlapi.c886 LUA_API void lua_callk (lua_State *L, int nargs, int nresults, int ctx, argument
894 checkresults(L, nargs, nresults);
899 luaD_call(L, func, nresults, 1); /* do the call */
902 luaD_call(L, func, nresults, 0); /* just do the call */
903 adjustresults(L, nresults);
914 int nresults; member in struct:CallS
920 luaD_call(L, c->func, c->nresults, 0);
925 LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, argument
935 checkresults(L, nargs, nresults);
945 c.nresults
[all...]
H A Dlcode.h68 LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
H A Dlstate.h74 short nresults; /* expected number of results from this function */ member in struct:CallInfo
H A Dlcode.c357 void luaK_setreturns (FuncState *fs, expdesc *e, int nresults) { argument
359 SETARG_C(getcode(fs, e), nresults+1); local
362 SETARG_B(getcode(fs, e), nresults+1); local
H A Dlvm.c529 if (GETARG_C(inst) - 1 >= 0) /* nresults >= 0? */
775 int nresults = GETARG_C(i) - 1;
777 if (luaD_precall(L, ra, nresults)) { /* C function? */
778 if (nresults >= 0) L->top = ci->top; /* adjust results */
/freebsd-13-stable/contrib/ntp/lib/isc/include/isc/
H A Dresult.h104 isc_result_register(unsigned int base, unsigned int nresults,
/freebsd-13-stable/contrib/lua/src/
H A Dldo.c439 moveresults(L, ci->func, nres, ci->nresults);
479 CallInfo *luaD_precall (lua_State *L, StkId func, int nresults) { argument
493 ci->nresults = nresults;
517 ci->nresults = nresults;
587 adjustresults(L, ci->nresults);
702 int *nresults) {
729 *nresults = (status == LUA_YIELD) ? L->ci->u2.nyield
741 LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContex argument
701 lua_resume(lua_State *L, lua_State *from, int nargs, int *nresults) argument
[all...]
H A Dlapi.c190 if (diff < 0 && hastocloseCfunc(ci->nresults))
971 LUA_API void lua_callk (lua_State *L, int nargs, int nresults, argument
979 checkresults(L, nargs, nresults);
984 luaD_call(L, func, nresults); /* do the call */
987 luaD_callnoyield(L, func, nresults); /* just do the call */
988 adjustresults(L, nresults);
999 int nresults; member in struct:CallS
1005 luaD_callnoyield(L, c->func, c->nresults);
1010 LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, argument
1020 checkresults(L, nargs, nresults);
1238 int nresults; local
[all...]
H A Dlcode.h85 LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
H A Dlua.h281 LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults,
285 LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
298 LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx,
H A Dlstate.h184 short nresults; /* expected number of results from this function */ member in struct:CallInfo
H A Dlstate.c194 ci->nresults = 0;
H A Dlvm.c1617 int nresults = GETARG_C(i) - 1; local
1622 if ((newci = luaD_precall(L, ra, nresults)) == NULL)
1694 int nres = ci->nresults;
1710 int nres = ci->nresults;
H A Dlcode.c705 ** Fix an expression to return the number of results 'nresults'.
708 void luaK_setreturns (FuncState *fs, expdesc *e, int nresults) { argument
711 SETARG_C(*pc, nresults + 1);
714 SETARG_C(*pc, nresults + 1);
/freebsd-13-stable/sys/contrib/openzfs/include/sys/lua/
H A Dlua.h251 LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, int ctx,
257 LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
271 LUA_API int (lua_yieldk) (lua_State *L, int nresults, int ctx,
/freebsd-13-stable/contrib/netbsd-tests/lib/libcurses/director/
H A Dtestlang_parse.y855 * results. The variable nresults determines how many returns we expect
860 do_function_call(size_t nresults)
868 assert(nresults <= MAX_RESULTS);
888 "reported %zu\n", nresults, returns_count.return_len);
979 if (returns_count.return_len != nresults)
981 "but received %zu", nresults, returns_count.return_len);
984 for (i = 0; i < nresults; i++) {
1000 for (i = 0; i < nresults; i++) {

Completed in 289 milliseconds