fixed two preprocessing bugs

This commit is contained in:
eck 1990-11-13 16:50:55 +00:00
parent c7fc857c2d
commit 7536a1f510
2 changed files with 9 additions and 1 deletions

View file

@ -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 */

View file

@ -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");