Lines Matching refs:shellparam
68 struct shparam shellparam; /* current positional parameters */
125 shellparam.p = argptr;
126 shellparam.reset = 1;
127 /* assert(shellparam.malloc == 0 && shellparam.nparam == 0); */
129 shellparam.nparam++;
284 freeparam(&shellparam);
285 shellparam.malloc = 1;
286 shellparam.nparam = nparam;
287 shellparam.p = newparam;
288 shellparam.optnext = NULL;
323 if (n > shellparam.nparam)
326 shellparam.nparam -= n;
327 for (ap1 = shellparam.p ; --n >= 0 ; ap1++) {
328 if (shellparam.malloc)
331 ap2 = shellparam.p;
333 shellparam.optnext = NULL;
365 shellparam.optnext = NULL;
366 shellparam.reset = 1;
371 * The getopts builtin. Shellparam.optnext points to the next argument
372 * to be processed. Shellparam.optptr points to the next character to
373 * be processed in the current argument. If shellparam.optnext is NULL,
385 optbase = shellparam.p;
389 if (shellparam.reset == 1) {
390 shellparam.optnext = optbase;
391 shellparam.optptr = NULL;
392 shellparam.reset = 0;
395 return getopts(argv[1], argv[2], optbase, &shellparam.optnext,
396 &shellparam.optptr);