mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Add DL_IMPORT(returntype) for all officially exported functions.
This commit is contained in:
parent
b241b67b89
commit
43466ec7b0
44 changed files with 401 additions and 398 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue