diff Include/cStringIO.h @ 6421:c62e34ea464b legacy-trunk

Use K&R function prototypes.
author Guido van Rossum <guido@python.org>
date Tue, 07 Oct 1997 14:44:48 +0000
parents a5737dd96979
children 4cf0da071e2b
line wrap: on
line diff
--- a/Include/cStringIO.h	Tue Oct 07 14:41:04 1997 +0000
+++ b/Include/cStringIO.h	Tue Oct 07 14:44:48 1997 +0000
@@ -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 @@
   ((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;