Lines Matching defs:pat
428 #define SGR 004 /* use last regex instead of last pat */
440 static pattern_t *pat = NULL;
703 if (sflags && !pat) {
712 tpat = pat;
718 } else if (tpat != pat) {
719 if (pat) {
720 regfree(pat);
721 free(pat);
723 pat = tpat;
756 if (search_and_replace(pat, sgflag, sgnum) < 0)
885 get_matching_node_addr(pattern_t *pat, int dir)
891 if (!pat) return ERR;
899 if (!regexec(pat, s, 0, NULL, 0))