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.
This commit is contained in:
Joel E. Denny
2007-08-28 07:14:11 +00:00
parent 1b17b01d0f
commit 922bdd7ffa
6 changed files with 19 additions and 7 deletions

View File

@@ -1,3 +1,15 @@
2007-08-28 Joel E. Denny <jdenny@ces.clemson.edu>
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 <jdenny@ces.clemson.edu> 2007-08-17 Joel E. Denny <jdenny@ces.clemson.edu>
In impure push mode, don't allow more than one yypstate to be allocated In impure push mode, don't allow more than one yypstate to be allocated

View File

@@ -381,7 +381,7 @@ m4_define([b4_percent_define_flag_if],
[m4_expand_once([dnl [m4_expand_once([dnl
m4_pushdef([b4_loc], m4_indir([b4_percent_define_loc(]$1[)]))dnl m4_pushdef([b4_loc], m4_indir([b4_percent_define_loc(]$1[)]))dnl
b4_complain_at(b4_loc, b4_complain_at(b4_loc,
[[invalid value for %%define boolean variable `%s']], [[invalid value for %%define Boolean variable `%s']],
[$1])dnl [$1])dnl
m4_popdef([b4_loc])], m4_popdef([b4_loc])],
[[b4_percent_define_flag_if($1)]])])], [[b4_percent_define_flag_if($1)]])])],

View File

@@ -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 Omitting @code{"@var{value}"} is always equivalent to specifying it as
@code{""}. @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 In this case, Bison will complain if the variable definition does not meet one
of the following four conditions: of the following four conditions:

View File

@@ -479,7 +479,7 @@ muscle_percent_define_flag_if (char const *variable)
{ {
muscle_insert (invalid_boolean_name, ""); muscle_insert (invalid_boolean_name, "");
complain_at(muscle_location_decode (loc_name), complain_at(muscle_location_decode (loc_name),
_("invalid value for %%define boolean variable `%s'"), _("invalid value for %%define Boolean variable `%s'"),
variable); variable);
} }
free (value); free (value);

View File

@@ -836,7 +836,7 @@ start: ;
]]) ]])
AT_CHECK([[bison Input.y]], [1], [], 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 AT_CLEANUP

View File

@@ -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]]) AT_CHECK([[mkdir tmp]])
@@ -161,7 +161,7 @@ start: ;
]]) ]])
AT_CHECK([[bison input.y]], [[1]], [[]], 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 AT_CLEANUP