Commits

Anonymous committed 9cf11af

Allow compilation by K&R C compiler.

  • Participants
  • Parent commits 6d5096b
  • Branches legacy-trunk

Comments (0)

Files changed (1)

Objects/cobject.c

 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;
 	
 }
 
 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 = {