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 | |
| parent | 2ec9f76b7221938061d12e268e97bc33e5653a8e (diff) | |
Move more non-public macros out of header
| -rw-r--r-- | pattern.c | 1 | ||||
| -rw-r--r-- | pattern.h | 2 |
2 files changed, 1 insertions, 2 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; @@ -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, |
