aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pattern.c1
-rw-r--r--pattern.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/pattern.c b/pattern.c
index f8f02e3..481d6af 100644
--- a/pattern.c
+++ b/pattern.c
@@ -17,6 +17,7 @@
#define Pattern(_tag, _start, _end, _min, _max, ...) allocate_pat((pat_t){.type=_tag, .start=_start, .end=_end, \
.min_matchlen=_min, .max_matchlen=_max, .__tagged._tag={__VA_ARGS__}})
+#define UNBOUNDED(pat) ((pat)->max_matchlen == -1)
static pat_t *allocated_pats = NULL;
diff --git a/pattern.h b/pattern.h
index f9bfc6c..d3a06cd 100644
--- a/pattern.h
+++ b/pattern.h
@@ -14,8 +14,6 @@
#define auto __auto_type
#endif
-#define UNBOUNDED(pat) ((pat)->max_matchlen == -1)
-
// BP virtual machine pattern types
enum pattype_e {
BP_ERROR = 0,