summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-01-15 09:49:40 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-01-15 09:49:40 +0100
commit975b4934984bfa1c01e7fe554185955437f9e6fe (patch)
treedb531c2a842fdd3efaa8e811e05698d6e0af8947
parentbac2972e97f783abce8247be0efd0be1a3484ad8 (diff)
downloadsigc++-975b4934984bfa1c01e7fe554185955437f9e6fe.tar.gz
slot.h: Use this as a normal .h file.
Instead of generating it from a .h.m4 file.
-rw-r--r--sigc++/.gitignore1
-rw-r--r--sigc++/filelist.am5
-rw-r--r--sigc++/functors/slot.h (renamed from sigc++/functors/macros/slot.h.m4)32
3 files changed, 10 insertions, 28 deletions
diff --git a/sigc++/.gitignore b/sigc++/.gitignore
index 4bdfbf2..384ef53 100644
--- a/sigc++/.gitignore
+++ b/sigc++/.gitignore
@@ -2,4 +2,3 @@
/adaptors/bind.h
/adaptors/retype.h
/functors/mem_fun.h
-/functors/slot.h
diff --git a/sigc++/filelist.am b/sigc++/filelist.am
index 0341dc7..e1c8c90 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 \
@@ -73,4 +73,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
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_ */