Lines Matching defs:shellparam
57 struct shparam shellparam; /* current positional parameters */
168 shellparam.p = xargv;
169 shellparam.optind = 1;
170 shellparam.optoff = -1;
171 /* assert(shellparam.malloc == 0 && shellparam.nparam == 0); */
173 shellparam.nparam++;
315 freeparam(&shellparam);
316 shellparam.malloc = 1;
317 shellparam.nparam = nparam;
318 shellparam.p = newparam;
319 shellparam.optind = 1;
320 shellparam.optoff = -1;
355 if (n > shellparam.nparam)
358 shellparam.nparam -= n;
359 for (ap1 = shellparam.p ; --n >= 0 ; ap1++) {
360 if (shellparam.malloc)
363 ap2 = shellparam.p;
365 shellparam.optind = 1;
366 shellparam.optoff = -1;
397 shellparam.optind = number(value) ?: 1;
398 shellparam.optoff = -1;
404 * be processed in the current argument. If shellparam.optnext is NULL,
416 optbase = shellparam.p;
417 if ((unsigned)shellparam.optind > shellparam.nparam + 1) {
418 shellparam.optind = 1;
419 shellparam.optoff = -1;
424 if ((unsigned)shellparam.optind > argc - 2) {
425 shellparam.optind = 1;
426 shellparam.optoff = -1;
441 int ind = shellparam.optind;
442 int off = shellparam.optoff;
444 shellparam.optind = -1;
512 shellparam.optoff = p ? p - *(optnext - 1) : -1;
513 shellparam.optind = ind;