Added some defines for PyMODINIT_FUNC so that the examples work
with Python 2.2.
I think I'm done hacking this documentation. Yippie! :)
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy(void)
{
{
Py_XDECREF(self->first);
Py_XDECREF(self->last);
- self->ob_type->tp_free(self);
+ self->ob_type->tp_free((PyObject*)self);
}
static PyObject *
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy2(void)
{
{
Py_XDECREF(self->first);
Py_XDECREF(self->last);
- self->ob_type->tp_free(self);
+ self->ob_type->tp_free((PyObject*)self);
}
static PyObject *
{NULL} /* Sentinel */
};
+#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
+#define PyMODINIT_FUNC void
+#endif
PyMODINIT_FUNC
initnoddy3(void)
{