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
|
# What parser generator to use and how
|
||||||
GEN = $(EMHOME)/bin/LLgen
|
GEN = $(EMHOME)/bin/LLgen
|
||||||
GENOPTIONS = -vvvx
|
GENOPTIONS = #-vvvx
|
||||||
|
|
||||||
# tabgen
|
# tabgen
|
||||||
TABGEN = $(EMHOME)/bin/tabgen
|
TABGEN = $(EMHOME)/bin/tabgen
|
||||||
|
|
|
@ -720,19 +720,15 @@ domacro()
|
||||||
|
|
||||||
EoiForNewline = 1;
|
EoiForNewline = 1;
|
||||||
if ((tok = GetToken(&tk)) == IDENTIFIER) {
|
if ((tok = GetToken(&tk)) == IDENTIFIER) {
|
||||||
if (! strcmp(tk.tk_idf->id_text, "line")) {
|
if (! strcmp(tk.tk_idf->id_text, "pragma")) {
|
||||||
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")) {
|
|
||||||
do_pragma();
|
do_pragma();
|
||||||
EoiForNewline = 0;
|
EoiForNewline = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (tok == INTEGER) {
|
||||||
|
do_line((unsigned int) tk.tk_ival);
|
||||||
|
EoiForNewline = 0;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
error("illegal # line");
|
error("illegal # line");
|
||||||
EoiForNewline = 0;
|
EoiForNewline = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue