From b29060f38b30e6e379769582a0cf7cc3e9ae5056 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 15 Jan 2021 02:05:17 -0800 Subject: Cleaned up and simplified global state setting stuff (e.g. --verbose) --- json.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'json.c') diff --git a/json.c b/json.c index 22905cc..6933e02 100644 --- a/json.c +++ b/json.c @@ -7,14 +7,14 @@ #include "types.h" __attribute__((nonnull)) -static int _json_match(const char *text, match_t *m, int comma, int verbose); +static int _json_match(const char *text, match_t *m, int comma, unsigned int verbose); // // Helper function for json_match(). // `comma` is used to track whether a comma will need to be printed before the // next object or not. // -static int _json_match(const char *text, match_t *m, int comma, int verbose) +static int _json_match(const char *text, match_t *m, int comma, unsigned int verbose) { if (!verbose) { if (m->op->type != VM_REF) { @@ -49,7 +49,7 @@ static int _json_match(const char *text, match_t *m, int comma, int verbose) // // Print a match object as a JSON object. // -void json_match(const char *text, match_t *m, int verbose) +void json_match(const char *text, match_t *m, unsigned int verbose) { _json_match(text, m, 0, verbose); } -- cgit v1.2.3