Lines Matching refs:loc
486 char *loc = NULL; in subevalvar() local
509 *loc = c; in subevalvar()
523 for (loc = startp; loc < str; loc++) { in subevalvar()
524 c = *loc; in subevalvar()
525 *loc = '\0'; in subevalvar()
528 *loc = c; in subevalvar()
529 if ((varflags & VSQUOTE) && *loc == CTLESC) in subevalvar()
530 loc++; in subevalvar()
535 for (loc = str - 1; loc >= startp;) { in subevalvar()
536 c = *loc; in subevalvar()
537 *loc = '\0'; in subevalvar()
540 *loc = c; in subevalvar()
541 loc--; in subevalvar()
542 if ((varflags & VSQUOTE) && loc > startp && in subevalvar()
543 *(loc - 1) == CTLESC) { in subevalvar()
544 for (q = startp; q < loc; q++) in subevalvar()
547 if (q > loc) in subevalvar()
548 loc--; in subevalvar()
554 for (loc = str - 1; loc >= startp;) { in subevalvar()
555 if (patmatch(str, loc, varflags & VSQUOTE)) in subevalvar()
557 loc--; in subevalvar()
558 if ((varflags & VSQUOTE) && loc > startp && in subevalvar()
559 *(loc - 1) == CTLESC) { in subevalvar()
560 for (q = startp; q < loc; q++) in subevalvar()
563 if (q > loc) in subevalvar()
564 loc--; in subevalvar()
570 for (loc = startp; loc < str - 1; loc++) { in subevalvar()
571 if (patmatch(str, loc, varflags & VSQUOTE)) in subevalvar()
573 if ((varflags & VSQUOTE) && *loc == CTLESC) in subevalvar()
574 loc++; in subevalvar()
583 *loc = c; in subevalvar()
584 amount = ((str - 1) - (loc - startp)) - expdest; in subevalvar()
586 while (loc != str - 1) in subevalvar()
587 *startp++ = *loc++; in subevalvar()
591 amount = loc - expdest; in subevalvar()