summaryrefslogtreecommitdiff
path: root/jsonpath.c
diff options
context:
space:
mode:
authorJoey Adams2010-08-05 03:46:11 +0000
committerJoey Adams2010-08-05 03:46:11 +0000
commit32df49240df9b682cbe1b9d307e16eda08572109 (patch)
tree827f8d65459e0cb4d858383c2cd56ffbdb62508e /jsonpath.c
parente0280d56186968a74532320d629300d6e2c3f168 (diff)
Added license comments to source files and ran pgindent
Diffstat (limited to 'jsonpath.c')
-rw-r--r--jsonpath.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/jsonpath.c b/jsonpath.c
index 591c5fd..9733833 100644
--- a/jsonpath.c
+++ b/jsonpath.c
@@ -1,3 +1,14 @@
+/*-------------------------------------------------------------------------
+ *
+ * jsonpath.c
+ * JSONPath implementation routines for JSON data type support.
+ *
+ * Copyright (c) 2010, PostgreSQL Global Development Group
+ * Written by Joey Adams <joeyadams3.14159@gmail.com>.
+ *
+ *-------------------------------------------------------------------------
+ */
+
#include "jsonpath.h"
#include "util.h"
@@ -379,12 +390,12 @@ failed:
}
/*
-Currently, a lot of JPRef nodes are allocated just to pass json_node 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.
-*/
+ * Currently, a lot of JPRef nodes are allocated just to pass json_node 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.
+ */
static void match_recurse(void on_match(void *ctx, JPRef * ref), void *ctx,
ListCell *path, JPRef * ref)
{