Lines Matching defs:pat
77 struct pat *pattern;
210 add_pattern(char *pat, size_t len)
222 sizeof(struct pat));
224 if (len > 0 && pat[len - 1] == '\n')
226 /* pat may not be NUL-terminated */
227 pattern[patterns].pat = grep_malloc(len + 1);
228 memcpy(pattern[patterns].pat, pat, len);
230 pattern[patterns].pat[len] = '\0';
238 add_fpattern(const char *pat, int mode)
247 fpattern[fpatterns].pat = grep_strdup(pat);
256 add_dpattern(const char *pat, int mode)
265 dpattern[dpatterns].pat = grep_strdup(pat);
688 c = regcomp(&r_pattern[i], pattern[i].pat, cflags);