diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-08 17:25:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-08 17:25:55 (GMT) |
commit | d5c84ede06311f61a21cd5656e8c1ea54c8bfd29 (patch) | |
tree | be21a79ace244dbf299a0c6e582cafb2bee59adc /Include/modsupport.h | |
parent | 146b28086fe479be3477d87547569b7c1b7a5652 (diff) | |
download | cpython-d5c84ede06311f61a21cd5656e8c1ea54c8bfd29.zip cpython-d5c84ede06311f61a21cd5656e8c1ea54c8bfd29.tar.gz cpython-d5c84ede06311f61a21cd5656e8c1ea54c8bfd29.tar.bz2 |
ANSI-fication of the sources -- remove Py_PROTO!
Diffstat (limited to 'Include/modsupport.h')
-rw-r--r-- | Include/modsupport.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index 86dbb0e..c50d769 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -1,9 +1,3 @@ -#ifndef Py_MODSUPPORT_H -#define Py_MODSUPPORT_H -#ifdef __cplusplus -extern "C" { -#endif - /*********************************************************** Copyright (c) 2000, BeOpen.com. Copyright (c) 1995-2000, Corporation for National Research Initiatives. @@ -14,17 +8,23 @@ See the file "Misc/COPYRIGHT" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ******************************************************************/ +#ifndef Py_MODSUPPORT_H +#define Py_MODSUPPORT_H +#ifdef __cplusplus +extern "C" { +#endif + /* Module support interface */ #ifdef HAVE_STDARG_PROTOTYPES #include <stdarg.h> -extern DL_IMPORT(int) PyArg_Parse Py_PROTO((PyObject *, char *, ...)); -extern DL_IMPORT(int) PyArg_ParseTuple Py_PROTO((PyObject *, char *, ...)); -extern DL_IMPORT(int) PyArg_ParseTupleAndKeywords Py_PROTO((PyObject *, PyObject *, - char *, char **, ...)); -extern DL_IMPORT(PyObject *) Py_BuildValue Py_PROTO((char *, ...)); +extern DL_IMPORT(int) PyArg_Parse(PyObject *, char *, ...); +extern DL_IMPORT(int) PyArg_ParseTuple(PyObject *, char *, ...); +extern DL_IMPORT(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *, + char *, char **, ...); +extern DL_IMPORT(PyObject *) Py_BuildValue(char *, ...); #else @@ -37,8 +37,8 @@ extern DL_IMPORT(PyObject *) Py_BuildValue(); #endif -extern DL_IMPORT(int) PyArg_VaParse Py_PROTO((PyObject *, char *, va_list)); -extern DL_IMPORT(PyObject *) Py_VaBuildValue Py_PROTO((char *, va_list)); +extern DL_IMPORT(int) PyArg_VaParse(PyObject *, char *, va_list); +extern DL_IMPORT(PyObject *) Py_VaBuildValue(char *, va_list); #define PYTHON_API_VERSION 1009 #define PYTHON_API_STRING "1009" @@ -90,8 +90,10 @@ extern DL_IMPORT(PyObject *) Py_VaBuildValue Py_PROTO((char *, va_list)); #define Py_InitModule4 Py_InitModule4TraceRefs #endif -extern DL_IMPORT(PyObject *) Py_InitModule4 Py_PROTO((char *, PyMethodDef *, - char *, PyObject *, int)); +extern DL_IMPORT(PyObject *) Py_InitModule4(char *name, PyMethodDef *methods, + char *doc, PyObject *self, + int apiver); + #define Py_InitModule(name, methods) \ Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \ PYTHON_API_VERSION) |