From 922bdd7ffa913135a33ea9e54e5034cfc15e0436 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Tue, 28 Aug 2007 07:14:11 +0000 Subject: [PATCH] Spell "boolean" as "Boolean". Reported by Akim Demaille. * data/bison.m4 (b4_percent_define_flag_if): Fix complaint. * doc/bison.texinfo (Decl Summary): Fix. * src/muscle_tab.c (muscle_percent_define_flag_if): Fix complaint. * tests/input.at (Boolean %define variables): Update output. * tests/skeletons.at (%define boolean variables: invalid skeleton defaults): Rename to... (%define Boolean variables: invalid skeleton defaults): ... this and update output. --- ChangeLog | 12 ++++++++++++ data/bison.m4 | 2 +- doc/bison.texinfo | 2 +- src/muscle_tab.c | 2 +- tests/input.at | 2 +- tests/skeletons.at | 6 +++--- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 41991308..8c98e8f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2007-08-28 Joel E. Denny + + Spell "boolean" as "Boolean". Reported by Akim Demaille. + * data/bison.m4 (b4_percent_define_flag_if): Fix complaint. + * doc/bison.texinfo (Decl Summary): Fix. + * src/muscle_tab.c (muscle_percent_define_flag_if): Fix complaint. + * tests/input.at (Boolean %define variables): Update output. + * tests/skeletons.at (%define boolean variables: invalid skeleton + defaults): Rename to... + (%define Boolean variables: invalid skeleton defaults): ... this and + update output. + 2007-08-17 Joel E. Denny In impure push mode, don't allow more than one yypstate to be allocated diff --git a/data/bison.m4 b/data/bison.m4 index b0f523f7..332aa7bc 100644 --- a/data/bison.m4 +++ b/data/bison.m4 @@ -381,7 +381,7 @@ m4_define([b4_percent_define_flag_if], [m4_expand_once([dnl m4_pushdef([b4_loc], m4_indir([b4_percent_define_loc(]$1[)]))dnl b4_complain_at(b4_loc, - [[invalid value for %%define boolean variable `%s']], + [[invalid value for %%define Boolean variable `%s']], [$1])dnl m4_popdef([b4_loc])], [[b4_percent_define_flag_if($1)]])])], diff --git a/doc/bison.texinfo b/doc/bison.texinfo index ab3a6a8a..675c27c2 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -4816,7 +4816,7 @@ Bison will warn if a @var{variable} is defined multiple times. Omitting @code{"@var{value}"} is always equivalent to specifying it as @code{""}. -Some @var{variable}s may be used as booleans. +Some @var{variable}s may be used as Booleans. In this case, Bison will complain if the variable definition does not meet one of the following four conditions: diff --git a/src/muscle_tab.c b/src/muscle_tab.c index dfa299b7..01f80dc4 100644 --- a/src/muscle_tab.c +++ b/src/muscle_tab.c @@ -479,7 +479,7 @@ muscle_percent_define_flag_if (char const *variable) { muscle_insert (invalid_boolean_name, ""); complain_at(muscle_location_decode (loc_name), - _("invalid value for %%define boolean variable `%s'"), + _("invalid value for %%define Boolean variable `%s'"), variable); } free (value); diff --git a/tests/input.at b/tests/input.at index 6aeb258c..48e27ac1 100644 --- a/tests/input.at +++ b/tests/input.at @@ -836,7 +836,7 @@ start: ; ]]) AT_CHECK([[bison Input.y]], [1], [], -[[Input.y:2.9-14: invalid value for %define boolean variable `public' +[[Input.y:2.9-14: invalid value for %define Boolean variable `public' ]]) AT_CLEANUP diff --git a/tests/skeletons.at b/tests/skeletons.at index 0e121d5a..c08ccd81 100644 --- a/tests/skeletons.at +++ b/tests/skeletons.at @@ -142,10 +142,10 @@ AT_CLEANUP ## ------------------------------------------------------ ## -## %define boolean variables: invalid skeleton defaults. ## +## %define Boolean variables: invalid skeleton defaults. ## ## ------------------------------------------------------ ## -AT_SETUP([[%define boolean variables: invalid skeleton defaults]]) +AT_SETUP([[%define Boolean variables: invalid skeleton defaults]]) AT_CHECK([[mkdir tmp]]) @@ -161,7 +161,7 @@ start: ; ]]) AT_CHECK([[bison input.y]], [[1]], [[]], -[[[Bison:b4_percent_define_default]:0.0: invalid value for %define boolean variable `foo' +[[[Bison:b4_percent_define_default]:0.0: invalid value for %define Boolean variable `foo' ]]) AT_CLEANUP -- 2.45.2