]> granicus.if.org Git - python/commitdiff
Allow compilation by K&R C compiler.
authorGuido van Rossum <guido@python.org>
Thu, 1 Aug 1996 00:02:33 +0000 (00:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 1 Aug 1996 00:02:33 +0000 (00:02 +0000)
Objects/cobject.c

index f14a4d940756023ad82ed1ac1c1e650549e6a24a..64c8a5e786c54b39c5d7e865a11e588b5a0c0349 100644 (file)
@@ -32,13 +32,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 typedef struct {
        PyObject_HEAD
        void *cobject;
-       void (*destructor)(void *);
+       void (*destructor) Py_PROTO((void *));
 } PyCObject;
 
 PyObject *
 PyCObject_FromVoidPtr(cobj, destr)
        void *cobj;
-       void (*destr)(void *);
+       void (*destr) Py_PROTO((void *));
 {
        PyCObject *self;
        
@@ -66,12 +66,12 @@ PyCObject_dealloc(self)
 }
 
 static char PyCObject_Type__doc__[] = 
-"C objects to be exported from one extension module to another\n"
-"\n"
-"C objects are used for communication between extension modules.  They\n"
-"provide a way for an extension module to export a C interface to other\n"
-"extension modules, so that extension modules can use the Python import\n"
-"mechanism to link to one another.\n"
+"C objects to be exported from one extension module to another\n\
+\n\
+C objects are used for communication between extension modules.  They\n\
+provide a way for an extension module to export a C interface to other\n\
+extension modules, so that extension modules can use the Python import\n\
+mechanism to link to one another.\n"
 ;
 
 PyTypeObject PyCObject_Type = {