diff options
| author | Joey Adams | 2010-08-05 03:53:30 +0000 |
|---|---|---|
| committer | Joey Adams | 2010-08-05 03:53:30 +0000 |
| commit | 1dab8166427da17d43c6ebaa6287447d3dd174b5 (patch) | |
| tree | 54c1e57b485f3136c2a607cab326a151a9978e8e /jsonpath.c | |
| parent | 32df49240df9b682cbe1b9d307e16eda08572109 (diff) | |
Renamed json_node to JSON in the C code.
Diffstat (limited to 'jsonpath.c')
| -rw-r--r-- | jsonpath.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -140,7 +140,7 @@ mkRef(JPRefType type) } static JPRef * -mkRefNode(json_node * node) +mkRefNode(JSON * node) { JPRef *ref = mkRef(JP_REF_NODE); @@ -390,17 +390,17 @@ failed: } /* - * Currently, a lot of JPRef nodes are allocated just to pass json_node pointers + * Currently, a lot of JPRef nodes are allocated just to pass JSON pointers * to match_recurse. If this becomes a memory/performance issue in the future, - * JPRef could merged with json_node by adding JPRef's specialty types to the - * json_type enum and json_node union. JPRef is currently not merged with - * json_node in an attempt to keep the codebase tidy and easier to extend. + * JPRef could merged with JSON by adding JPRef's specialty types to the + * json_type enum and JSON union. JPRef is currently not merged with + * JSON in an attempt to keep the codebase tidy and easier to extend. */ static void match_recurse(void on_match(void *ctx, JPRef * ref), void *ctx, ListCell *path, JPRef * ref) { jp_element *elem; - json_node *json, + JSON *json, *child; if (path == NULL) @@ -514,7 +514,7 @@ jp_match_callback(List **results, JPRef * ref) } List * -jp_match(JSONPath * jp, json_node * json) +jp_match(JSONPath * jp, JSON * json) { ListCell *lc = jp_head(jp); List *results = NIL; @@ -525,7 +525,7 @@ jp_match(JSONPath * jp, json_node * json) } static void -jp_set_callback(json_node * value, JPRef * ref) +jp_set_callback(JSON * value, JPRef * ref) { switch (ref->type) { @@ -539,7 +539,7 @@ jp_set_callback(json_node * value, JPRef * ref) } void -jp_set(JSONPath * jp, json_node * json, json_node * value) +jp_set(JSONPath * jp, JSON * json, JSON * value) { ListCell *lc = jp_head(jp); |
