Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eec6ef1

Browse files
committed
Use K&R function prototypes.
1 parent 6cd7ecb commit eec6ef1

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

Include/cStringIO.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
This would typically be done in your init function.
7171
7272
$Log$
73+
Revision 2.6 1997/10/07 14:44:48 guido
74+
Use K&R function prototypes.
75+
7376
Revision 2.5 1997/08/13 03:14:08 guido
7477
cPickle release 0.3 from Jim Fulton
7578
@@ -91,22 +94,22 @@
9194
static struct PycStringIO_CAPI {
9295

9396
/* Read a string. If the last argument is -1, the remainder will be read. */
94-
int(*cread)(PyObject *, char **, int);
97+
int(*cread) Py_FPROTO((PyObject *, char **, int));
9598

9699
/* Read a line */
97-
int(*creadline)(PyObject *, char **);
100+
int(*creadline) Py_FPROTO((PyObject *, char **));
98101

99102
/* Write a string */
100-
int(*cwrite)(PyObject *, char *, int);
103+
int(*cwrite) Py_FPROTO((PyObject *, char *, int));
101104

102105
/* Get the cStringIO object as a Python string */
103-
PyObject *(*cgetvalue)(PyObject *);
106+
PyObject *(*cgetvalue) Py_FPROTO((PyObject *));
104107

105108
/* Create a new output object */
106-
PyObject *(*NewOutput)(int);
109+
PyObject *(*NewOutput) Py_FPROTO((int));
107110

108111
/* Create an input object from a Python string */
109-
PyObject *(*NewInput)(PyObject *);
112+
PyObject *(*NewInput) Py_FPROTO((PyObject *));
110113

111114
/* The Python types for cStringIO input and output objects.
112115
Note that you can do input on an output object.
@@ -122,7 +125,9 @@ static struct PycStringIO_CAPI {
122125
((O)->ob_type==PycStringIO->OutputType)
123126

124127
static void *
125-
xxxPyCObject_Import(char *module_name, char *name)
128+
xxxPyCObject_Import(module_name, name)
129+
char *module_name;
130+
char *name;
126131
{
127132
PyObject *m, *c;
128133
void *r=NULL;

0 commit comments

Comments
 (0)