mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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.
This commit is contained in:
13
ChangeLog
13
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>
|
2008-11-13 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
Define yytranslate in the header for lex_symbol.
|
Define yytranslate in the header for lex_symbol.
|
||||||
|
|||||||
@@ -877,6 +877,7 @@ m4_ifdef([b4_stype],
|
|||||||
|
|
||||||
]b4_lex_symbol_if([b4_yytranslate_definition])[
|
]b4_lex_symbol_if([b4_yytranslate_definition])[
|
||||||
]b4_symbol_constructor_specializations[
|
]b4_symbol_constructor_specializations[
|
||||||
|
]b4_lex_symbol_if([b4_symbol_constructor_definitions])[
|
||||||
]b4_namespace_close[
|
]b4_namespace_close[
|
||||||
|
|
||||||
]b4_percent_define_flag_if([[global_tokens_and_yystype]],
|
]b4_percent_define_flag_if([[global_tokens_and_yystype]],
|
||||||
@@ -1026,7 +1027,7 @@ b4_percent_code_get[]dnl
|
|||||||
| Symbol types. |
|
| Symbol types. |
|
||||||
`---------------*/
|
`---------------*/
|
||||||
|
|
||||||
]b4_symbol_constructor_definitions[
|
]b4_lex_symbol_if([], [b4_symbol_constructor_definitions])[
|
||||||
|
|
||||||
// stack_symbol_type.
|
// stack_symbol_type.
|
||||||
]b4_parser_class_name[::stack_symbol_type::stack_symbol_type ()
|
]b4_parser_class_name[::stack_symbol_type::stack_symbol_type ()
|
||||||
|
|||||||
Reference in New Issue
Block a user