From 505494c5608695e210b8b005c70deaf12b0f0ba7 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 27 Nov 1991 13:38:51 +0000 Subject: [PATCH] Improved for lint --- util/LLgen/src/Makefile | 2 +- util/LLgen/src/gencode.c | 2 +- util/LLgen/src/main.c | 3 --- util/LLgen/src/proto.make | 3 ++- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/util/LLgen/src/Makefile b/util/LLgen/src/Makefile index 98f4b20cc..78a181a7d 100644 --- a/util/LLgen/src/Makefile +++ b/util/LLgen/src/Makefile @@ -38,7 +38,7 @@ pr : @pr $(FILES) ../lib/rec ../lib/incl Makefile lint: - $(LINT) $(INCLUDES) $(CFILES) + $(LINT) $(INCLUDES) -DLIBDIR=$(LIBDIRSTR) $(CFILES) clean: -rm -f *.o LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch] parser diff --git a/util/LLgen/src/gencode.c b/util/LLgen/src/gencode.c index c3e6248ea..d64091eec 100644 --- a/util/LLgen/src/gencode.c +++ b/util/LLgen/src/gencode.c @@ -115,6 +115,7 @@ gencode(argc) { opentemp(f_input); correct_prefix(); /* generate code ... */ + if (!firsts) fputs("#define LLNOFIRSTS\n", fpars); if (ansi_c) fputs("#define LL_ANSI_C 1\n", fpars); fprintf(fpars, "#define LL_LEXI %s\n", lexical); copyfile(incl_file); @@ -441,7 +442,6 @@ getansiparams(mkdef) { * If a definition has to be produced, "mkdef" is set to 1. */ register int l; - char add_semi = ' '; int delayed = 0; ltext[0] = '\0'; diff --git a/util/LLgen/src/main.c b/util/LLgen/src/main.c index eb49ccbf5..8d65ae13a 100644 --- a/util/LLgen/src/main.c +++ b/util/LLgen/src/main.c @@ -35,9 +35,6 @@ extern comfatal(); extern copyfile(); extern install(); extern char *mktemp(); -# ifndef NDEBUG -extern badassertion(); -# endif not NDEBUG main(argc,argv) register string argv[]; { register string arg; diff --git a/util/LLgen/src/proto.make b/util/LLgen/src/proto.make index 4bc9aba3a..e66639182 100644 --- a/util/LLgen/src/proto.make +++ b/util/LLgen/src/proto.make @@ -9,6 +9,7 @@ LIBDIRSTR = \"$(LIBDIR)\" DEFINES = -DNDEBUG CFLAGS = $(DEFINES) $(INCLUDES) $(COPTIONS) LDFLAGS=$(LDOPTIONS) +LINTFLAGS=$(LINTOPTIONS) $(DEFINES) $(INCLUDES) -DNORCSID LLOPT= # -vvv -x @@ -49,7 +50,7 @@ pr : @pr $(FILES) $(SRC_HOME)/util/LLgen/lib/rec $(SRC_HOME)/util/LLgen/lib/incl lint: parser - $(LINT) $(LINTFLAGS) $(INCLUDES) $(CFILES) + $(LINT) $(LINTFLAGS) -DLIBDIR=$(LIBDIRSTR) $(CFILES) clean: -rm -f *.$(SUF) LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch] parser -- 2.34.1