fixed two preprocessing bugs

This commit is contained in:
eck 1990-11-13 16:50:55 +00:00
parent 8f35c7c6ab
commit b6b4ed47f4
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");