mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +00:00
lalr1.cc: add missing "inline".
* data/c++.m4 (b4_public_types_define): Add missing inline to implementations provided in headers.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-09-09 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
|
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 <demaille@gostai.com>
|
2009-09-09 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
%param: documentation.
|
%param: documentation.
|
||||||
|
|||||||
10
data/c++.m4
10
data/c++.m4
@@ -204,6 +204,7 @@ m4_define([b4_public_types_define],
|
|||||||
}]b4_locations_if([[
|
}]b4_locations_if([[
|
||||||
|
|
||||||
template <typename Exact>
|
template <typename Exact>
|
||||||
|
inline
|
||||||
]b4_parser_class_name[::symbol_base_type<Exact>::symbol_base_type (const location_type& l)
|
]b4_parser_class_name[::symbol_base_type<Exact>::symbol_base_type (const location_type& l)
|
||||||
: value()
|
: value()
|
||||||
, location(l)
|
, location(l)
|
||||||
@@ -211,6 +212,7 @@ m4_define([b4_public_types_define],
|
|||||||
}]])[
|
}]])[
|
||||||
|
|
||||||
template <typename Exact>
|
template <typename Exact>
|
||||||
|
inline
|
||||||
]b4_parser_class_name[::symbol_base_type<Exact>::symbol_base_type (]b4_args(
|
]b4_parser_class_name[::symbol_base_type<Exact>::symbol_base_type (]b4_args(
|
||||||
[const semantic_type& v],
|
[const semantic_type& v],
|
||||||
b4_locations_if([const location_type& l]))[)
|
b4_locations_if([const location_type& l]))[)
|
||||||
@@ -220,6 +222,7 @@ m4_define([b4_public_types_define],
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename Exact>
|
template <typename Exact>
|
||||||
|
inline
|
||||||
const Exact&
|
const Exact&
|
||||||
]b4_parser_class_name[::symbol_base_type<Exact>::self () const
|
]b4_parser_class_name[::symbol_base_type<Exact>::self () const
|
||||||
{
|
{
|
||||||
@@ -227,6 +230,7 @@ m4_define([b4_public_types_define],
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename Exact>
|
template <typename Exact>
|
||||||
|
inline
|
||||||
Exact&
|
Exact&
|
||||||
]b4_parser_class_name[::symbol_base_type<Exact>::self ()
|
]b4_parser_class_name[::symbol_base_type<Exact>::self ()
|
||||||
{
|
{
|
||||||
@@ -234,6 +238,7 @@ m4_define([b4_public_types_define],
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename Exact>
|
template <typename Exact>
|
||||||
|
inline
|
||||||
int
|
int
|
||||||
]b4_parser_class_name[::symbol_base_type<Exact>::type_get () const
|
]b4_parser_class_name[::symbol_base_type<Exact>::type_get () const
|
||||||
{
|
{
|
||||||
@@ -241,12 +246,14 @@ m4_define([b4_public_types_define],
|
|||||||
}
|
}
|
||||||
|
|
||||||
// symbol_type.
|
// symbol_type.
|
||||||
|
inline
|
||||||
]b4_parser_class_name[::symbol_type::symbol_type ()
|
]b4_parser_class_name[::symbol_type::symbol_type ()
|
||||||
: super_type ()
|
: super_type ()
|
||||||
, type ()
|
, type ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline
|
||||||
]b4_parser_class_name[::symbol_type::symbol_type (]b4_args(
|
]b4_parser_class_name[::symbol_type::symbol_type (]b4_args(
|
||||||
[int t],
|
[int t],
|
||||||
b4_locations_if([const location_type& l]))[)
|
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(
|
]b4_parser_class_name[::symbol_type::symbol_type (]b4_args(
|
||||||
[int t],
|
[int t],
|
||||||
[const semantic_type& v],
|
[const semantic_type& v],
|
||||||
@@ -264,12 +272,14 @@ m4_define([b4_public_types_define],
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline
|
||||||
int
|
int
|
||||||
]b4_parser_class_name[::symbol_type::type_get_ () const
|
]b4_parser_class_name[::symbol_type::type_get_ () const
|
||||||
{
|
{
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
]b4_lex_symbol_if([[
|
]b4_lex_symbol_if([[
|
||||||
|
inline
|
||||||
]b4_parser_class_name[::token_type
|
]b4_parser_class_name[::token_type
|
||||||
]b4_parser_class_name[::symbol_type::token () const
|
]b4_parser_class_name[::symbol_type::token () const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user