diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-05-28 02:06:38 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-05-28 02:06:38 -0400 |
| commit | 1597b34a95e7825e97be52bb452419f4b5f1badb (patch) | |
| tree | 41df62757c0bb4608562e9e66ae714bec1ecd2f8 /pattern.c | |
| parent | 2ec9f76b7221938061d12e268e97bc33e5653a8e (diff) | |
Move more non-public macros out of header
Diffstat (limited to 'pattern.c')
| -rw-r--r-- | pattern.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
