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
|
@pr $(FILES) ../lib/rec ../lib/incl Makefile
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
$(LINT) $(INCLUDES) $(CFILES)
|
$(LINT) $(INCLUDES) -DLIBDIR=$(LIBDIRSTR) $(CFILES)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f *.o LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch] parser
|
-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);
|
opentemp(f_input);
|
||||||
correct_prefix();
|
correct_prefix();
|
||||||
/* generate code ... */
|
/* generate code ... */
|
||||||
|
if (!firsts) fputs("#define LLNOFIRSTS\n", fpars);
|
||||||
if (ansi_c) fputs("#define LL_ANSI_C 1\n", fpars);
|
if (ansi_c) fputs("#define LL_ANSI_C 1\n", fpars);
|
||||||
fprintf(fpars, "#define LL_LEXI %s\n", lexical);
|
fprintf(fpars, "#define LL_LEXI %s\n", lexical);
|
||||||
copyfile(incl_file);
|
copyfile(incl_file);
|
||||||
|
@ -441,7 +442,6 @@ getansiparams(mkdef) {
|
||||||
* If a definition has to be produced, "mkdef" is set to 1.
|
* If a definition has to be produced, "mkdef" is set to 1.
|
||||||
*/
|
*/
|
||||||
register int l;
|
register int l;
|
||||||
char add_semi = ' ';
|
|
||||||
int delayed = 0;
|
int delayed = 0;
|
||||||
|
|
||||||
ltext[0] = '\0';
|
ltext[0] = '\0';
|
||||||
|
|
|
@ -35,9 +35,6 @@ extern comfatal();
|
||||||
extern copyfile();
|
extern copyfile();
|
||||||
extern install();
|
extern install();
|
||||||
extern char *mktemp();
|
extern char *mktemp();
|
||||||
# ifndef NDEBUG
|
|
||||||
extern badassertion();
|
|
||||||
# endif not NDEBUG
|
|
||||||
|
|
||||||
main(argc,argv) register string argv[]; {
|
main(argc,argv) register string argv[]; {
|
||||||
register string arg;
|
register string arg;
|
||||||
|
|
|
@ -9,6 +9,7 @@ LIBDIRSTR = \"$(LIBDIR)\"
|
||||||
DEFINES = -DNDEBUG
|
DEFINES = -DNDEBUG
|
||||||
CFLAGS = $(DEFINES) $(INCLUDES) $(COPTIONS)
|
CFLAGS = $(DEFINES) $(INCLUDES) $(COPTIONS)
|
||||||
LDFLAGS=$(LDOPTIONS)
|
LDFLAGS=$(LDOPTIONS)
|
||||||
|
LINTFLAGS=$(LINTOPTIONS) $(DEFINES) $(INCLUDES) -DNORCSID
|
||||||
|
|
||||||
LLOPT= # -vvv -x
|
LLOPT= # -vvv -x
|
||||||
|
|
||||||
|
@ -49,7 +50,7 @@ pr :
|
||||||
@pr $(FILES) $(SRC_HOME)/util/LLgen/lib/rec $(SRC_HOME)/util/LLgen/lib/incl
|
@pr $(FILES) $(SRC_HOME)/util/LLgen/lib/rec $(SRC_HOME)/util/LLgen/lib/incl
|
||||||
|
|
||||||
lint: parser
|
lint: parser
|
||||||
$(LINT) $(LINTFLAGS) $(INCLUDES) $(CFILES)
|
$(LINT) $(LINTFLAGS) -DLIBDIR=$(LIBDIRSTR) $(CFILES)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -f *.$(SUF) LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch] parser
|
-rm -f *.$(SUF) LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch] parser
|
||||||
|
|
Loading…
Reference in a new issue