From 4bacebab18645b6050ea75d1d3f14468a2e14da8 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 16 Nov 1988 10:43:15 +0000 Subject: [PATCH] Use tabgen, so deleted chtab.c --- util/cpp/.distr | 1 - util/cpp/Makefile | 11 ++++------- util/cpp/char.tab | 5 +++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/util/cpp/.distr b/util/cpp/.distr index 48a019fc7..7815b2be4 100644 --- a/util/cpp/.distr +++ b/util/cpp/.distr @@ -7,7 +7,6 @@ bits.h ch7bin.c ch7mon.c char.tab -chtab.c class.h domacro.c error.c diff --git a/util/cpp/Makefile b/util/cpp/Makefile index 783257efd..77a1814db 100644 --- a/util/cpp/Makefile +++ b/util/cpp/Makefile @@ -50,7 +50,7 @@ COBJ = LLlex.o LLmessage.o ch7bin.o ch7mon.o domacro.o \ PRFILES = Makefile Parameters \ make.hfiles make.tokcase make.tokfile LLlex.h bits.h file_info.h \ idf.h input.h interface.h macro.h \ - class.h chtab.c char.tab expression.g $(CSRC) + class.h char.tab expression.g $(CSRC) # Objects of other generated C files GOBJ = char.o symbol2str.o @@ -77,8 +77,8 @@ hfiles: Parameters char.c charoffset.h ./make.hfiles Parameters @touch hfiles -charoffset.h char.c: chtab char.tab - chtab -fchar.tab > char.c +charoffset.h char.c: char.tab + $(EMHOME)/bin/tabgen -fchar.tab > char.c LLfiles: $(LSRC) $(GEN) $(GENOPTIONS) $(LSRC) @@ -90,9 +90,6 @@ tokenfile.g: tokenname.c make.tokfile symbol2str.c: tokenname.c make.tokcase symbol2str.c -chtab: chtab.o - $(CC) -o chtab chtab.o - # Objects needed for 'cpp' OBJ = $(COBJ) $(LOBJ) $(GOBJ) SRC = $(CSRC) $(LCSRC) $(GSRC) @@ -138,7 +135,7 @@ lint: cfiles lint -bx $(CDEFS) $(SRC) >lint.out clean: - rm -f $(LCSRC) $(OBJ) $(GENERATED) $(GSRC) $(GHSRC) chtab.o chtab cpp Out + rm -f $(LCSRC) $(OBJ) $(GENERATED) $(GSRC) $(GHSRC) cpp Out #AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO LLlex.o: LLlex.h diff --git a/util/cpp/char.tab b/util/cpp/char.tab index 82e52e38e..ce3460aa7 100644 --- a/util/cpp/char.tab +++ b/util/cpp/char.tab @@ -3,11 +3,12 @@ % % some general settings: %F %s, +%H +%S257 % % START OF TOKEN % -%C -STGARB:\000-\377 +%iSTGARB STSKIP:\r \t\f\013 STNL:\n STCOMP:!&<=>| -- 2.34.1