diff tests.c @ 614:afcaf5e38f56

Disable regex stuff from normal builds.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 16 Jan 2020 18:45:41 +0200
parents 2e3b81ae8c8a
children d191ded8a790
line wrap: on
line diff
--- a/tests.c	Thu Jan 16 16:01:27 2020 +0200
+++ b/tests.c	Thu Jan 16 18:45:41 2020 +0200
@@ -561,6 +561,8 @@
 }
 
 
+#ifdef TH_EXPERIMENTAL_REGEX
+
 typedef struct
 {
     th_regex_char *str;
@@ -617,6 +619,8 @@
     th_regex_free(reg);
 }
 
+#endif
+
 
 int main(int argc, char *argv[])
 {
@@ -871,6 +875,7 @@
     //
     // Regular expressions
     //
+#ifdef TH_EXPERIMENTAL_REGEX
     if (test_set_start("Regular expressions"))
     {
         th_regex_ctx *reg = NULL;
@@ -935,6 +940,7 @@
             test_regex_list(tlist, "zoo.*?bar");
         }
     }
+#endif
 
     //
     // Print summary and exit