summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/cStringIO.h19
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;