Lines Matching defs:preg
693 error(regex_t* preg, int code)
710 regerror(code, preg, msg = buf, sizeof buf);
1138 catchfree(regex_t* preg, int flags, int* tabs, char* spec, char* re, char* s, char* ans, char* msg, char* accept, regmatch_t* match, int nmatch, int nsub, unsigned long skip, unsigned long level, unsigned long test)
1144 regfree(preg);
1150 regfree(preg);
1158 error(preg, eret);
1254 regex_t preg;
1441 preg.re_disc = &state.disc.disc;
1940 cret = regcomp(&preg, re, flags);
1944 cret = regcomp(&preg, re, flags);
1951 p = re + preg.re_npat;
1953 cret = regsubcomp(&preg, p, NiL, 0, 0);
1957 cret = regsubcomp(&preg, p, NiL, 0, 0);
1960 if (!cret && *(p += preg.re_npat) && !(preg.re_sub->re_flags & REG_SUB_LAST))
1962 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))
1976 p = re + preg.re_npat;
1978 i = regdecomp(&preg, -1, buf, j);
1982 i = regdecomp(&preg, -1, buf, j);
1987 catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
2024 else if (nsub != preg.re_nsub)
2026 if (nsub > preg.re_nsub)
2033 printf("at least %d expected, %d returned\n", nsub, preg.re_nsub);
2038 nsub = preg.re_nsub;
2051 catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
2071 error(&preg, cret);
2106 error(&preg, cret);
2127 eret = regnexec(&preg, s, nexec, nmatch, match, eflags);
2134 eret = regexec(&preg, s, nmatch, match, eflags);
2138 eret = regexec(&preg, s, nmatch, match, eflags);
2147 eret = regsubexec(&preg, s, nmatch, match);
2151 eret = regsubexec(&preg, s, nmatch, match);
2167 error(&preg, eret);
2178 error(&preg, eret);
2192 error(&preg, eret);
2213 p = preg.re_sub->re_buf;
2250 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))
2260 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))