diff options
author | Guido van Rossum <guido@python.org> | 1998-12-04 18:48:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-04 18:48:25 (GMT) |
commit | 43466ec7b07de6bcad016bec60839cd6079c5a9c (patch) | |
tree | ec3bf3e1dfbf9535fa56e153e200f6491f34a6b0 /Include/classobject.h | |
parent | b241b67b8954b0679377af00d668e3dc92f4c858 (diff) | |
download | cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.zip cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.gz cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.bz2 |
Add DL_IMPORT(returntype) for all officially exported functions.
Diffstat (limited to 'Include/classobject.h')
-rw-r--r-- | Include/classobject.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Include/classobject.h b/Include/classobject.h index e03f468..1a8c506 100644 --- a/Include/classobject.h +++ b/Include/classobject.h @@ -69,13 +69,13 @@ extern DL_IMPORT(PyTypeObject) PyClass_Type, PyInstance_Type, PyMethod_Type; #define PyInstance_Check(op) ((op)->ob_type == &PyInstance_Type) #define PyMethod_Check(op) ((op)->ob_type == &PyMethod_Type) -extern PyObject *PyClass_New Py_PROTO((PyObject *, PyObject *, PyObject *)); -extern PyObject *PyInstance_New Py_PROTO((PyObject *, PyObject *, PyObject *)); -extern PyObject *PyMethod_New Py_PROTO((PyObject *, PyObject *, PyObject *)); +extern DL_IMPORT(PyObject *) PyClass_New Py_PROTO((PyObject *, PyObject *, PyObject *)); +extern DL_IMPORT(PyObject *) PyInstance_New Py_PROTO((PyObject *, PyObject *, PyObject *)); +extern DL_IMPORT(PyObject *) PyMethod_New Py_PROTO((PyObject *, PyObject *, PyObject *)); -extern PyObject *PyMethod_Function Py_PROTO((PyObject *)); -extern PyObject *PyMethod_Self Py_PROTO((PyObject *)); -extern PyObject *PyMethod_Class Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyMethod_Function Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyMethod_Self Py_PROTO((PyObject *)); +extern DL_IMPORT(PyObject *) PyMethod_Class Py_PROTO((PyObject *)); /* Macros for direct access to these values. Type checks are *not* done, so use with care. */ @@ -86,9 +86,9 @@ extern PyObject *PyMethod_Class Py_PROTO((PyObject *)); #define PyMethod_GET_CLASS(meth) \ (((PyMethodObject *)meth) -> im_class) -extern int PyClass_IsSubclass Py_PROTO((PyObject *, PyObject *)); +extern DL_IMPORT(int) PyClass_IsSubclass Py_PROTO((PyObject *, PyObject *)); -extern PyObject *PyInstance_DoBinOp +extern DL_IMPORT(PyObject *) PyInstance_DoBinOp Py_PROTO((PyObject *, PyObject *, char *, char *, PyObject * (*) Py_PROTO((PyObject *, PyObject *)) )); |