From f744946abba041b0337fce6dadd352559b1846db Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 18 Mar 2004 22:15:48 +0000 Subject: [PATCH] Added configuration options for libpcre. --- lib/regex.c | 4 ++-- lib/regex.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/regex.c b/lib/regex.c index 43ef8694..a80ed741 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -16,7 +16,7 @@ #include #include -#if 1 +#if !defined(CONFIG_PCRE) && !defined(CONFIG_POSIX_RE) /* BSD regular expression library */ @@ -117,7 +117,7 @@ rx_subst(regex *r, byte *by, byte *src, byte *dest, uns destlen) return 1; } -#elif 0 +#elif defined(CONFIG_POSIX_RE) /* POSIX regular expression library */ diff --git a/lib/regex.t b/lib/regex.t index 02f5d31f..dd200a87 100644 --- a/lib/regex.t +++ b/lib/regex.t @@ -34,7 +34,7 @@ Out: MATCH Run: obj/lib/regex-t '(.*b)*' In: ababababab - abababababa + ababababababababababababababababababababababababababababa Out: MATCH NO MATCH -- 2.39.2