mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
Update some comments to make sense for -D.
* data/bison.m4 (b4_check_user_names): In header comments, say
"user occurrence" instead of "grammar occurrence".
* src/muscle-tab.h (muscle_percent_define_insert): Likewise.
(muscle_percent_code_grow): Likewise just for consistency.
(cherry picked from commit 246c4efafe)
Conflicts:
src/muscle-tab.h
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2009-05-22 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
Update some comments to make sense for -D.
|
||||||
|
* data/bison.m4 (b4_check_user_names): In header comments, say
|
||||||
|
"user occurrence" instead of "grammar occurrence".
|
||||||
|
* src/muscle-tab.h (muscle_percent_define_insert): Likewise.
|
||||||
|
(muscle_percent_code_grow): Likewise just for consistency.
|
||||||
|
|
||||||
2009-05-20 Joel E. Denny <jdenny@ces.clemson.edu>
|
2009-05-20 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
* data/c++.m4 (b4_namespace_close): Simplify slightly.
|
* data/c++.m4 (b4_namespace_close): Simplify slightly.
|
||||||
|
|||||||
@@ -506,8 +506,8 @@ b4_define_user_code([stype])
|
|||||||
# but is not used by Bison (as recorded by macros in the namespace
|
# but is not used by Bison (as recorded by macros in the namespace
|
||||||
# BISON-NAMESPACE).
|
# BISON-NAMESPACE).
|
||||||
#
|
#
|
||||||
# USER-LIST must expand to a list specifying all grammar occurrences of all
|
# USER-LIST must expand to a list specifying all user occurrences of all names
|
||||||
# names of type WHAT. Each item in the list must be a triplet specifying one
|
# of type WHAT. Each item in the list must be a triplet specifying one
|
||||||
# occurrence: name, start boundary, and end boundary. Empty string names are
|
# occurrence: name, start boundary, and end boundary. Empty string names are
|
||||||
# fine. An empty list is fine.
|
# fine. An empty list is fine.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -127,9 +127,9 @@ void muscle_user_name_list_grow (char const *key, char const *user_name,
|
|||||||
location loc);
|
location loc);
|
||||||
|
|
||||||
/* Define the muscle for the %define variable VARIABLE appearing at
|
/* Define the muscle for the %define variable VARIABLE appearing at
|
||||||
VARIABLE_LOC in the grammar file with value VALUE. Warn if VARIABLE is
|
VARIABLE_LOC with value VALUE. Warn if VARIABLE is already defined.
|
||||||
already defined. Record this as a grammar occurrence of VARIABLE by
|
Record this as a user occurrence of VARIABLE by invoking
|
||||||
invoking muscle_user_name_list_grow. */
|
muscle_user_name_list_grow. */
|
||||||
void muscle_percent_define_insert (char const *variable, location variable_loc,
|
void muscle_percent_define_insert (char const *variable, location variable_loc,
|
||||||
char const *value);
|
char const *value);
|
||||||
|
|
||||||
@@ -196,9 +196,10 @@ void muscle_percent_define_default (char const *variable, char const *value);
|
|||||||
output. */
|
output. */
|
||||||
void muscle_percent_define_check_values (char const * const *values);
|
void muscle_percent_define_check_values (char const * const *values);
|
||||||
|
|
||||||
/* Grow the muscle for the %code qualifier QUALIFIER appearing at QUALIFIER_LOC
|
/* Grow the muscle for the %code qualifier QUALIFIER appearing at
|
||||||
in the grammar file with code CODE appearing at CODE_LOC. Record this as a
|
QUALIFIER_LOC with code CODE appearing at CODE_LOC. Record this as a
|
||||||
grammar occurrence of VARIABLE by invoking muscle_user_name_list_grow. */
|
user occurrence of QUALIFIER by invoking
|
||||||
|
muscle_user_name_list_grow. */
|
||||||
void muscle_percent_code_grow (char const *qualifier, location qualifier_loc,
|
void muscle_percent_code_grow (char const *qualifier, location qualifier_loc,
|
||||||
char const *code, location code_loc);
|
char const *code, location code_loc);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user