version 1.26, 2001/05/29 12:53:39 |
version 1.27, 2002/04/17 16:45:02 |
|
|
/* This is the one case where we can definitely proclaim a fatal |
/* This is the one case where we can definitely proclaim a fatal |
* error. If we don't, we're hosed. */ |
* error. If we don't, we're hosed. */ |
Parse_Error(PARSE_FATAL, "Too many nested if's. %d max.", MAXIF); |
Parse_Error(PARSE_FATAL, "Too many nested if's. %d max.", MAXIF); |
|
condTop = 0; |
return COND_INVALID; |
return COND_INVALID; |
} else { |
} else { |
condStack[condTop].value = value; |
condStack[condTop].value = value; |
|
|
int i; |
int i; |
|
|
if (condTop != MAXIF) { |
if (condTop != MAXIF) { |
Parse_Error(PARSE_FATAL, "%d open conditional%s", MAXIF-condTop, |
Parse_Error(PARSE_FATAL, "%s%d open conditional%s", |
MAXIF-condTop == 1 ? "" : "s"); |
condTop == 0 ? "at least ": "", MAXIF-condTop, |
|
MAXIF-condTop == 1 ? "" : "s"); |
for (i = MAXIF-1; i >= condTop; i--) { |
for (i = MAXIF-1; i >= condTop; i--) { |
fprintf(stderr, "\t at line %lu of %s\n", condStack[i].lineno, |
fprintf(stderr, "\t at line %lu of %s\n", condStack[i].lineno, |
condStack[i].filename); |
condStack[i].filename); |