From f7ea26c582945a254dc20d87760cbaa52dbef3a7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 8 Sep 2020 00:00:09 -0700 Subject: Improved printing code, fixed some bugs --- bpeg.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bpeg.h') diff --git a/bpeg.h b/bpeg.h index a855e8a..89058f3 100644 --- a/bpeg.h +++ b/bpeg.h @@ -15,11 +15,8 @@ typedef struct match_s { // Where the match starts and ends (end is after the last character) const char *start, *end; - union { - unsigned int is_capture:1; - const char *name; - const char *replacement; - } capture; + unsigned int is_capture:1, is_replacement:1; + const char *name_or_replacement; struct match_s *child, *nextsibling; } match_t; -- cgit v1.2.3