[libsigcplusplus/variadic_mem_fun3: 22/148] exception_catch.h: Use this as a normal .h file.



commit 425a39168ec1f2ae50e8184eab19f811bf610da9
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jan 7 21:34:20 2016 +0100

    exception_catch.h: Use this as a normal .h file.
    
    Instead of generating it from a .h.m4 file.

 sigc++/.gitignore                                  |    1 -
 .../exception_catch.h.m4 => exception_catch.h}     |   25 ++-----------------
 sigc++/filelist.am                                 |    5 ++-
 3 files changed, 6 insertions(+), 25 deletions(-)
---
diff --git a/sigc++/.gitignore b/sigc++/.gitignore
index c3c994e..3c6a661 100644
--- a/sigc++/.gitignore
+++ b/sigc++/.gitignore
@@ -1,7 +1,6 @@
 /limit_reference.h
 /signal.h
 /adaptors/bind.h
-/adaptors/exception_catch.h
 /adaptors/hide.h
 /adaptors/retype.h
 /adaptors/track_obj.h
diff --git a/sigc++/adaptors/macros/exception_catch.h.m4 b/sigc++/adaptors/exception_catch.h
similarity index 84%
rename from sigc++/adaptors/macros/exception_catch.h.m4
rename to sigc++/adaptors/exception_catch.h
index f83f503..0e0fc57 100644
--- a/sigc++/adaptors/macros/exception_catch.h.m4
+++ b/sigc++/adaptors/exception_catch.h
@@ -1,25 +1,5 @@
-dnl Copyright 2002, The libsigc++ Development Team
-dnl
-dnl This library is free software; you can redistribute it and/or
-dnl modify it under the terms of the GNU Lesser General Public
-dnl License as published by the Free Software Foundation; either
-dnl version 2.1 of the License, or (at your option) any later version.
-dnl
-dnl This library is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-dnl Lesser General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU Lesser General Public
-dnl License along with this library; if not, write to the Free Software
-dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-dnl
-divert(-1)
-
-include(template.macros.m4)
-
-divert(0)dnl
-_FIREWALL([ADAPTORS_EXCEPTION_CATCH])
+#ifndef _SIGC_ADAPTORS_EXCEPTION_CATCH_H_
+#define _SIGC_ADAPTORS_EXCEPTION_CATCH_H_
 #include <sigc++/adaptors/adaptor_trait.h>
 
 namespace sigc {
@@ -193,3 +173,4 @@ exception_catch(const T_functor& _A_func, const T_catcher& _A_catcher)
   { return exception_catch_functor<T_functor, T_catcher>(_A_func, _A_catcher); }
 
 } /* namespace sigc */
+#endif /* _SIGC_ADAPTORS_EXCEPTION_CATCH_H_ */
diff --git a/sigc++/filelist.am b/sigc++/filelist.am
index 1d894a2..768359f 100644
--- a/sigc++/filelist.am
+++ b/sigc++/filelist.am
@@ -27,11 +27,11 @@ functors_built_h = slot.h mem_fun.h
 
 # Adaptors (adaptors/)
 adaptors_m4 = bind.h.m4 \
-             hide.h.m4 retype.h.m4 exception_catch.h.m4 \
+             hide.h.m4 retype.h.m4 \
              track_obj.h.m4
 adaptors_built_cc =
 adaptors_built_h = bind.h \
-                   hide.h retype.h exception_catch.h \
+                   hide.h retype.h \
                    track_obj.h
 
 # Lambda (adaptors/lambda)
@@ -70,6 +70,7 @@ sigc_public_h =                               \
        adaptors/bound_argument.h       \
        adaptors/compose.h \
        adaptors/deduce_result_type.h \
+       adaptors/exception_catch.h \
        adaptors/retype_return.h \
        functors/functor_trait.h                \
        functors/functors.h             \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]