diff options
author | Guido van Rossum <guido@python.org> | 1997-10-07 14:44:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-07 14:44:48 (GMT) |
commit | eec6ef1aa279e258d2c067d2916120d132d00806 (patch) | |
tree | 786d888530b0141d7b80a8487b49251e06584bbb /Include | |
parent | 6cd7ecb10be4a67a091904b25257f61f801b8968 (diff) | |
download | cpython-eec6ef1aa279e258d2c067d2916120d132d00806.zip cpython-eec6ef1aa279e258d2c067d2916120d132d00806.tar.gz cpython-eec6ef1aa279e258d2c067d2916120d132d00806.tar.bz2 |
Use K&R function prototypes.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cStringIO.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Include/cStringIO.h b/Include/cStringIO.h index ceb9c16..fa8fffe 100644 --- a/Include/cStringIO.h +++ b/Include/cStringIO.h @@ -70,6 +70,9 @@ This would typically be done in your init function. $Log$ + Revision 2.6 1997/10/07 14:44:48 guido + Use K&R function prototypes. + Revision 2.5 1997/08/13 03:14:08 guido cPickle release 0.3 from Jim Fulton @@ -91,22 +94,22 @@ static struct PycStringIO_CAPI { /* Read a string. If the last argument is -1, the remainder will be read. */ - int(*cread)(PyObject *, char **, int); + int(*cread) Py_FPROTO((PyObject *, char **, int)); /* Read a line */ - int(*creadline)(PyObject *, char **); + int(*creadline) Py_FPROTO((PyObject *, char **)); /* Write a string */ - int(*cwrite)(PyObject *, char *, int); + int(*cwrite) Py_FPROTO((PyObject *, char *, int)); /* Get the cStringIO object as a Python string */ - PyObject *(*cgetvalue)(PyObject *); + PyObject *(*cgetvalue) Py_FPROTO((PyObject *)); /* Create a new output object */ - PyObject *(*NewOutput)(int); + PyObject *(*NewOutput) Py_FPROTO((int)); /* Create an input object from a Python string */ - PyObject *(*NewInput)(PyObject *); + PyObject *(*NewInput) Py_FPROTO((PyObject *)); /* The Python types for cStringIO input and output objects. Note that you can do input on an output object. @@ -122,7 +125,9 @@ static struct PycStringIO_CAPI { ((O)->ob_type==PycStringIO->OutputType) static void * -xxxPyCObject_Import(char *module_name, char *name) +xxxPyCObject_Import(module_name, name) + char *module_name; + char *name; { PyObject *m, *c; void *r=NULL; |