Under the -M option, identifiers were sometimes truncated
This commit is contained in:
parent
e4d7651f02
commit
cba0bbac02
1 changed files with 10 additions and 3 deletions
|
@ -222,15 +222,22 @@ preprocess(fn)
|
||||||
if (tg < maxpos) {
|
if (tg < maxpos) {
|
||||||
cpy;
|
cpy;
|
||||||
}
|
}
|
||||||
|
else break;
|
||||||
load;
|
load;
|
||||||
}
|
}
|
||||||
endidf:
|
endidf:
|
||||||
PushBack();
|
PushBack();
|
||||||
*tg = '\0'; /* mark the end of the identifier */
|
*tg = '\0'; /* mark the end of the identifier */
|
||||||
idef = findidf(buf);
|
idef = findidf(buf);
|
||||||
if ((idef && idef->id_macro && replace(idef))) {
|
if (idef && idef->id_macro) {
|
||||||
LoadChar(c);
|
do {
|
||||||
continue;
|
LoadChar(c);
|
||||||
|
} while (in_idf(c));
|
||||||
|
PushBack();
|
||||||
|
if (replace(idef)) {
|
||||||
|
LoadChar(c);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
nomac:
|
nomac:
|
||||||
*tg = 0;
|
*tg = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue