bug fix: #if defined(...) did not work properly
This commit is contained in:
parent
018558cb9e
commit
b5135607b4
1 changed files with 13 additions and 6 deletions
|
@ -76,31 +76,38 @@ replace(idef)
|
|||
}
|
||||
if (mac->mc_flag & FUNC) {
|
||||
struct idf *param;
|
||||
extern struct idf *GetIdentifier();
|
||||
char *nam;
|
||||
extern char *GetIdentifier();
|
||||
extern struct idf *str2idf();
|
||||
|
||||
UnknownIdIsZero = 0;
|
||||
param = GetIdentifier();
|
||||
nam = GetIdentifier();
|
||||
if (nam) {
|
||||
param = findidf(nam);
|
||||
}
|
||||
else param = 0;
|
||||
UnknownIdIsZero = 1;
|
||||
if (c == '(') {
|
||||
LoadChar(c);
|
||||
c = skipspaces(c, 0);
|
||||
if (c != ')') error(") missing");
|
||||
}
|
||||
if (! param) {
|
||||
if (! nam) {
|
||||
error("identifier missing");
|
||||
}
|
||||
repl = new_mlist();
|
||||
if (param && param->id_macro)
|
||||
reptext = "1";
|
||||
reptext = "1 ";
|
||||
else
|
||||
reptext = "0";
|
||||
InsertText(reptext, 1);
|
||||
reptext = "0 ";
|
||||
InsertText(reptext, 2);
|
||||
InputLevel++;
|
||||
repl->m_level = InputLevel;
|
||||
|
||||
repl->next = ReplList;
|
||||
ReplList = repl;
|
||||
repl->m_mac = mac;
|
||||
if (nam) free(nam);
|
||||
return 1;
|
||||
}
|
||||
actpars = getactuals(idef); /* get act.param. list */
|
||||
|
|
Loading…
Reference in a new issue