errors: factor b4_error @directives
authorTheophile Ranquet <theophile.ranquet@gmail.com>
Thu, 4 Oct 2012 10:35:41 +0000 (10:35 +0000)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 4 Oct 2012 15:13:38 +0000 (17:13 +0200)
commit0505df0cbae4065b17f3fb6953c68f87217e7ea2
treececee7c7df687db1c8e2fdbfab5d46930cb437d7
parentb999409e09db9adfbc7a80569c4e7a8cb0587adf
errors: factor b4_error @directives

Instead of @complain, @warn, and @fatal, use a unique @complain
directive. This directive's first argument is "complain", "warn", etc.

* data/bison.m4 (m4_error): Here.
* src/scan-skel.l (at_directive_perform): Adjust.
(flag): Replace the switch by safer and more explicit if branches.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
data/bison.m4
src/scan-skel.l