]> git.saurik.com Git - bison.git/commit
Warn about output files that are generated by the skeletons and that
authorJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 10 Dec 2006 00:16:15 +0000 (00:16 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 10 Dec 2006 00:16:15 +0000 (00:16 +0000)
commit3f7ca628535da8ee4296061580cc9a944bcf4ab4
treec66812740b36a0bcab48ee2ed4ae82b2d86702e3
parent178e123eec54fc49bfaf4997f7d328c072fd68b6
Warn about output files that are generated by the skeletons and that
conflict with other output files.
* data/glr.c: Don't generate the header file here when glr.cc does.
* src/files.c (file_names, file_names_count): New static globals.
(compute_output_file_names): Invoke output_file_name_check for files
not generated by the skeletons and remove existing checks.
(output_file_name_check): New function that warns about conflicting
output file names.
(output_file_names_free): Free file_names.
* src/files.h (output_file_name_check): Declare.
* src/scan-skel.l: Invoke output_file_name_check for files generated by
the skeletons.
* tests/output.at (AT_CHECK_CONFLICTING_OUTPUT): New.
(Conflicting output files): New tests.
ChangeLog
data/glr.c
src/files.c
src/files.h
src/scan-skel.l
tests/output.at