mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
Remove parser::rhs_number_type.
* data/lalr1-fusion.cc (rhs_number_type): No longer define it. (yyrhs_): Use b4_table_define.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2008-11-04 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
Remove parser::rhs_number_type.
|
||||
* data/lalr1-fusion.cc (rhs_number_type): No longer define it.
|
||||
(yyrhs_): Use b4_table_define.
|
||||
|
||||
2008-11-04 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
Fix iteration type.
|
||||
|
||||
@@ -386,10 +386,8 @@ m4_ifdef([b4_stype],
|
||||
#endif
|
||||
|
||||
#if YYDEBUG
|
||||
/// A type to store symbol numbers and -1.
|
||||
typedef ]b4_int_type_for([b4_rhs])[ rhs_number_type;
|
||||
/// A `-1'-separated list of the rules' RHS.
|
||||
static const rhs_number_type yyrhs_[];
|
||||
static const ]b4_int_type_for([b4_rhs])[ yyrhs_[];
|
||||
/// For each rule, the index of the first RHS symbol in \a yyrhs_.
|
||||
static const ]b4_int_type_for([b4_prhs])[ yyprhs_[];
|
||||
/// For each rule, its source line number.
|
||||
@@ -1142,11 +1140,7 @@ b4_error_verbose_if([ tok])[)
|
||||
|
||||
#if YYDEBUG
|
||||
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
||||
const ]b4_parser_class_name[::rhs_number_type
|
||||
]b4_parser_class_name[::yyrhs_[] =
|
||||
{
|
||||
]b4_rhs[
|
||||
};
|
||||
]b4_table_define([rhs], [b4_rhs])[;
|
||||
|
||||
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
||||
YYRHS. */
|
||||
|
||||
Reference in New Issue
Block a user