[libsigc++2/variadic_bind3: 25/45] slot.h: Use this as a normal .h file.



commit 151d534a952f95ea839a0d38e4b6187ca976b4bf
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jan 15 09:49:40 2016 +0100

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

 sigc++/.gitignore                            |    1 -
 sigc++/filelist.am                           |    5 ++-
 sigc++/functors/{macros/slot.h.m4 => slot.h} |   32 +++++--------------------
 3 files changed, 10 insertions(+), 28 deletions(-)
---
diff --git a/sigc++/.gitignore b/sigc++/.gitignore
index b04801d..fc0584b 100644
--- a/sigc++/.gitignore
+++ b/sigc++/.gitignore
@@ -4,4 +4,3 @@
 /adaptors/retype.h
 /adaptors/track_obj.h
 /functors/mem_fun.h
-/functors/slot.h
diff --git a/sigc++/filelist.am b/sigc++/filelist.am
index 0efa20e..3c57660 100644
--- a/sigc++/filelist.am
+++ b/sigc++/filelist.am
@@ -21,9 +21,9 @@ base_built_cc =
 base_built_h = limit_reference.h
 
 # Functors (functors/)
-functors_m4 = slot.h.m4 mem_fun.h.m4
+functors_m4 = mem_fun.h.m4
 functors_built_cc = 
-functors_built_h = slot.h mem_fun.h
+functors_built_h = mem_fun.h
 
 # Adaptors (adaptors/)
 adaptors_m4 = bind.h.m4 \
@@ -68,4 +68,5 @@ sigc_public_h =                               \
        functors/functor_trait.h                \
        functors/functors.h             \
        functors/ptr_fun.h              \
+       functors/slot.h \
        functors/slot_base.h
diff --git a/sigc++/functors/macros/slot.h.m4 b/sigc++/functors/slot.h
similarity index 89%
rename from sigc++/functors/macros/slot.h.m4
rename to sigc++/functors/slot.h
index 6e2193f..5ce286d 100644
--- a/sigc++/functors/macros/slot.h.m4
+++ b/sigc++/functors/slot.h
@@ -1,25 +1,7 @@
-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([FUNCTORS_SLOT])
+// -*- c++ -*-
+/* Do not edit! -- generated file */
+#ifndef _SIGC_FUNCTORS_SLOT_H_
+#define _SIGC_FUNCTORS_SLOT_H_
 #include <sigc++/trackable.h>
 #include <sigc++/visit_each.h>
 #include <sigc++/adaptors/adaptor_trait.h>
@@ -128,7 +110,7 @@ struct slot_call
    * @param _A_a Arguments to be passed on to the functor.
    * @return The return values of the functor invocation.
    */
-  static T_return call_it(LIST(slot_rep* rep, type_trait_take_t<T_arg>... a_))
+  static T_return call_it(slot_rep* rep, type_trait_take_t<T_arg>... a_)
     {
       typedef typed_slot_rep<T_functor> typed_slot;
       typed_slot *typed_rep = static_cast<typed_slot*>(rep);
@@ -158,8 +140,7 @@ struct slot_call
  * a single, arbitrary functor (or closure) that is executed in operator()().
  *
  * The template arguments determine the function signature of operator()():
- * - @e T_return The return type of operator()().dnl
- * - @e T_arg Argument types used in the definition of operator()().
+ * - @e T_return The return type of operator()(). * - @e T_arg Argument types used in the definition of 
operator()().
  *
  * To use simply assign the desired functor to the slot. If the functor
  * is not compatible with the parameter list defined with the template
@@ -289,3 +270,4 @@ struct visitor<slot<T_return, T_arg...>>
   #undef SIGC_NIL_HAS_BEEN_PUSHED
   #pragma pop_macro("nil")
 #endif
+#endif /* _SIGC_FUNCTORS_SLOT_H_ */


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