version 1.41, 2009/11/11 00:12:10 |
version 1.42, 2010/04/25 13:59:53 |
|
|
while (*cp == ' ' || *cp == '\t') |
while (*cp == ' ' || *cp == '\t') |
cp++; |
cp++; |
if (parens && *cp != ')') { |
if (parens && *cp != ')') { |
Parse_Error(PARSE_WARNING, |
Parse_Error(PARSE_WARNING, |
"Missing closing parenthesis for %s()", func); |
"Missing closing parenthesis for %s()", func); |
return false; |
return false; |
} else if (parens) |
} else if (parens) |
|
|
if (*cp == '$') { |
if (*cp == '$') { |
size_t len; |
size_t len; |
|
|
if (Var_ParseBuffer(&buf, cp, NULL, doEval, |
if (Var_ParseBuffer(&buf, cp, NULL, doEval, |
&len)) { |
&len)) { |
cp += len; |
cp += len; |
continue; |
continue; |
|
|
|
|
condExpr += 5; |
condExpr += 5; |
|
|
for (arglen = 0; condExpr[arglen] != '(' && |
for (arglen = 0; condExpr[arglen] != '(' && |
condExpr[arglen] != '\0';) |
condExpr[arglen] != '\0';) |
arglen++; |
arglen++; |
|
|
|
|
if (condTop < 0) { |
if (condTop < 0) { |
/* 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.", |
Parse_Error(PARSE_FATAL, "Too many nested if's. %d max.", |
MAXIF); |
MAXIF); |
condTop = 0; |
condTop = 0; |
return COND_INVALID; |
return COND_INVALID; |
|
|
condTop == 0 ? "at least ": "", MAXIF-condTop, |
condTop == 0 ? "at least ": "", MAXIF-condTop, |
MAXIF-condTop == 1 ? "" : "s"); |
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", |
fprintf(stderr, "\t at line %lu of %s\n", |
condStack[i].lineno, condStack[i].filename); |
condStack[i].lineno, condStack[i].filename); |
} |
} |
} |
} |