improved domacro when NOPP defined

This commit is contained in:
eck 1989-10-24 15:02:02 +00:00
parent 8740dcc72e
commit 9286928275
2 changed files with 6 additions and 10 deletions

View file

@ -56,7 +56,7 @@ COPTIONS =
# What parser generator to use and how
GEN = $(EMHOME)/bin/LLgen
GENOPTIONS = -vvvx
GENOPTIONS = #-vvvx
# tabgen
TABGEN = $(EMHOME)/bin/tabgen

View file

@ -720,19 +720,15 @@ domacro()
EoiForNewline = 1;
if ((tok = GetToken(&tk)) == IDENTIFIER) {
if (! strcmp(tk.tk_idf->id_text, "line")) {
tok = GetToken(&tk);
if (tok == INTEGER) {
do_line((unsigned int) tk.tk_ival);
EoiForNewline = 0;
return;
}
}
else if (! strcmp(tk.tk_idf->id_text, "pragma")) {
if (! strcmp(tk.tk_idf->id_text, "pragma")) {
do_pragma();
EoiForNewline = 0;
return;
}
} else if (tok == INTEGER) {
do_line((unsigned int) tk.tk_ival);
EoiForNewline = 0;
return;
}
error("illegal # line");
EoiForNewline = 0;