Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b00fe3

Browse files
committed
Fix warnings re typedef redefinition inea7b4e9 and3311ea8
Per gripe from Tom Lane and the buildfarm
1 parent6f4d63e commit1b00fe3

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

‎src/common/jsonapi.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ typedef enum
7878
* struct containing the 3 stacks used in non-recursive parsing,
7979
* and the token and value for scalars that need to be preserved
8080
* across calls.
81+
*
82+
* typedef appears in jsonapi.h
8183
*/
82-
typedefstructJsonParserStack
84+
structJsonParserStack
8385
{
8486
intstack_size;
8587
char*prediction;
@@ -89,18 +91,20 @@ typedef struct JsonParserStack
8991
bool*fnull;
9092
JsonTokenTypescalar_tok;
9193
char*scalar_val;
92-
}JsonParserStack;
94+
};
9395

9496
/*
9597
* struct containing state used when there is a possible partial token at the
9698
* end of a json chunk when we are doing incremental parsing.
99+
*
100+
* typedef appears in jsonapi.h
97101
*/
98-
typedefstructJsonIncrementalState
102+
structJsonIncrementalState
99103
{
100104
boolis_last_chunk;
101105
boolpartial_completed;
102106
StringInfoDatapartial_token;
103-
}JsonIncrementalState;
107+
};
104108

105109
/*
106110
* constants and macros used in the nonrecursive parser

‎src/common/parse_manifest.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ typedef struct
9191
char*manifest_checksum;
9292
}JsonManifestParseState;
9393

94-
typedefstructJsonManifestParseIncrementalState
94+
/* typedef appears in parse_manifest.h */
95+
structJsonManifestParseIncrementalState
9596
{
9697
JsonLexContextlex;
9798
JsonSemActionsem;
9899
pg_cryptohash_ctx*manifest_ctx;
99-
}JsonManifestParseIncrementalState;
100+
};
100101

101102
staticJsonParseErrorTypejson_manifest_object_start(void*state);
102103
staticJsonParseErrorTypejson_manifest_object_end(void*state);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp