aboutsummaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-15 02:05:17 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-15 02:05:17 -0800
commitb29060f38b30e6e379769582a0cf7cc3e9ae5056 (patch)
treea8ace7d44e071f4d77de9b300855f8d9687cee86 /json.c
parent8ff80b09ccd7e680829d0911d965ad4b0d6f7939 (diff)
Cleaned up and simplified global state setting stuff (e.g. --verbose)
Diffstat (limited to 'json.c')
-rw-r--r--json.c6
1 files changed, 3 insertions, 3 deletions
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);
}