From 1597b34a95e7825e97be52bb452419f4b5f1badb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 28 May 2024 02:06:38 -0400 Subject: Move more non-public macros out of header --- pattern.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pattern.c') 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; -- cgit v1.2.3