Fix some error-reporting macro bugs.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 8 Oct 2007 01:53:08 +0000 (01:53 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 8 Oct 2007 01:53:08 +0000 (01:53 +0000)
commit7dc4a6940c964d3650fecc6a0c99d8e191517086
tree781da08d454efe4e4ffcb37a9e87d4ac3b7f9e98
parentd4bd22956952464408f6d1c7aa3f82fd60f9f17d
Fix some error-reporting macro bugs.
* data/bison.m4 (b4_cat): New.
(b4_error, b4_error_at): Use b4_cat to send error directives directly
to stdout so they don't become arguments to other macros.  Update
comments and add examples.
(b4_warn, b4_warn_at, b4_complain, b4_complain_at): Update comments and
add examples.
(b4_fatal, b4_fatal_at): Likewise, and invoke m4_exit(1) immediately
after printing the error directive so that M4 doesn't report subsequent
problems that are induced by this problem.
* src/scan-skel.l: Recognize @` digraph outside of directive arguments
instead of just in them.  Recognize @\n in both places.  Both expand to
the empty string.  Needed by b4_cat.
* tests/skeletons.at (Complaining during macro argument expansion):
New test case.
(Fatal errors make M4 exit immediately): New test case.
ChangeLog
data/bison.m4
src/scan-skel.l
tests/skeletons.at