2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 05:02:17 +00:00

BOOST_PYTHON_EXPORT -> BOOST_PYTHON_DECL

[SVN r12187]
This commit is contained in:
Dave Abrahams
2002-01-01 18:21:31 +00:00
parent 015b875a9e
commit e934be2d99
2 changed files with 5 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ bool type_id_before::operator()(type_id_t const& x, type_id_t const& y) const
return x < y;
}
BOOST_PYTHON_EXPORT std::ostream& operator<<(std::ostream& os, type_id_t const& x)
BOOST_PYTHON_DECL std::ostream& operator<<(std::ostream& os, type_id_t const& x)
{
# ifdef BOOST_PYTHON_TYPE_ID_NAME
os << x.m_base_type;

View File

@@ -4,7 +4,7 @@
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include <boost/python/export.hpp>
#include <boost/python/detail/config.hpp>
#include <boost/python/module.hpp>
#include <boost/python/detail/wrap_python.hpp>
#include <boost/python/object/class.hpp>
@@ -23,7 +23,6 @@ holder_base::~holder_base()
{
}
//BOOST_PYTHON_EXPORT
PyTypeObject class_metatype_object = {
PyObject_HEAD_INIT(0)//&PyType_Type)
0,
@@ -68,7 +67,6 @@ PyTypeObject class_metatype_object = {
// PyType_GenericNew /* tp_new */
};
//BOOST_PYTHON_EXPORT
PyTypeObject class_type_object = {
PyObject_HEAD_INIT(0) //&class_metatype_object)
0,
@@ -112,7 +110,7 @@ PyTypeObject class_type_object = {
PyType_GenericNew
};
BOOST_PYTHON_EXPORT PyTypeObject* class_metatype()
BOOST_PYTHON_DECL PyTypeObject* class_metatype()
{
if (class_metatype_object.tp_dict == 0)
{
@@ -125,7 +123,7 @@ BOOST_PYTHON_EXPORT PyTypeObject* class_metatype()
return &class_metatype_object;
}
BOOST_PYTHON_EXPORT PyTypeObject* class_type()
BOOST_PYTHON_DECL PyTypeObject* class_type()
{
if (class_type_object.tp_dict == 0)
{
@@ -145,7 +143,7 @@ void holder_base::install(PyObject* self)
((instance*)self)->objects = this;
}
BOOST_PYTHON_EXPORT holder_base*
BOOST_PYTHON_DECL holder_base*
find_holder_impl(PyObject* inst, converter::type_id_t type)
{
if (inst->ob_type->ob_type != &class_metatype_object)