summaryrefslogtreecommitdiffstats
path: root/Doc/ext/noddy3.c
diff options
context:
space:
mode:
authorJim Fulton <jim@zope.com>2003-05-16 13:53:43 (GMT)
committerJim Fulton <jim@zope.com>2003-05-16 13:53:43 (GMT)
commit1f325562f024132d3603c718966dd5d8c8be79ea (patch)
tree81c055eaa59d7d0a12e983ed3fa36be3ff3ae782 /Doc/ext/noddy3.c
parenta24d73ddb15c8f1d1a2073a4cc16859333d23bb4 (diff)
downloadcpython-1f325562f024132d3603c718966dd5d8c8be79ea.zip
cpython-1f325562f024132d3603c718966dd5d8c8be79ea.tar.gz
cpython-1f325562f024132d3603c718966dd5d8c8be79ea.tar.bz2
Added some missing PyObject* casts in the deallocators.
Added some defines for PyMODINIT_FUNC so that the examples work with Python 2.2. I think I'm done hacking this documentation. Yippie! :)
Diffstat (limited to 'Doc/ext/noddy3.c')
-rw-r--r--Doc/ext/noddy3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/ext/noddy3.c b/Doc/ext/noddy3.c
index f286caf..7b044d1 100644
--- a/Doc/ext/noddy3.c
+++ b/Doc/ext/noddy3.c
@@ -13,7 +13,7 @@ Noddy_dealloc(Noddy* self)
{
Py_XDECREF(self->first);
Py_XDECREF(self->last);
- self->ob_type->tp_free(self);
+ self->ob_type->tp_free((PyObject*)self);
}
static PyObject *
@@ -220,6 +220,9 @@ static PyMethodDef module_methods[] = {
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy3(void)
{