Return to compile.c CVS log | Up to [local] / src / usr.bin / sed |
version 1.5, 1998/01/18 22:01:53 | version 1.6, 1998/01/21 03:51:49 | ||
---|---|---|---|
|
|
||
return (p); | return (p); | ||
} | } | ||
*repp = xmalloc(sizeof(regex_t)); | *repp = xmalloc(sizeof(regex_t)); | ||
if (p && (eval = regcomp(*repp, re, REG_EXTENDED)) != 0) | if (p && (eval = regcomp(*repp, re, 0)) != 0) | ||
err(COMPILE, "RE error: %s", strregerror(eval, *repp)); | err(COMPILE, "RE error: %s", strregerror(eval, *repp)); | ||
if (maxnsub < (*repp)->re_nsub) | if (maxnsub < (*repp)->re_nsub) | ||
maxnsub = (*repp)->re_nsub; | maxnsub = (*repp)->re_nsub; |