Lines Matching refs:toglob
391 x_file_glob(int *flagsp, char *toglob, char ***wordsp)
399 x_glob_hlp_add_qchar(toglob);
402 * Convert "foo*" (toglob) to an array of strings (words)
406 s->start = s->str = toglob;
436 toglob = x_glob_hlp_tilde_and_rem_qchar(toglob, false);
440 * but be careful (e.g. toglob == "ab*" when the file
446 if ((strcmp(words[0], toglob) == 0 &&
486 x_command_glob(int flags, char *toglob, char ***wordsp)
493 /* Convert "foo*" (toglob) to a pattern for future use */
494 pat = evalstr(toglob, DOPAT | DOTILDE);
637 char *toglob, *s;
643 strndupx(toglob, buf + *startp, len + /* the '*' */ 1, ATEMP);
644 toglob[len] = '\0';
654 for (s = toglob; *s; s++) {
671 if (*toglob == '~' && /* not vdirsep */ !vstrchr(toglob, '/')) {
678 toglob[len] = '*';
679 toglob[len + 1] = '\0';
686 x_command_glob(*flagsp, toglob, &words) :
687 x_file_glob(flagsp, toglob, &words);
688 afree(toglob, ATEMP);