diff options
Diffstat (limited to 'json.c')
| -rw-r--r-- | json.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,17 +4,17 @@ #include <stdio.h> -#include "types.h" +#include "json.h" __attribute__((nonnull)) -static int _json_match(const char *text, match_t *m, int comma, unsigned int verbose); +static int _json_match(const char *text, match_t *m, int comma, bool 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, unsigned int verbose) +static int _json_match(const char *text, match_t *m, int comma, bool verbose) { if (!verbose) { if (m->pat->type != BP_REF) { @@ -49,7 +49,7 @@ static int _json_match(const char *text, match_t *m, int comma, unsigned int ver // // Print a match object as a JSON object. // -void json_match(const char *text, match_t *m, unsigned int verbose) +void json_match(const char *text, match_t *m, bool verbose) { (void)_json_match(text, m, 0, verbose); } |
