improved error reporting, added -DNON_CORRECTING

This commit is contained in:
ceriel 1997-02-21 15:44:44 +00:00
parent 664d3fc8d3
commit 8ea5d257c4
2 changed files with 10 additions and 1 deletions

View file

@ -6,7 +6,7 @@ SRC_DIR = $(SRC_HOME)/util/LLgen/src
LIBDIR = $(TARGET_HOME)/lib/LLgen
INCLUDES = -I$(SRC_DIR) -I.
LIBDIRSTR = \"$(LIBDIR)\"
DEFINES = -DNDEBUG
DEFINES = -DNDEBUG -DNON_CORRECTING
CFLAGS = $(DEFINES) $(INCLUDES) $(COPTIONS)
LDFLAGS=$(LDOPTIONS)
LINTFLAGS=$(LINTOPTIONS) $(DEFINES) $(INCLUDES) -DNORCSID

View file

@ -501,6 +501,15 @@ cpy(s,p,inserted) register string p; {
}
t = "literal";
break;
case C_ACTION:
t = "C action";
break;
case C_PARAMS:
t = "C parameter section";
break;
case C_EXPR:
t = "C expression";
break;
case EOFILE :
t = "end-of-file";
break;