errors: support indented context info in m4 macros
authorTheophile Ranquet <theophile.ranquet@gmail.com>
Thu, 4 Oct 2012 10:35:42 +0000 (10:35 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 4 Oct 2012 15:13:38 +0000 (17:13 +0200)
commitc6c8de1609da38a4ffb6dbed8047491d85d57e3d
tree5e2c24403b579a1f74b54bc5d9d439d24da6497b
parent0505df0cbae4065b17f3fb6953c68f87217e7ea2
errors: support indented context info in m4 macros

* TODO: Address the issue, so remove it.
* data/bison.m4: Use b4_error with [[note]] rather than a complain_at
for context information.
* src/complain.c (complain_args): Take an additional argument, an
indentation pointer, to allow the dispatching of context information.
* src/complain.h (complain_args): Adjust prototype.
* src/scan-skel.l (at_directive_perform): Recognize the new @note mark.
* tests/input.at: Adjust.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
TODO
data/bison.m4
src/complain.c
src/complain.h
src/scan-skel.l
tests/input.at