Lines Matching refs:pat
74 struct pat *pattern;
207 add_pattern(char *pat, size_t len) in add_pattern() argument
219 sizeof(struct pat)); in add_pattern()
221 if (len > 0 && pat[len - 1] == '\n') in add_pattern()
224 pattern[patterns].pat = grep_malloc(len + 1); in add_pattern()
225 memcpy(pattern[patterns].pat, pat, len); in add_pattern()
227 pattern[patterns].pat[len] = '\0'; in add_pattern()
235 add_fpattern(const char *pat, int mode) in add_fpattern() argument
244 fpattern[fpatterns].pat = grep_strdup(pat); in add_fpattern()
253 add_dpattern(const char *pat, int mode) in add_dpattern() argument
262 dpattern[dpatterns].pat = grep_strdup(pat); in add_dpattern()
686 c = regcomp(&r_pattern[i], pattern[i].pat, cflags);