Skip to content

Commit 0593074

Browse files
committed
Patches to support Synopsis
[SVN r15906]
1 parent c762615 commit 0593074

16 files changed

+42
-189
lines changed

include/boost/python/converter/pyobject_type.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef PYOBJECT_TYPE_DWA2002720_HPP
77
# define PYOBJECT_TYPE_DWA2002720_HPP
88

9+
# include <boost/python/detail/config.hpp>
910
# include <boost/python/detail/wrap_python.hpp>
1011
# include <boost/python/cast.hpp>
1112

include/boost/python/converter/rvalue_from_python_data.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ struct rvalue_from_python_data : rvalue_from_python_storage<T>
9494
{
9595
# if (!defined(__MWERKS__) || __MWERKS__ >= 0x3000) \
9696
&& (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 245) \
97-
&& (!defined(__DECCXX_VER) || __DECCXX_VER > 60590014)
97+
&& (!defined(__DECCXX_VER) || __DECCXX_VER > 60590014) \
98+
&& !defined(BOOST_PYTHON_SYNOPSIS) /* Synopsis' OpenCXX has trouble parsing this */
9899
// This must always be a POD struct with m_data its first member.
99100
BOOST_STATIC_ASSERT(BOOST_PYTHON_OFFSETOF(rvalue_from_python_storage<T>,stage1) == 0);
100101
# endif

include/boost/python/detail/call_object.hpp

Lines changed: 0 additions & 66 deletions
This file was deleted.

include/boost/python/detail/exception_handler.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef EXCEPTION_HANDLER_DWA2002810_HPP
77
# define EXCEPTION_HANDLER_DWA2002810_HPP
88

9+
# include <boost/python/detail/config.hpp>
910
# include <boost/function/function0.hpp>
1011
# include <boost/function/function2.hpp>
1112

include/boost/python/detail/make_tuple.hpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
# ifndef BOOST_PYTHON_SYNOPSIS
12
# // Copyright David Abrahams 2002. Permission to copy, use,
23
# // modify, sell and distribute this software is granted provided this
34
# // copyright notice appears in all copies. This software is provided
45
# // "as is" without express or implied warranty, and with no claim as
56
# // to its suitability for any purpose.
67

7-
#if !defined(BOOST_PP_IS_ITERATING)
8-
# error Boost.Python - do not include this file!
9-
#endif
8+
# if !defined(BOOST_PP_IS_ITERATING)
9+
# error Boost.Python - do not include this file!
10+
# endif
1011

11-
#define N BOOST_PP_ITERATION()
12+
# define N BOOST_PP_ITERATION()
1213

13-
#define BOOST_PYTHON_MAKE_TUPLE_ARG(z, N, ignored) \
14+
# define BOOST_PYTHON_MAKE_TUPLE_ARG(z, N, ignored) \
1415
PyTuple_SET_ITEM( \
1516
result.ptr() \
1617
, N \
@@ -26,6 +27,7 @@
2627
return result;
2728
}
2829

29-
#undef BOOST_PYTHON_MAKE_TUPLE_ARG
30+
# undef BOOST_PYTHON_MAKE_TUPLE_ARG
3031

31-
#undef N
32+
# undef N
33+
# endif // BOOST_PYTHON_SYNOPSIS

include/boost/python/detail/module_base.hpp

Lines changed: 0 additions & 46 deletions
This file was deleted.

include/boost/python/detail/scope.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef SCOPE_DWA2002927_HPP
77
# define SCOPE_DWA2002927_HPP
88

9+
# include <boost/python/detail/config.hpp>
10+
911
namespace boost { namespace python { namespace detail {
1012

1113
void BOOST_PYTHON_DECL scope_setattr_doc(char const* name, object const& obj, char const* doc);

include/boost/python/detail/type_list_impl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# ifndef TYPE_LIST_IMPL_DWA2002913_HPP
88
# define TYPE_LIST_IMPL_DWA2002913_HPP
99

10+
# include <boost/python/detail/type_list.hpp>
11+
1012
# include <boost/preprocessor/enum_params.hpp>
1113
# include <boost/preprocessor/enum_params_with_a_default.hpp>
1214
# include <boost/preprocessor/repetition/enum.hpp>

include/boost/python/detail/type_list_impl_no_pts.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# ifndef TYPE_LIST_IMPL_NO_PTS_DWA2002913_HPP
88
# define TYPE_LIST_IMPL_NO_PTS_DWA2002913_HPP
99

10+
# include <boost/python/detail/type_list.hpp>
11+
1012
# include <boost/preprocessor/enum_params.hpp>
1113
# include <boost/preprocessor/enum_params_with_a_default.hpp>
1214
# include <boost/preprocessor/cat.hpp>

include/boost/python/detail/type_list_utils.hpp

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)