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/cobject.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/cobject.h')
-rw-r--r-- | Include/cobject.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Include/cobject.h b/Include/cobject.h index 5979074..57a9cb9 100644 --- a/Include/cobject.h +++ b/Include/cobject.h @@ -54,7 +54,7 @@ extern DL_IMPORT(PyTypeObject) PyCObject_Type; destroyed. */ -extern PyObject * +extern DL_IMPORT(PyObject *) PyCObject_FromVoidPtr Py_PROTO((void *cobj, void (*destruct)(void*))); @@ -63,20 +63,20 @@ PyCObject_FromVoidPtr Py_PROTO((void *cobj, void (*destruct)(void*))); then it will be called with the first and second arguments if and when the PyCObject is destroyed. */ -extern PyObject * +extern DL_IMPORT(PyObject *) PyCObject_FromVoidPtrAndDesc Py_PROTO((void *cobj, void *desc, void (*destruct)(void*,void*))); /* Retrieve a pointer to a C object from a PyCObject. */ -extern void * +extern DL_IMPORT(void *) PyCObject_AsVoidPtr Py_PROTO((PyObject *)); /* Retrieve a pointer to a description object from a PyCObject. */ -extern void * +extern DL_IMPORT(void *) PyCObject_GetDesc Py_PROTO((PyObject *)); /* Import a pointer to a C object from a module using a PyCObject. */ -extern void * +extern DL_IMPORT(void *) PyCObject_Import Py_PROTO((char *module_name, char *cobject_name)); #ifdef __cplusplus |