summaryrefslogtreecommitdiff
path: root/data/c++.m4
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-04-14 14:42:15 +0200
committerAkim Demaille <akim@lrde.epita.fr>2013-04-15 10:57:19 +0200
commitc53b6848897960bc783afdbc230e1a247977d63d (patch)
treefcffea180f85890d3536b4f60595d85b94f5c4c7 /data/c++.m4
parent5fad4d4f094e866b211302f01d556b3bc93350be (diff)
downloadbison-c53b6848897960bc783afdbc230e1a247977d63d.tar.gz
muscle: enforce definition syntax for keyword variables
* src/muscle-tab.c (muscle_percent_define_get_kind) (muscle_percent_define_check_kind): New. (muscle_percent_define_default): Variables with a default value are of "keyword" kind. (muscle_percent_define_flag_if, muscle_percent_define_check_values): Check that the variable is of keyword kind. * data/bison.m4: Likewise, but in M4. That is to say... (b4_percent_define_default): Define the kind when the variable is undefined. (b4_percent_define_check_kind): Use a better error message. (_b4_percent_define_check_values, _b4_percent_define_check_values): Former "enum" variables should be defined using the keyword syntax. * doc/bison.texi: Update. A couple of fixes. * tests/input.at (%define keyword variables): New.
Diffstat (limited to 'data/c++.m4')
0 files changed, 0 insertions, 0 deletions