Skip to content

Commit 0b3611b

Browse files
author
Nikita Glukhov
committed
Hide JsonbParseState struct definition
1 parent 73233b3 commit 0b3611b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/backend/utils/adt/jsonb_util.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
#define JSONB_MAX_ELEMS (Min(MaxAllocSize / sizeof(JsonbValue), JB_CMASK))
3434
#define JSONB_MAX_PAIRS (Min(MaxAllocSize / sizeof(JsonbPair), JB_CMASK))
3535

36+
/* Conversion state used when parsing Jsonb from text, or for type coercion */
37+
struct JsonbParseState
38+
{
39+
JsonbValue contVal;
40+
Size size;
41+
struct JsonbParseState *next;
42+
};
43+
3644
static void fillJsonbValue(JsonbContainer *container, int index,
3745
char *base_addr, uint32 offset,
3846
JsonbValue *result);

src/include/utils/jsonb.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,7 @@ struct JsonbPair
301301
};
302302

303303
/* Conversion state used when parsing Jsonb from text, or for type coercion */
304-
typedef struct JsonbParseState
305-
{
306-
JsonbValue contVal;
307-
Size size;
308-
struct JsonbParseState *next;
309-
} JsonbParseState;
304+
typedef struct JsonbParseState JsonbParseState;
310305

311306
/*
312307
* JsonbIterator holds details of the type for each iteration. It also stores a

0 commit comments

Comments
 (0)