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

Skip to content

Commit cee555b

Browse files
committed
Allow compilation by K&R C compiler.
1 parent 42dcad3 commit cee555b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Objects/cobject.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3232
typedef struct {
3333
PyObject_HEAD
3434
void *cobject;
35-
void (*destructor)(void *);
35+
void (*destructor) Py_PROTO((void *));
3636
} PyCObject;
3737

3838
PyObject *
3939
PyCObject_FromVoidPtr(cobj, destr)
4040
void *cobj;
41-
void (*destr)(void *);
41+
void (*destr) Py_PROTO((void *));
4242
{
4343
PyCObject *self;
4444

@@ -66,12 +66,12 @@ PyCObject_dealloc(self)
6666
}
6767

6868
static char PyCObject_Type__doc__[] =
69-
"C objects to be exported from one extension module to another\n"
70-
"\n"
71-
"C objects are used for communication between extension modules. They\n"
72-
"provide a way for an extension module to export a C interface to other\n"
73-
"extension modules, so that extension modules can use the Python import\n"
74-
"mechanism to link to one another.\n"
69+
"C objects to be exported from one extension module to another\n\
70+
\n\
71+
C objects are used for communication between extension modules. They\n\
72+
provide a way for an extension module to export a C interface to other\n\
73+
extension modules, so that extension modules can use the Python import\n\
74+
mechanism to link to one another.\n"
7575
;
7676

7777
PyTypeObject PyCObject_Type = {

0 commit comments

Comments
 (0)