2010-04-28 22:27:11 +02:00
|
|
|
Index: libs/python/src/dict.cpp
|
|
|
|
===================================================================
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
--- libs/python/src/dict.cpp.orig
|
|
|
|
+++ libs/python/src/dict.cpp
|
2010-04-28 22:27:11 +02:00
|
|
|
@@ -28,9 +28,9 @@ namespace
|
|
|
|
|
|
|
|
detail::new_reference dict_base::call(object const& arg_)
|
|
|
|
{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyDict_Type };
|
|
|
|
return (detail::new_reference)PyObject_CallFunction(
|
|
|
|
- (PyObject*)&PyDict_Type, const_cast<char*>("(O)"),
|
|
|
|
- arg_.ptr());
|
|
|
|
+ pun.pop, const_cast<char*>("(O)"), arg_.ptr());
|
|
|
|
}
|
|
|
|
|
|
|
|
dict_base::dict_base()
|
|
|
|
Index: libs/python/src/list.cpp
|
|
|
|
===================================================================
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
--- libs/python/src/list.cpp.orig
|
|
|
|
+++ libs/python/src/list.cpp
|
2010-04-28 22:27:11 +02:00
|
|
|
@@ -10,11 +10,11 @@ namespace boost { namespace python { nam
|
|
|
|
|
|
|
|
detail::new_non_null_reference list_base::call(object const& arg_)
|
|
|
|
{
|
|
|
|
+ union{ PyTypeObject *ptop; PyObject *pop; }pun = { &PyList_Type };
|
|
|
|
return (detail::new_non_null_reference)
|
|
|
|
(expect_non_null)(
|
|
|
|
PyObject_CallFunction(
|
|
|
|
- (PyObject*)&PyList_Type, const_cast<char*>("(O)"),
|
|
|
|
- arg_.ptr()));
|
|
|
|
+ pun.pop, const_cast<char*>("(O)"), arg_.ptr()));
|
|
|
|
}
|
|
|
|
|
|
|
|
list_base::list_base()
|
|
|
|
Index: libs/python/src/long.cpp
|
|
|
|
===================================================================
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
--- libs/python/src/long.cpp.orig
|
|
|
|
+++ libs/python/src/long.cpp
|
2010-04-28 22:27:11 +02:00
|
|
|
@@ -8,16 +8,16 @@ namespace boost { namespace python { nam
|
|
|
|
|
2020-12-16 22:50:50 +01:00
|
|
|
new_reference long_base::call(object const& arg_)
|
2010-04-28 22:27:11 +02:00
|
|
|
{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyLong_Type };
|
2020-12-16 22:50:50 +01:00
|
|
|
return (detail::new_reference)PyObject_CallFunction(
|
2010-04-28 22:27:11 +02:00
|
|
|
- (PyObject*)&PyLong_Type, const_cast<char*>("(O)"),
|
|
|
|
- arg_.ptr());
|
|
|
|
+ pun.pop, const_cast<char*>("(O)"), arg_.ptr());
|
|
|
|
}
|
|
|
|
|
2020-12-16 22:50:50 +01:00
|
|
|
new_reference long_base::call(object const& arg_, object const& base)
|
2010-04-28 22:27:11 +02:00
|
|
|
{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyLong_Type };
|
2020-12-16 22:50:50 +01:00
|
|
|
return (detail::new_reference)PyObject_CallFunction(
|
2010-04-28 22:27:11 +02:00
|
|
|
- (PyObject*)&PyLong_Type, const_cast<char*>("(OO)"),
|
|
|
|
- arg_.ptr(), base.ptr());
|
|
|
|
+ pun.pop, const_cast<char*>("(OO)"), arg_.ptr(), base.ptr());
|
|
|
|
}
|
|
|
|
|
|
|
|
long_base::long_base()
|
|
|
|
@@ -25,7 +25,12 @@ long_base::long_base()
|
|
|
|
detail::new_reference(
|
|
|
|
PyObject_CallFunction((PyObject*)&PyLong_Type, const_cast<char*>("()")))
|
|
|
|
)
|
|
|
|
-{}
|
|
|
|
+{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyLong_Type };
|
|
|
|
+ object(detail::new_reference(
|
|
|
|
+ PyObject_CallFunction(pun.pop, const_cast<char*>("()"))));
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
|
|
|
|
long_base::long_base(object_cref arg)
|
|
|
|
: object(long_base::call(arg))
|
|
|
|
Index: libs/python/src/object/class.cpp
|
|
|
|
===================================================================
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
--- libs/python/src/object/class.cpp.orig
|
|
|
|
+++ libs/python/src/object/class.cpp
|
2022-08-17 23:07:45 +02:00
|
|
|
@@ -612,9 +612,11 @@ namespace objects
|
2010-04-28 22:27:11 +02:00
|
|
|
void class_base::add_property(
|
|
|
|
char const* name, object const& fget, char const* docstr)
|
|
|
|
{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyProperty_Type };
|
|
|
|
+
|
|
|
|
object property(
|
|
|
|
(python::detail::new_reference)
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
- PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("Osss"), fget.ptr(), (char*)NULL, (char*)NULL, docstr));
|
|
|
|
+ PyObject_CallFunction(pun.pop, const_cast<char*>("Osss"), fget.ptr(), (char*)NULL, (char*)NULL, docstr));
|
2010-04-28 22:27:11 +02:00
|
|
|
|
|
|
|
this->setattr(name, property);
|
|
|
|
}
|
2022-08-17 23:07:45 +02:00
|
|
|
@@ -622,9 +624,11 @@ namespace objects
|
2010-04-28 22:27:11 +02:00
|
|
|
void class_base::add_property(
|
|
|
|
char const* name, object const& fget, object const& fset, char const* docstr)
|
|
|
|
{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyProperty_Type };
|
|
|
|
+
|
|
|
|
object property(
|
|
|
|
(python::detail::new_reference)
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
- PyObject_CallFunction((PyObject*)&PyProperty_Type, const_cast<char*>("OOss"), fget.ptr(), fset.ptr(), (char*)NULL, docstr));
|
|
|
|
+ PyObject_CallFunction(pun.pop, const_cast<char*>("OOss"), fget.ptr(), fset.ptr(), (char*)NULL, docstr));
|
2010-04-28 22:27:11 +02:00
|
|
|
|
|
|
|
this->setattr(name, property);
|
|
|
|
}
|
|
|
|
Index: libs/python/src/str.cpp
|
|
|
|
===================================================================
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
--- libs/python/src/str.cpp.orig
|
|
|
|
+++ libs/python/src/str.cpp
|
2010-04-28 22:27:11 +02:00
|
|
|
@@ -9,14 +9,14 @@ namespace boost { namespace python { nam
|
|
|
|
|
|
|
|
detail::new_reference str_base::call(object const& arg_)
|
|
|
|
{
|
|
|
|
- return (detail::new_reference)PyObject_CallFunction(
|
|
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
|
|
- (PyObject*)&PyUnicode_Type,
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyUnicode_Type };
|
|
|
|
#else
|
|
|
|
- (PyObject*)&PyString_Type,
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyString_Type };
|
|
|
|
#endif
|
|
|
|
- const_cast<char*>("(O)"),
|
|
|
|
- arg_.ptr());
|
|
|
|
+
|
|
|
|
+ return (detail::new_reference)PyObject_CallFunction(
|
|
|
|
+ pun.pop, const_cast<char*>("(O)"), arg_.ptr());
|
|
|
|
}
|
|
|
|
|
|
|
|
str_base::str_base()
|
|
|
|
Index: libs/python/src/tuple.cpp
|
|
|
|
===================================================================
|
Accepting request 629938 from home:adamm:boost_test
- Update to version 1.68.0
New libraries:
* YAP: An expression template library for C++14 and later
Breaking changes since 1.67.0:
* uuid: sha1 detail namespace header redirection for backwards
compatibility was removed
* signals: Boost.Signals will be removed in the next release.
Boost.Signals was deprecated in version 1.54.0.
Transition to Boost.Signals2 now to avoid disruption.
Updated libraries: Beast, Context, Coroutine2, Fiber, Fusion,
Geometry, GIL, Graph, Lexical Cast, Log, Math,
Multi-index containers, Optional, Predef, Program Options,
Python, Rational, System, Stacktrace, Test, TypeIndex and Uuid.
For complete list of changes, see
https://www.boost.org/users/history/version_1_68_0.html
- refreshed patches: boost-no_type_punning.patch,
python_library_name.patch
- dropped: python_numpy_retfunc.patch - no longer needed
OBS-URL: https://build.opensuse.org/request/show/629938
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=218
2018-08-17 15:44:12 +02:00
|
|
|
--- libs/python/src/tuple.cpp.orig
|
|
|
|
+++ libs/python/src/tuple.cpp
|
2010-04-28 22:27:11 +02:00
|
|
|
@@ -8,9 +8,10 @@ namespace boost { namespace python { nam
|
|
|
|
|
|
|
|
detail::new_reference tuple_base::call(object const& arg_)
|
|
|
|
{
|
|
|
|
+ union { PyTypeObject *ptop; PyObject *pop; }pun = { &PyTuple_Type };
|
|
|
|
+
|
|
|
|
return (detail::new_reference)PyObject_CallFunction(
|
|
|
|
- (PyObject*)&PyTuple_Type, const_cast<char*>("(O)"),
|
|
|
|
- arg_.ptr());
|
|
|
|
+ pun.pop, const_cast<char*>("(O)"), arg_.ptr());
|
|
|
|
}
|
|
|
|
|
|
|
|
tuple_base::tuple_base()
|