Skip to content

Commit 563371f

Browse files
author
Nikita Glukhov
committed
Hide getJsonbOffset(), getJsonbLength()
1 parent efcc757 commit 563371f

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
@@ -130,7 +130,7 @@ JsonbValueToJsonb(JsonbValue *val)
130130
* the variable-length-data part of its container. The node is identified
131131
* by index within the container's JEntry array.
132132
*/
133-
uint32
133+
static uint32
134134
getJsonbOffset(const JsonbContainer *jc, int index)
135135
{
136136
uint32 offset = 0;
@@ -155,7 +155,7 @@ getJsonbOffset(const JsonbContainer *jc, int index)
155155
* Get the length of the variable-length portion of a Jsonb node.
156156
* The node is identified by index within the container's JEntry array.
157157
*/
158-
uint32
158+
static uint32
159159
getJsonbLength(const JsonbContainer *jc, int index)
160160
{
161161
uint32 off;

src/include/utils/jsonb.h

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

377377

378378
/* Support functions */
379-
extern uint32 getJsonbOffset(const JsonbContainer *jc, int index);
380-
extern uint32 getJsonbLength(const JsonbContainer *jc, int index);
381379
extern int compareJsonbContainers(JsonbContainer *a, JsonbContainer *b);
382380
extern JsonbValue *findJsonbValueFromContainer(JsonbContainer *sheader,
383381
uint32 flags,

0 commit comments

Comments
 (0)