aboutsummaryrefslogtreecommitdiff
path: root/bpeg.h
diff options
context:
space:
mode:
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;