]> mj.ucw.cz Git - libucw.git/commitdiff
Added configuration options for libpcre.
authorMartin Mares <mj@ucw.cz>
Thu, 18 Mar 2004 22:15:48 +0000 (22:15 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 18 Mar 2004 22:15:48 +0000 (22:15 +0000)
lib/regex.c
lib/regex.t

index 43ef8694ac2609a7b653e9253ae1d68e36ef1014..a80ed74185f68b8c5cef60b174a5dbff2574f06e 100644 (file)
@@ -16,7 +16,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#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 */
 
index 02f5d31f3fedd0c096211e2318ede7990ea63079..dd200a870b7609c2ba5537fcbbe0cfb1e4211cb7 100644 (file)
@@ -34,7 +34,7 @@ Out:  MATCH
 
 Run:   obj/lib/regex-t '(.*b)*'
 In:    ababababab
-       abababababa
+       ababababababababababababababababababababababababababababa
 Out:   MATCH
        NO MATCH