From: Martin Mares Date: Thu, 18 Mar 2004 22:15:48 +0000 (+0000) Subject: Added configuration options for libpcre. X-Git-Tag: holmes-import~1094 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=f744946abba041b0337fce6dadd352559b1846db;p=libucw.git Added configuration options for libpcre. --- 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