mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53: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>
|
2008-11-04 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
Fix iteration type.
|
Fix iteration type.
|
||||||
|
|||||||
@@ -386,10 +386,8 @@ m4_ifdef([b4_stype],
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if YYDEBUG
|
#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.
|
/// 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_.
|
/// For each rule, the index of the first RHS symbol in \a yyrhs_.
|
||||||
static const ]b4_int_type_for([b4_prhs])[ yyprhs_[];
|
static const ]b4_int_type_for([b4_prhs])[ yyprhs_[];
|
||||||
/// For each rule, its source line number.
|
/// For each rule, its source line number.
|
||||||
@@ -1142,11 +1140,7 @@ b4_error_verbose_if([ tok])[)
|
|||||||
|
|
||||||
#if YYDEBUG
|
#if YYDEBUG
|
||||||
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
||||||
const ]b4_parser_class_name[::rhs_number_type
|
]b4_table_define([rhs], [b4_rhs])[;
|
||||||
]b4_parser_class_name[::yyrhs_[] =
|
|
||||||
{
|
|
||||||
]b4_rhs[
|
|
||||||
};
|
|
||||||
|
|
||||||
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
||||||
YYRHS. */
|
YYRHS. */
|
||||||
|
|||||||
Reference in New Issue
Block a user