aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-28 02:06:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-28 02:06:38 -0400
commit1597b34a95e7825e97be52bb452419f4b5f1badb (patch)
tree41df62757c0bb4608562e9e66ae714bec1ecd2f8
parent2ec9f76b7221938061d12e268e97bc33e5653a8e (diff)
Move more non-public macros out of header
-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,