Lines Matching defs:pat
228 addmatch(register glob_t* gp, const char* dir, const char* pat, register const char* rescan, char* endslash, int meta)
242 stakputs(pat);
294 register char* pat;
327 pat = rescan = ap->gl_begin;
391 pat = rescan;
402 if (pat == prefix)
415 if (pat == prefix + 1)
420 trim(ap->gl_begin, pat, &t1, rescan, &t2);
421 pat -= t1;
425 *(restore1 = pat - 1) = 0;
428 while (pat[0] == '*' && pat[1] == '*' && (pat[2] == '/' || pat[2]==0))
430 matchdir = pat;
431 if (pat[2])
433 pat += 3;
434 while (*pat=='/')
435 pat++;
436 if (*pat)
439 rescan = *pat?0:pat;
440 pat = "*";
445 rescan = pat;
473 pat = strcpy(gp->gl_opt, pat);
488 if (err = regcomp(&rei, pat, gp->re_flags|REG_ICASE))
503 if (err = regcomp(&rec, pat, gp->re_flags))
576 register char* pat;
682 if (*(pat = (char*)pattern) == '~' && *(pat + 1) == '(')
687 pat += 2;
690 switch (*pat++)
732 optlen = pat - (char*)pattern;
745 pat = strcopy(ap->gl_begin, pattern + optlen);
747 pat = strcopy(pat, gp->gl_suffix);
749 strlcpy(gp->gl_pat = gp->gl_opt = pat + 1, pattern, optlen);