fixed two preprocessing bugs
This commit is contained in:
parent
c7fc857c2d
commit
7536a1f510
@ -147,7 +147,11 @@ firstline:
|
||||
return ptok->tk_symb = EOI;
|
||||
|
||||
while ((ch = GetChar()),
|
||||
(ch == '#' || ch == '/' || class(ch) == STSKIP)) {
|
||||
(ch == '#'
|
||||
#ifndef NOPP
|
||||
|| ch == '/'
|
||||
#endif
|
||||
|| class(ch) == STSKIP)) {
|
||||
/* blanks are allowed before hashes */
|
||||
if (ch == '#') {
|
||||
/* a control line follows */
|
||||
|
||||
@ -435,6 +435,10 @@ a_new_line: ch = GetChar();
|
||||
|
||||
if (ch == '#') {
|
||||
domacro();
|
||||
/* Clear File_Inserted since domacro could
|
||||
* be called again, which calls GetToken().
|
||||
*/
|
||||
File_Inserted = 0;
|
||||
goto a_new_line;
|
||||
} else if (ch == EOI) {
|
||||
lexerror("unterminated macro call");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user