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

Commitd19c1b0

Browse files
committed
Don't use 'bool' as a struct member name in help_config.c.
Doing so doesn't work if bool is a macro rather than a typedef.Although c.h spends some effort to support configurations where bool isa preexisting macro, help_config.c has existed this way since2003 (b700a6), and there have not been any reports ofproblems. Backpatch anyway since this is as riskless as it gets.Discussion: 20150812084351.GD8470@awork2.anarazel.deBackpatch: 9.0-master
1 parentfeb473a commitd19c1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/misc/help_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
typedefunion
3232
{
3333
structconfig_genericgeneric;
34-
structconfig_boolbool;
34+
structconfig_bool_bool;
3535
structconfig_realreal;
3636
structconfig_intinteger;
3737
structconfig_stringstring;
@@ -98,7 +98,7 @@ printMixedStruct(mixedStruct *structToPrint)
9898

9999
casePGC_BOOL:
100100
printf("BOOLEAN\t%s\t\t\t",
101-
(structToPrint->bool.reset_val==0) ?
101+
(structToPrint->_bool.reset_val==0) ?
102102
"FALSE" :"TRUE");
103103
break;
104104

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp