aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 19:02:36 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 19:02:36 -0800
commit984a869c985f8cc334cc40bd5b387e11d9f9ba29 (patch)
tree52924e7275843295607666408c51f0718bf61819 /json.c
parent5d1ffd61440a9563d10e921538cbfdc4e21bbd09 (diff)
Renaming 'op' member fields to 'pat'
Diffstat (limited to 'json.c')
-rw-r--r--json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json.c b/json.c
index 6933e02..f2580f8 100644
--- a/json.c
+++ b/json.c
@@ -17,7 +17,7 @@ static int _json_match(const char *text, match_t *m, int comma, unsigned int ver
static int _json_match(const char *text, match_t *m, int comma, unsigned int verbose)
{
if (!verbose) {
- if (m->op->type != VM_REF) {
+ if (m->pat->type != VM_REF) {
for (match_t *child = m->child; child; child = child->nextsibling) {
comma |= _json_match(text, child, comma, verbose);
}
@@ -28,7 +28,7 @@ static int _json_match(const char *text, match_t *m, int comma, unsigned int ver
if (comma) printf(",\n");
comma = 0;
printf("{\"rule\":\"");
- for (const char *c = m->op->start; c < m->op->end; c++) {
+ for (const char *c = m->pat->start; c < m->pat->end; c++) {
switch (*c) {
case '"': printf("\\\""); break;
case '\\': printf("\\\\"); break;