Lines Matching defs:vl
130 Char *lm, *pe, *pl, *pm, **nv, **vl;
134 nv = vl = xreallocarray(NULL, sizeof(Char *), (size_t)size);
135 *vl = NULL;
171 *vl = NULL;
195 *vl++ = Strsave(gbuf);
198 if (vl == &nv[size]) {
201 vl = &nv[size - GLOBSPACE];
208 *vl = NULL;
216 Char **ex, **nv, *s, **vl;
218 vl = nv = *nvp;
222 for (ex = vl; *ex; ex++)
225 for (s = *vl; s; s = *++vl) {
241 *vl-- = *bl;
251 l = vl - nv;
254 vl = nv + l;
257 vp = vl--;
278 Char **ex, **nv, *s, **vl;
282 nv = vl = xreallocarray(NULL, sizeof(Char *), size);
283 *vl = NULL;
294 *vl++ = pargv[i];
295 if (vl == &nv[size]) {
298 vl = &nv[size - GLOBSPACE];
305 *vl++ = Strsave(s);
306 if (vl == &nv[size]) {
309 vl = &nv[size - GLOBSPACE];
313 *vl = NULL;
321 ex = vl;
327 vl = nv;
328 for (s = *vl; s; s = *++vl)
330 *vl = globtilde(nv, s);
331 vl = nv;
332 return (vl);
336 handleone(Char *str, Char **vl, int action)
340 vlp = vl;
344 blkfree(vl);
357 blkfree(vl);
361 blkfree(vl);
370 libglob(Char **vl)
381 if (!vl || !vl[0])
382 return (vl);
392 ptr = short2qstr(*vl);
395 setname(vis_str(*vl));
410 while (*++vl);
411 vl = (globv.gl_pathc == 0 || (magic && !match && !nonomatch)) ?
414 return (vl);
420 Char *v[2], **vl, **vo;
456 vl = libglob(vo);
457 if ((gflg & G_CSH) && vl != vo)
459 if (vl == NULL) {
463 if (vl[0] == NULL) {
464 free(vl);
467 if (vl[1] != NULL)
468 return (handleone(str, vl, action));
470 str = strip(*vl);
471 free(vl);
479 Char **vl, **vo;
495 vl = vo = globexpand(v);
497 vl = vo = saveblk(v);
500 vl = libglob(vo);
501 if ((gflg & G_CSH) && vl != vo)
505 trim(vl);
507 gargc = vl ? blklen(vl) : 0;
508 return (gargv = vl);