mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Use K&R function prototypes.
This commit is contained in:
parent
6cd7ecb10b
commit
eec6ef1aa2
1 changed files with 12 additions and 7 deletions
|
@ -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 @@
|
||||||
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 {
|
||||||
((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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue