diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-07-09 03:09:57 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-07-09 03:09:57 (GMT) |
commit | dbd9ba6a6c19c3d06f5684b3384a934f740038db (patch) | |
tree | 3a2728dbc98c86a0af47d7692cb8bdd2ee41afca /Include/mymalloc.h | |
parent | 4be47c0f76c349ee9c04b08ed122c8bd8190d2c5 (diff) | |
download | cpython-dbd9ba6a6c19c3d06f5684b3384a934f740038db.zip cpython-dbd9ba6a6c19c3d06f5684b3384a934f740038db.tar.gz cpython-dbd9ba6a6c19c3d06f5684b3384a934f740038db.tar.bz2 |
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
Diffstat (limited to 'Include/mymalloc.h')
-rw-r--r-- | Include/mymalloc.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Include/mymalloc.h b/Include/mymalloc.h index 3d6ab06..fa2f8f8 100644 --- a/Include/mymalloc.h +++ b/Include/mymalloc.h @@ -90,9 +90,9 @@ extern "C" { #ifndef PyCore_MALLOC_PROTO #undef PyCore_REALLOC_PROTO #undef PyCore_FREE_PROTO -#define PyCore_MALLOC_PROTO Py_PROTO((size_t)) -#define PyCore_REALLOC_PROTO Py_PROTO((ANY *, size_t)) -#define PyCore_FREE_PROTO Py_PROTO((ANY *)) +#define PyCore_MALLOC_PROTO (size_t) +#define PyCore_REALLOC_PROTO (ANY *, size_t) +#define PyCore_FREE_PROTO (ANY *) #endif #ifdef NEED_TO_DECLARE_MALLOC_AND_FRIEND @@ -138,9 +138,9 @@ extern void PyCore_FREE_FUNC PyCore_FREE_PROTO; returns a non-NULL pointer, even if the underlying malloc doesn't. Returned pointers must be checked for NULL explicitly. No action is performed on failure. */ -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 *)); +extern DL_IMPORT(ANY *) PyMem_Malloc(size_t); +extern DL_IMPORT(ANY *) PyMem_Realloc(ANY *, size_t); +extern DL_IMPORT(void) PyMem_Free(ANY *); /* Starting from Python 1.6, the wrappers Py_{Malloc,Realloc,Free} are no longer supported. They used to call PyErr_NoMemory() on failure. */ @@ -198,7 +198,7 @@ extern DL_IMPORT(void) PyMem_Free Py_PROTO((ANY *)); #define PyCore_MALLOC_FUNC d_malloc ... - #define PyCore_MALLOC_PROTO Py_PROTO((size_t, char *, unsigned long)) + #define PyCore_MALLOC_PROTO (size_t, char *, unsigned long) ... #define NEED_TO_DECLARE_MALLOC_AND_FRIEND |