diff options
author | Guido van Rossum <guido@python.org> | 1996-08-01 00:02:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-01 00:02:33 (GMT) |
commit | cee555bda2c32d998ac0e69e3e8129822cb9c058 (patch) | |
tree | 279a533e5d0d090a5590aaf32c02f0e866b7d92a | |
parent | 42dcad36a91bf1278eb78c7bfa1d64470c0f77b3 (diff) | |
download | cpython-cee555bda2c32d998ac0e69e3e8129822cb9c058.zip cpython-cee555bda2c32d998ac0e69e3e8129822cb9c058.tar.gz cpython-cee555bda2c32d998ac0e69e3e8129822cb9c058.tar.bz2 |
Allow compilation by K&R C compiler.
-rw-r--r-- | Objects/cobject.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Objects/cobject.c b/Objects/cobject.c index f14a4d9..64c8a5e 100644 --- a/Objects/cobject.c +++ b/Objects/cobject.c @@ -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 = { |