Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76611 - sandbox/closure/boost
From: lorcaminiti_at_[hidden]
Date: 2012-01-21 13:13:28


Author: lcaminiti
Date: 2012-01-21 13:13:27 EST (Sat, 21 Jan 2012)
New Revision: 76611
URL: http://svn.boost.org/trac/boost/changeset/76611

Log:
Renaming to LocalFunction.
Added:
   sandbox/closure/boost/local_function.hpp
      - copied, changed from r76567, /sandbox/closure/boost/closure.hpp
Text files modified:
   sandbox/closure/boost/local_function.hpp | 72 ++++++++++++++++++++--------------------
   1 files changed, 36 insertions(+), 36 deletions(-)

Copied: sandbox/closure/boost/local_function.hpp (from r76567, /sandbox/closure/boost/closure.hpp)
==============================================================================
--- /sandbox/closure/boost/closure.hpp (original)
+++ sandbox/closure/boost/local_function.hpp 2012-01-21 13:13:27 EST (Sat, 21 Jan 2012)
@@ -9,58 +9,58 @@
 where they are needed.
 */
 
-#ifndef BOOST_CLOSURE_HPP_
-#define BOOST_CLOSURE_HPP_
+#ifndef BOOST_LOCAL_FUNCTION_HPP_
+#define BOOST_LOCAL_FUNCTION_HPP_
 
 #ifndef DOXY
 
-#include <boost/closure/aux_/macro/closure.hpp>
-#include <boost/closure/aux_/macro/closure_end.hpp>
-#include <boost/closure/aux_/macro/closure_typeof.hpp>
-#include <boost/closure/aux_/preprocessor/traits/decl.hpp>
-#include <boost/closure/detail/preprocessor/line_counter.hpp>
-#include <boost/closure/detail/preprocessor/void_list.hpp>
+#include <boost/local_function/aux_/macro/decl.hpp>
+#include <boost/local_function/aux_/macro/name.hpp>
+#include <boost/local_function/aux_/macro/typeof.hpp>
+#include <boost/local_function/aux_/preprocessor/traits/decl.hpp>
+#include <boost/local_function/detail/preprocessor/line_counter.hpp>
+#include <boost/local_function/detail/preprocessor/void_list.hpp>
 #include <boost/config.hpp>
 
 // PUBLIC //
 
 #ifdef BOOST_NO_VARIADIC_MACROS
-# define BOOST_CLOSURE(declarations) \
- BOOST_CLOSURE_AUX_CLOSURE( \
- BOOST_CLOSURE_DETAIL_PP_LINE_COUNTER \
+# define BOOST_LOCAL_FUNCTION(declarations) \
+ BOOST_LOCAL_FUNCTION_AUX_DECL( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER \
             , 0 /* not within template */ \
- , BOOST_CLOSURE_AUX_PP_DECL_TRAITS( \
- BOOST_CLOSURE_DETAIL_PP_VOID_LIST(declarations)) \
+ , BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(declarations)) \
         )
-# define BOOST_CLOSURE_TPL(declarations) \
- BOOST_CLOSURE_AUX_CLOSURE( \
- BOOST_CLOSURE_DETAIL_PP_LINE_COUNTER \
+# define BOOST_LOCAL_FUNCTION_TPL(declarations) \
+ BOOST_LOCAL_FUNCTION_AUX_DECL( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER \
             , 1 /* within template */ \
- , BOOST_CLOSURE_AUX_PP_DECL_TRAITS( \
- BOOST_CLOSURE_DETAIL_PP_VOID_LIST(declarations)) \
+ , BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(declarations)) \
         )
 #else // VARIADIC
-# define BOOST_CLOSURE(...) \
- BOOST_CLOSURE_AUX_CLOSURE( \
- BOOST_CLOSURE_DETAIL_PP_LINE_COUNTER \
+# define BOOST_LOCAL_FUNCTION(...) \
+ BOOST_LOCAL_FUNCTION_AUX_DECL( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER \
             , 0 /* not within template */ \
- , BOOST_CLOSURE_AUX_PP_DECL_TRAITS( \
- BOOST_CLOSURE_DETAIL_PP_VOID_LIST(__VA_ARGS__)) \
+ , BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(__VA_ARGS__)) \
         )
-# define BOOST_CLOSURE_TPL(...) \
- BOOST_CLOSURE_AUX_CLOSURE( \
- BOOST_CLOSURE_DETAIL_PP_LINE_COUNTER \
+# define BOOST_LOCAL_FUNCTION_TPL(...) \
+ BOOST_LOCAL_FUNCTION_AUX_DECL( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER \
             , 1 /* within template */ \
- , BOOST_CLOSURE_AUX_PP_DECL_TRAITS( \
- BOOST_CLOSURE_DETAIL_PP_VOID_LIST(__VA_ARGS__)) \
+ , BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS( \
+ BOOST_LOCAL_FUNCTION_DETAIL_PP_VOID_LIST(__VA_ARGS__)) \
         )
 #endif // VARIADIC
 
-#define BOOST_CLOSURE_END(function_name) \
- BOOST_CLOSURE_AUX_CLOSURE_END(function_name)
+#define BOOST_LOCAL_FUNCTION_NAME(qualified_name) \
+ BOOST_LOCAL_FUNCTION_AUX_NAME(qualified_name)
 
-#define BOOST_CLOSURE_TYPEOF(bound_variable_name) \
- BOOST_CLOSURE_AUX_CLOSURE_TYPEOF(bound_variable_name)
+#define BOOST_LOCAL_FUNCTION_TYPEOF(bound_variable_name) \
+ BOOST_LOCAL_FUNCTION_AUX_TYPEOF_TYPE(bound_variable_name)
 
 // DOCUMENTATION //
 
@@ -180,7 +180,7 @@
  * @RefMacro{BOOST_LOCAL_CONFIG_FUNCTION_ARITY_MAX},
  * @RefMacro{BOOST_LOCAL_CONFIG_COMPLIANT}, Boost.Function.
  */
-#define BOOST_CLOSURE(declarations)
+#define BOOST_LOCAL_FUNCTION(declarations)
 
 /**
  * @brief This macro is the same as @RefMacro{BOOST_LOCAL_FUNCTION_PARAMS} but
@@ -188,7 +188,7 @@
  *
  * @See @RefMacro{BOOST_LOCAL_FUNCTION_PARAMS}, @RefSect{Tutorial} section.
  */
-#define BOOST_CLOSURE_TPL(declarations)
+#define BOOST_LOCAL_FUNCTION_TPL(declarations)
 
 /**
  * @brief This macro is used to specify the local function name.
@@ -244,7 +244,7 @@
  * @RefSect2{Advanced_Topics, Advanced Topics} section,
  * @RefMacro{BOOST_LOCAL_CONFIG_COMPLIANT}.
  */
-#define BOOST_CLOSURE_END(name)
+#define BOOST_LOCAL_FUNCTION_END(name)
 
 /**
  * @brief This macro expands to the fully qualified type of a variable bound
@@ -278,7 +278,7 @@
  * @RefMacro{BOOST_LOCAL_EXIT}, @RefSect2{Advanced_Topics, Advanced Topics}
  * section.
  */
-#define BOOST_CLOSURE_TYPEOF(bound_variable_name)
+#define BOOST_LOCAL_FUNCTION_TYPEOF(bound_variable_name)
 
 #endif // DOXY
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk