# HG changeset patch # User Matti Hamalainen # Date 1579951118 -7200 # Node ID 38a9302962f7f00f510fc21eb23a0b82dd356a74 # Parent 18fe45e61b2b6cddb9589e84bed0bf6aa5953156 Always compile the regex code, but do not run tests on it unless enabled. diff -r 18fe45e61b2b -r 38a9302962f7 th_regex.c --- a/th_regex.c Sat Jan 25 13:13:37 2020 +0200 +++ b/th_regex.c Sat Jan 25 13:18:38 2020 +0200 @@ -24,8 +24,6 @@ #endif -#ifdef TH_EXPERIMENTAL_REGEX - enum { TH_RE_MATCH_ONCE, @@ -1109,5 +1107,3 @@ th_llist_free_func_node((th_llist_t *) matches, (void (*)(th_llist_t *)) th_regex_free_match); } - -#endif // TH_EXPERIMENTAL_REGEX diff -r 18fe45e61b2b -r 38a9302962f7 th_regex.h --- a/th_regex.h Sat Jan 25 13:13:37 2020 +0200 +++ b/th_regex.h Sat Jan 25 13:18:38 2020 +0200 @@ -5,8 +5,6 @@ * * Please read file 'COPYING' for information on license and distribution. */ -#ifdef TH_EXPERIMENTAL_REGEX - #ifndef TH_REGEX_H #define TH_REGEX_H @@ -73,5 +71,3 @@ } #endif #endif // TH_REGEX_H - -#endif // TH_EXPERIMENTAL_REGEX