makedefs build on non-C99 compilers

..\util\makedefs.c(426) : error C2143: syntax error : missing ';' before 'type'
..\util\makedefs.c(427) : error C2065: 'p' : undeclared identifier
..\util\makedefs.c(428) : error C2065: 'p' : undeclared identifier
This commit is contained in:
nethack.allison
2008-05-13 11:38:46 +00:00
parent d5ca34a45b
commit 3a75bf5ab7

View File

@@ -422,8 +422,8 @@ do_ext_makedefs(int argc, char **argv){
CONTINUE;
}
IS_OPTION("grep-define"){
CONSUME;
struct grep_var *p = grepsearch(argv[0]);
CONSUME;
if(p){
p->is_defined = 1;
} else {
@@ -433,8 +433,8 @@ do_ext_makedefs(int argc, char **argv){
CONTINUE;
}
IS_OPTION("grep-undef"){
CONSUME;
struct grep_var *p = grepsearch(argv[0]);
CONSUME;
if(p){
p->is_defined = 0;
} else {