Lines Matching refs:wanted
329 ** Given 'nres' results at 'firstResult', move 'wanted' of them to 'res'.
335 int nres, int wanted) {
336 switch (wanted) { /* handle typical cases separately */
349 return 0; /* wanted == LUA_MULTRET */
353 if (wanted <= nres) { /* enough results? */
354 for (i = 0; i < wanted; i++) /* move wanted results to correct place */
360 for (; i < wanted; i++) /* complete wanted number of results */
366 L->top = res + wanted; /* top points after the last result */
374 ** wanted multiple (variable number of) results.
378 int wanted = ci->nresults;
390 return moveresults(L, firstResult, res, nres, wanted);