Skip to content

Commit d2f7648

Browse files
author
Nikita Glukhov
committed
Hide JsonbParseState struct definition
1 parent 93889e9 commit d2f7648

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
@@ -37,6 +37,14 @@
3737
#define JSONB_MAX_ELEMS (Min(MaxAllocSize / sizeof(JsonbValue), JB_CMASK))
3838
#define JSONB_MAX_PAIRS (Min(MaxAllocSize / sizeof(JsonbPair), JB_CMASK))
3939

40+
/* Conversion state used when parsing Jsonb from text, or for type coercion */
41+
struct JsonbParseState
42+
{
43+
JsonbValue contVal;
44+
Size size;
45+
struct JsonbParseState *next;
46+
};
47+
4048
static void fillJsonbValue(JsonbContainer *container, int index,
4149
char *base_addr, uint32 offset,
4250
JsonbValue *result);

src/include/utils/jsonb.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,7 @@ struct JsonbPair
324324
};
325325

326326
/* Conversion state used when parsing Jsonb from text, or for type coercion */
327-
typedef struct JsonbParseState
328-
{
329-
JsonbValue contVal;
330-
Size size;
331-
struct JsonbParseState *next;
332-
} JsonbParseState;
327+
typedef struct JsonbParseState JsonbParseState;
333328

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy