improved domacro when NOPP defined
This commit is contained in:
parent
8740dcc72e
commit
9286928275
2 changed files with 6 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue