mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +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
|
@ -106,14 +106,14 @@ extern void free Py_PROTO((ANY *)); /* XXX sometimes int on Unix old systems */
|
|||
The Python interpreter continues to use PyMem_NEW etc. */
|
||||
|
||||
/* These wrappers around malloc call PyErr_NoMemory() on failure */
|
||||
extern ANY *Py_Malloc Py_PROTO((size_t));
|
||||
extern ANY *Py_Realloc Py_PROTO((ANY *, size_t));
|
||||
extern void Py_Free Py_PROTO((ANY *));
|
||||
extern DL_IMPORT(ANY *) Py_Malloc Py_PROTO((size_t));
|
||||
extern DL_IMPORT(ANY *) Py_Realloc Py_PROTO((ANY *, size_t));
|
||||
extern DL_IMPORT(void) Py_Free Py_PROTO((ANY *));
|
||||
|
||||
/* These wrappers around malloc *don't* call anything on failure */
|
||||
extern ANY *PyMem_Malloc Py_PROTO((size_t));
|
||||
extern ANY *PyMem_Realloc Py_PROTO((ANY *, size_t));
|
||||
extern void PyMem_Free Py_PROTO((ANY *));
|
||||
extern DL_IMPORT(ANY *) PyMem_Malloc Py_PROTO((size_t));
|
||||
extern DL_IMPORT(ANY *) PyMem_Realloc Py_PROTO((ANY *, size_t));
|
||||
extern DL_IMPORT(void) PyMem_Free Py_PROTO((ANY *));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue