aboutsummaryrefslogtreecommitdiff
path: root/bpeg.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-08 00:00:09 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-08 00:00:09 -0700
commitf7ea26c582945a254dc20d87760cbaa52dbef3a7 (patch)
tree911d44c57b8e8b3fe50788cd3794cf0196a30822 /bpeg.h
parenta76c3338775082bcf61706bb0c002ad4b47abaed (diff)
Improved printing code, fixed some bugs
Diffstat (limited to 'bpeg.h')
-rw-r--r--bpeg.h7
1 files changed, 2 insertions, 5 deletions
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;