installed in master (no such code in 2.5).

        * data/c++.m4 (b4_public_types_define): Add missing inline to
        implementations provided in headers.


From 2966006237cce1132f8fb4eca2ac9933b431eb51 Mon Sep 17 00:00:00 2001
From: Akim Demaille <[email protected]>
Date: Tue, 8 Sep 2009 21:59:33 +0200
Subject: [PATCH 1/2] lalr1.cc: add missing "inline".

        * data/c++.m4 (b4_public_types_define): Add missing inline to
        implementations provided in headers.
---
 ChangeLog   |    6 ++++++
 data/c++.m4 |   10 ++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8a9b526..572ebdc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-09-09  Akim Demaille  <[email protected]>
 
+       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  <[email protected]>
+
        %param: documentation.
        * NEWS (2.6): Document %param, %lex-param, and %parse-param
        changes.
diff --git a/data/c++.m4 b/data/c++.m4
index 946d9b6..cfe8a6c 100644
--- a/data/c++.m4
+++ b/data/c++.m4
@@ -204,6 +204,7 @@ m4_define([b4_public_types_define],
   }]b4_locations_if([[
 
   template <typename Exact>
+  inline
   ]b4_parser_class_name[::symbol_base_type<Exact>::symbol_base_type (const 
location_type& l)
     : value()
     , location(l)
@@ -211,6 +212,7 @@ m4_define([b4_public_types_define],
   }]])[
 
   template <typename Exact>
+  inline
   ]b4_parser_class_name[::symbol_base_type<Exact>::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 <typename Exact>
+  inline
   const Exact&
   ]b4_parser_class_name[::symbol_base_type<Exact>::self () const
   {
@@ -227,6 +230,7 @@ m4_define([b4_public_types_define],
   }
 
   template <typename Exact>
+  inline
   Exact&
   ]b4_parser_class_name[::symbol_base_type<Exact>::self ()
   {
@@ -234,6 +238,7 @@ m4_define([b4_public_types_define],
   }
 
   template <typename Exact>
+  inline
   int
   ]b4_parser_class_name[::symbol_base_type<Exact>::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
   {
-- 
1.6.4

Reply via email to