From 1b00fe30a67774e55c5fc776096a3c96f1a147d2 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Thu, 4 Apr 2024 11:27:51 -0400 Subject: Fix warnings re typedef redefinition in ea7b4e9a2a and 3311ea86ed Per gripe from Tom Lane and the buildfarm --- src/common/jsonapi.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/common/jsonapi.c') diff --git a/src/common/jsonapi.c b/src/common/jsonapi.c index 3d1bd37ac26..0bc3e426b20 100644 --- a/src/common/jsonapi.c +++ b/src/common/jsonapi.c @@ -78,8 +78,10 @@ typedef enum * struct containing the 3 stacks used in non-recursive parsing, * and the token and value for scalars that need to be preserved * across calls. + * + * typedef appears in jsonapi.h */ -typedef struct JsonParserStack +struct JsonParserStack { int stack_size; char *prediction; @@ -89,18 +91,20 @@ typedef struct JsonParserStack bool *fnull; JsonTokenType scalar_tok; char *scalar_val; -} JsonParserStack; +}; /* * struct containing state used when there is a possible partial token at the * end of a json chunk when we are doing incremental parsing. + * + * typedef appears in jsonapi.h */ -typedef struct JsonIncrementalState +struct JsonIncrementalState { bool is_last_chunk; bool partial_completed; StringInfoData partial_token; -} JsonIncrementalState; +}; /* * constants and macros used in the nonrecursive parser -- cgit v1.2.3