Improved for lint
This commit is contained in:
parent
35260bae58
commit
505494c560
4 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue