misplaced C variable declaration in current code

options.c
..\src\options.c(4072) : error C2275: 'boolean' :
	illegal use of this type as an expression
        c:\personal\nhdev\350\test\include\global.h(56) :
	see declaration of 'boolean'
..\src\options.c(4072) : error C2146: syntax error :
	missing ';' before identifier 'found'
..\src\options.c(4072) : error C2065: 'found' : undeclared identifier
..\src\options.c(4072) : error C2065: 'numeric' : undeclared identifier
..\src\options.c(4077) : error C2065: 'found' : undeclared identifier
..\src\options.c(4088) : error C2065: 'numeric' : undeclared identifier
..\src\options.c(4090) : error C2065: 'found' : undeclared identifier
..\src\options.c(4090) : error C2065: 'numeric' : undeclared identifier
This commit is contained in:
nethack.allison
2008-10-18 12:40:06 +00:00
parent 6202d5971e
commit 332abb07aa

View File

@@ -4059,6 +4059,8 @@ char *str;
* 0 is an error.
*/
if (user_specified) {
boolean found = FALSE, numeric = FALSE;
/* force fruit to be singular; this handling is not
needed--or wanted--for fruits from bones because
they already received it in their original game */
@@ -4069,8 +4071,6 @@ char *str;
* to tell the difference)
*/
boolean found = FALSE, numeric = FALSE;
for (i = bases[FOOD_CLASS]; objects[i].oc_class == FOOD_CLASS;
i++) {
if (!strcmp(OBJ_NAME(objects[i]), pl_fruit)) {