diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-08 00:00:09 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-08 00:00:09 -0700 |
| commit | f7ea26c582945a254dc20d87760cbaa52dbef3a7 (patch) | |
| tree | 911d44c57b8e8b3fe50788cd3794cf0196a30822 /bpeg.h | |
| parent | a76c3338775082bcf61706bb0c002ad4b47abaed (diff) | |
Improved printing code, fixed some bugs
Diffstat (limited to 'bpeg.h')
| -rw-r--r-- | bpeg.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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; |
