Lines Matching defs:vl
228 Char **vl, **el, **nv, *s;
230 vl = nv = *nvp;
234 el = vl + blklen(vl);
236 for (s = *vl; s; s = *++vl) {
250 *vl-- = *bl;
258 l = vl - nv;
262 vl = nv + l;
265 /* nv vl el bl
271 vp = vl--;
277 /* nv vl el bl
298 Char ***fnv, **vl, **el;
303 *fnv = vl = xmalloc(sizeof(Char *) * size);
304 *vl = NULL;
317 *vl++ = expanded[i];
318 if (vl == &(*fnv)[size]) {
321 vl = &(*fnv)[size - GLOBSPACE];
327 *vl++ = Strsave(s);
328 if (vl == &(*fnv)[size]) {
331 vl = &(*fnv)[size - GLOBSPACE];
334 *vl = NULL;
343 el = vl;
350 vl = *fnv;
351 for (s = *vl; s; s = *++vl)
355 *vl = globtilde(s);
365 *vl = ns;
371 vl = *fnv;
377 for (s = *vl; s; s = *++vl) {
378 *vl = dnormalize(s, 1);
386 vl = *fnv;
388 return vl;
392 handleone(Char *str, Char **vl, int action)
400 blkfree(vl);
405 for (t = vl; (p = *t++) != NULL; chars++)
408 for (t = vl, strp = str; (p = *t++) != '\0'; chars++) {
414 blkfree(vl);
417 str = Strsave(strip(*vl));
418 blkfree(vl);
427 libglob(Char **vl)
434 if (!vl || !vl[0])
435 return(vl);
445 ptr = short2qstr(*vl);
465 while (*++vl);
466 vl = (globv.gl_pathc == 0 || (magic && !match && !nonomatch)) ?
469 return (vl);
475 Char *v[2], **vl, **vo;
491 vl = vo;
501 vl = libglob(vo);
503 if (vl != vo)
508 if (vl == NULL) {
513 if (vl[0] == NULL) {
514 xfree(vl);
517 if (vl[1])
518 return (handleone(str, vl, action));
520 str = strip(*vl);
521 xfree(vl);
529 Char **vl, **vo;
541 vl = vo = globexpand(v, noglob);
543 vl = vo = saveblk(v);
547 vl = libglob(vo);
548 if (vl == vo)
553 trim(vl);
555 return vl;