fixed two preprocessing bugs
This commit is contained in:
parent
c7fc857c2d
commit
7536a1f510
2 changed files with 9 additions and 1 deletions
|
@ -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…
Reference in a new issue