diff th_regex.h @ 635:d191ded8a790

Improve the experimental regex matching debugging macros.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Jan 2020 07:16:18 +0200
parents a0e8d9c6300b
children 8c957ad9d4c3
line wrap: on
line diff
--- a/th_regex.h	Tue Jan 21 05:00:53 2020 +0200
+++ b/th_regex.h	Tue Jan 21 07:16:18 2020 +0200
@@ -68,6 +68,18 @@
 } th_regex_match_node;
 
 
+#ifdef TH_EXPERIMENTAL_REGEX_DEBUG
+enum
+{
+    TH_DBG_RE_COMPILE = 0x0001,
+    TH_DBG_RE_FREE    = 0x0002,
+    TH_DBG_RE_MATCH   = 0x0004,
+};
+
+extern int th_dbg_re_flags;
+#endif
+
+
 //
 // Functions
 //