Skip to content

Commit 87f66ef

Browse files
authored
Avoid use of bool as a variable name for C23 (#12)
1 parent 923fda9 commit 87f66ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fplsa4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7010,21 +7010,21 @@ void ReadAndProcessStringsFromFile(void (*proc_func)(char *str), FILE *inf,
70107010
int ReadBooleanFromFile(FILE *file)
70117011
{
70127012
short c;
7013-
int bool;
7013+
int boolvar;
70147014
c = fgetc(file);
70157015
switch(c)
70167016
{
70177017
case 'Y': case 'y':
7018-
bool = YES;
7018+
boolvar = YES;
70197019
break;
70207020
case 'N': case 'n':
7021-
bool = NO;
7021+
boolvar = NO;
70227022
break;
70237023
}
70247024
while(!isspace(c = fgetc(file)) && c != EOF)
70257025
;
70267026
ungetc(c, file);
7027-
return bool;
7027+
return boolvar;
70287028
}
70297029
/*=ReadCaseFromFile=====================================
70307030
*/

0 commit comments

Comments
 (0)