Improved for lint
authorceriel <none@none>
Wed, 27 Nov 1991 13:38:51 +0000 (13:38 +0000)
committerceriel <none@none>
Wed, 27 Nov 1991 13:38:51 +0000 (13:38 +0000)
util/LLgen/src/Makefile
util/LLgen/src/gencode.c
util/LLgen/src/main.c
util/LLgen/src/proto.make

index 98f4b20..78a181a 100644 (file)
@@ -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
index c3e6248..d64091e 100644 (file)
@@ -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';
index eb49ccb..8d65ae1 100644 (file)
@@ -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;
index 4bc9aba..e666391 100644 (file)
@@ -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