From 2ec9f76b7221938061d12e268e97bc33e5653a8e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 28 May 2024 02:05:57 -0400 Subject: Rename 'Match' macro to avoid confusion --- json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.c') diff --git a/json.c b/json.c index 448dbe7..e0e1c22 100644 --- a/json.c +++ b/json.c @@ -29,7 +29,7 @@ static int _json_match(const char *text, match_t *m, int comma, bool verbose) comma = 0; printf("{"); if (m->pat->type == BP_TAGGED) { - printf("\"tag\":\"%.*s\"", (int)Match(m->pat, BP_TAGGED)->namelen, Match(m->pat, BP_TAGGED)->name); + printf("\"tag\":\"%.*s\"", (int)When(m->pat, BP_TAGGED)->namelen, When(m->pat, BP_TAGGED)->name); comma = 1; } if (verbose) { -- cgit v1.2.3