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 | |
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')
-rw-r--r-- | Include/cStringIO.h | 12 | ||||
-rw-r--r-- | Include/methodobject.h | 6 | ||||
-rw-r--r-- | Include/mymalloc.h | 14 | ||||
-rw-r--r-- | Include/mymath.h | 2 | ||||
-rw-r--r-- | Include/myproto.h | 5 |
5 files changed, 22 insertions, 17 deletions
diff --git a/Include/cStringIO.h b/Include/cStringIO.h index 7389432..cc62c90 100644 --- a/Include/cStringIO.h +++ b/Include/cStringIO.h @@ -76,22 +76,22 @@ static struct PycStringIO_CAPI { /* Read a string. If the last argument is -1, the remainder will be read. */ - int(*cread) Py_FPROTO((PyObject *, char **, int)); + int(*cread)(PyObject *, char **, int); /* Read a line */ - int(*creadline) Py_FPROTO((PyObject *, char **)); + int(*creadline)(PyObject *, char **); /* Write a string */ - int(*cwrite) Py_FPROTO((PyObject *, char *, int)); + int(*cwrite)(PyObject *, char *, int); /* Get the cStringIO object as a Python string */ - PyObject *(*cgetvalue) Py_FPROTO((PyObject *)); + PyObject *(*cgetvalue)(PyObject *); /* Create a new output object */ - PyObject *(*NewOutput) Py_FPROTO((int)); + PyObject *(*NewOutput)(int); /* Create an input object from a Python string */ - PyObject *(*NewInput) Py_FPROTO((PyObject *)); + PyObject *(*NewInput)(PyObject *); /* The Python types for cStringIO input and output objects. Note that you can do input on an output object. diff --git a/Include/methodobject.h b/Include/methodobject.h index ace58d3..bb9d964 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -20,9 +20,9 @@ extern DL_IMPORT(PyTypeObject) PyCFunction_Type; #define PyCFunction_Check(op) ((op)->ob_type == &PyCFunction_Type) -typedef PyObject *(*PyCFunction) Py_FPROTO((PyObject *, PyObject *)); -typedef PyObject *(*PyCFunctionWithKeywords) - Py_FPROTO((PyObject *, PyObject *, PyObject *)); +typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); +typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *, + PyObject *); extern DL_IMPORT(PyCFunction) PyCFunction_GetFunction(PyObject *); extern DL_IMPORT(PyObject *) PyCFunction_GetSelf(PyObject *); 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 diff --git a/Include/mymath.h b/Include/mymath.h index 3a8c62e..7873a3d 100644 --- a/Include/mymath.h +++ b/Include/mymath.h @@ -10,7 +10,7 @@ #endif #ifndef HAVE_HYPOT -extern double hypot Py_PROTO((double, double)); +extern double hypot(double, double); #ifdef MWERKS_BEFORE_PRO4 #define hypot we_dont_want_faulty_hypot_decl #endif diff --git a/Include/myproto.h b/Include/myproto.h index 40abdea..94be8df 100644 --- a/Include/myproto.h +++ b/Include/myproto.h @@ -14,6 +14,11 @@ See the file "Misc/COPYRIGHT" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ******************************************************************/ +/*************************************** +THIS FILE IS OBSOLETE +DON'T USE Py_PROTO or Py_FPROTO anymore. +***************************************/ + #ifdef HAVE_PROTOTYPES #define Py_PROTO(x) x #else |