From: Akim Demaille Date: Tue, 8 Sep 2009 19:59:33 +0000 (+0200) Subject: lalr1.cc: add missing "inline". X-Git-Tag: v2.7.90~779 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2966006237cce1132f8fb4eca2ac9933b431eb51?ds=inline lalr1.cc: add missing "inline". * data/c++.m4 (b4_public_types_define): Add missing inline to implementations provided in headers. --- diff --git a/ChangeLog b/ChangeLog index 8a9b5264..572ebdc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-09-09 Akim Demaille + + lalr1.cc: add missing "inline". + * data/c++.m4 (b4_public_types_define): Add missing inline to + implementations provided in headers. + 2009-09-09 Akim Demaille %param: documentation. diff --git a/data/c++.m4 b/data/c++.m4 index 946d9b69..cfe8a6cb 100644 --- a/data/c++.m4 +++ b/data/c++.m4 @@ -204,6 +204,7 @@ m4_define([b4_public_types_define], }]b4_locations_if([[ template + inline ]b4_parser_class_name[::symbol_base_type::symbol_base_type (const location_type& l) : value() , location(l) @@ -211,6 +212,7 @@ m4_define([b4_public_types_define], }]])[ template + inline ]b4_parser_class_name[::symbol_base_type::symbol_base_type (]b4_args( [const semantic_type& v], b4_locations_if([const location_type& l]))[) @@ -220,6 +222,7 @@ m4_define([b4_public_types_define], } template + inline const Exact& ]b4_parser_class_name[::symbol_base_type::self () const { @@ -227,6 +230,7 @@ m4_define([b4_public_types_define], } template + inline Exact& ]b4_parser_class_name[::symbol_base_type::self () { @@ -234,6 +238,7 @@ m4_define([b4_public_types_define], } template + inline int ]b4_parser_class_name[::symbol_base_type::type_get () const { @@ -241,12 +246,14 @@ m4_define([b4_public_types_define], } // symbol_type. + inline ]b4_parser_class_name[::symbol_type::symbol_type () : super_type () , type () { } + inline ]b4_parser_class_name[::symbol_type::symbol_type (]b4_args( [int t], b4_locations_if([const location_type& l]))[) @@ -255,6 +262,7 @@ m4_define([b4_public_types_define], { } + inline ]b4_parser_class_name[::symbol_type::symbol_type (]b4_args( [int t], [const semantic_type& v], @@ -264,12 +272,14 @@ m4_define([b4_public_types_define], { } + inline int ]b4_parser_class_name[::symbol_type::type_get_ () const { return type; } ]b4_lex_symbol_if([[ + inline ]b4_parser_class_name[::token_type ]b4_parser_class_name[::symbol_type::token () const {