Skip to content

Commit 66e90cf

Browse files
author
Nikita Glukhov
committed
Hide getJsonbOffset(), getJsonbLength()
1 parent d67ab24 commit 66e90cf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/backend/utils/adt/jsonb_util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ JsonbValueToJsonb(JsonbValue *val)
117117
* the variable-length-data part of its container. The node is identified
118118
* by index within the container's JEntry array.
119119
*/
120-
uint32
120+
static uint32
121121
getJsonbOffset(const JsonbContainer *jc, int index)
122122
{
123123
uint32 offset = 0;
@@ -142,7 +142,7 @@ getJsonbOffset(const JsonbContainer *jc, int index)
142142
* Get the length of the variable-length portion of a Jsonb node.
143143
* The node is identified by index within the container's JEntry array.
144144
*/
145-
uint32
145+
static uint32
146146
getJsonbLength(const JsonbContainer *jc, int index)
147147
{
148148
uint32 off;

src/include/utils/jsonb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,6 @@ typedef struct JsonbIterator
353353

354354

355355
/* Support functions */
356-
extern uint32 getJsonbOffset(const JsonbContainer *jc, int index);
357-
extern uint32 getJsonbLength(const JsonbContainer *jc, int index);
358356
extern int compareJsonbContainers(JsonbContainer *a, JsonbContainer *b);
359357
extern JsonbValue *findJsonbValueFromContainer(JsonbContainer *sheader,
360358
uint32 flags,

0 commit comments

Comments
 (0)