Commit 12a06e89 authored by Guido van Rossum's avatar Guido van Rossum

Use K&R function prototypes.

parent 61693903
...@@ -70,6 +70,9 @@ ...@@ -70,6 +70,9 @@
This would typically be done in your init function. This would typically be done in your init function.
$Log$ $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 Revision 2.5 1997/08/13 03:14:08 guido
cPickle release 0.3 from Jim Fulton cPickle release 0.3 from Jim Fulton
...@@ -91,22 +94,22 @@ ...@@ -91,22 +94,22 @@
static struct PycStringIO_CAPI { static struct PycStringIO_CAPI {
/* Read a string. If the last argument is -1, the remainder will be read. */ /* 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 */ /* Read a line */
int(*creadline)(PyObject *, char **); int(*creadline) Py_FPROTO((PyObject *, char **));
/* Write a string */ /* Write a string */
int(*cwrite)(PyObject *, char *, int); int(*cwrite) Py_FPROTO((PyObject *, char *, int));
/* Get the cStringIO object as a Python string */ /* Get the cStringIO object as a Python string */
PyObject *(*cgetvalue)(PyObject *); PyObject *(*cgetvalue) Py_FPROTO((PyObject *));
/* Create a new output object */ /* Create a new output object */
PyObject *(*NewOutput)(int); PyObject *(*NewOutput) Py_FPROTO((int));
/* Create an input object from a Python string */ /* 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. /* The Python types for cStringIO input and output objects.
Note that you can do input on an output object. Note that you can do input on an output object.
...@@ -122,7 +125,9 @@ static struct PycStringIO_CAPI { ...@@ -122,7 +125,9 @@ static struct PycStringIO_CAPI {
((O)->ob_type==PycStringIO->OutputType) ((O)->ob_type==PycStringIO->OutputType)
static void * static void *
xxxPyCObject_Import(char *module_name, char *name) xxxPyCObject_Import(module_name, name)
char *module_name;
char *name;
{ {
PyObject *m, *c; PyObject *m, *c;
void *r=NULL; void *r=NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment