diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-05-29 13:14:35 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-05-29 13:14:35 -0400 |
| commit | da067957c82ab74300bafa10a7753dc1e9cb53c7 (patch) | |
| tree | 7af54094538c07b960fc08d1ac1bdf26f9b9ce26 /json.c | |
| parent | f2718636018468725234e677225c74b0810ff10c (diff) | |
Rename match_t -> bp_match_t
Diffstat (limited to 'json.c')
| -rw-r--r-- | json.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,14 +8,14 @@ #include "utils.h" __attribute__((nonnull)) -static int _json_match(const char *text, match_t *m, int comma, bool verbose); +static int _json_match(const char *text, bp_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, bool verbose) +static int _json_match(const char *text, bp_match_t *m, int comma, bool verbose) { if (!verbose && m->pat->type != BP_TAGGED) { if (m->children) { @@ -78,7 +78,7 @@ static int _json_match(const char *text, match_t *m, int comma, bool verbose) // // Print a match object as a JSON object. // -public void json_match(const char *text, match_t *m, bool verbose) +public void json_match(const char *text, bp_match_t *m, bool verbose) { (void)_json_match(text, m, 0, verbose); } |
