~mdw
/
anag
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pcre.c, etc.: Support the PCRE2 library.
[anag]
/
anag.c
diff --git
a/anag.c
b/anag.c
index
d27523b
..
80da3c3
100644
(file)
--- a/
anag.c
+++ b/
anag.c
@@
-72,7
+72,7
@@
The basic tests in the expression are:\n\
-regexp REGEXP matches with an (extended) regular expression\n\
"
#endif
-regexp REGEXP matches with an (extended) regular expression\n\
"
#endif
-#if
def HAVE_PCRE
+#if
defined(HAVE_PCRE) || defined(HAVE_PCRE2)
"\
-pcre REGEXP matches with a Perl-like regular expression\n\
"
"\
-pcre REGEXP matches with a Perl-like regular expression\n\
"
@@
-138,7
+138,7
@@
static const struct opt opttab[] = {
#ifdef HAVE_REGCOMP
{ "regexp", 1, 0, O_REGEXP },
#endif
#ifdef HAVE_REGCOMP
{ "regexp", 1, 0, O_REGEXP },
#endif
-#if
def HAVE_PCRE
+#if
defined(HAVE_PCRE) || defined(HAVE_PCRE2)
{ "pcre", 1, 0, O_PCRE },
#endif
{ "length", 1, 0, O_LENGTH },
{ "pcre", 1, 0, O_PCRE },
#endif
{ "length", 1, 0, O_LENGTH },
@@
-400,7
+400,7
@@
static void p_factor(p_ctx *p, node **nn)
#ifdef HAVE_REGCOMP
case O_REGEXP: *nn = regexp(p->a + 1); break;
#endif
#ifdef HAVE_REGCOMP
case O_REGEXP: *nn = regexp(p->a + 1); break;
#endif
-#if
def HAVE_PCRE
+#if
defined(HAVE_PCRE) || defined(HAVE_PCRE2)
case O_PCRE: *nn = pcrenode(p->a + 1); break;
#endif
case O_MONO: *nn = mono(p->a + 1); break;
case O_PCRE: *nn = pcrenode(p->a + 1); break;
#endif
case O_MONO: *nn = mono(p->a + 1); break;