]> git.saurik.com Git - bison.git/commitdiff
Define make_symbol in the header.
authorAkim Demaille <demaille@gostai.com>
Thu, 28 Aug 2008 09:50:09 +0000 (11:50 +0200)
committerAkim Demaille <demaille@gostai.com>
Thu, 13 Nov 2008 05:48:22 +0000 (06:48 +0100)
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.

ChangeLog
data/lalr1.cc

index 5b1046b7a1ff2e0d9a6f2e28cb59a0a113dac52b..a9c41f2634216c285e29ba8a842aadd58bedfc95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2008-11-13  Akim Demaille  <demaille@gostai.com>
+
+       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  <demaille@gostai.com>
 
        Define yytranslate in the header for lex_symbol.
index d2c33a143e5d2f0610ac0854e3a842b2a5f3797a..2e9259c2f6ad226c8be13604b0932372c866522f 100644 (file)
@@ -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 ()