summaryrefslogtreecommitdiff
path: root/jsonpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'jsonpath.c')
-rw-r--r--jsonpath.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/jsonpath.c b/jsonpath.c
index 9733833..253f2cb 100644
--- a/jsonpath.c
+++ b/jsonpath.c
@@ -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);