From: Akim Demaille Date: Thu, 28 Aug 2008 09:50:09 +0000 (+0200) Subject: Define make_symbol in the header. X-Git-Tag: v2.7.90~1054 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2c086d295967986a261ef6c2729b9edb62aac451 Define make_symbol in the header. To reach good performances these functions should be inlined (yet this is to measure precisely). To this end they must be available to the caller. * data/lalr1.cc (b4_symbol_constructor_definition_): Qualify location_type with the class name. Since will now be output in the header, declare "inline". No longer use b4_symbol_constructor_specializations, but b4_symbol_constructor_definitions in the header. Don't call it in the *.cc file. --- diff --git a/ChangeLog b/ChangeLog index 5b1046b7..a9c41f26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2008-11-13 Akim Demaille + + Define make_symbol in the header. + To reach good performances these functions should be inlined (yet this is + to measure precisely). To this end they must be available to the caller. + + * data/lalr1.cc (b4_symbol_constructor_definition_): Qualify + location_type with the class name. + Since will now be output in the header, declare "inline". + No longer use b4_symbol_constructor_specializations, but + b4_symbol_constructor_definitions in the header. + Don't call it in the *.cc file. + 2008-11-13 Akim Demaille Define yytranslate in the header for lex_symbol. diff --git a/data/lalr1.cc b/data/lalr1.cc index d2c33a14..2e9259c2 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -877,6 +877,7 @@ m4_ifdef([b4_stype], ]b4_lex_symbol_if([b4_yytranslate_definition])[ ]b4_symbol_constructor_specializations[ +]b4_lex_symbol_if([b4_symbol_constructor_definitions])[ ]b4_namespace_close[ ]b4_percent_define_flag_if([[global_tokens_and_yystype]], @@ -1026,7 +1027,7 @@ b4_percent_code_get[]dnl | Symbol types. | `---------------*/ -]b4_symbol_constructor_definitions[ +]b4_lex_symbol_if([], [b4_symbol_constructor_definitions])[ // stack_symbol_type. ]b4_parser_class_name[::stack_symbol_type::stack_symbol_type ()