~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*.c: Make all of the type-definition tables read-only.
[catacomb-python]
/
pyke
/
pyke.c
diff --git
a/pyke/pyke.c
b/pyke/pyke.c
index
883223a
..
b462a1f
100644
(file)
--- a/
pyke/pyke.c
+++ b/
pyke/pyke.c
@@
-260,7
+260,7
@@
PyTypeObject *inittype(PyTypeObject *tyskel, PyTypeObject *meta)
/*----- Populating modules ------------------------------------------------*/
PyObject *mkexc(PyObject *mod, PyObject *base,
/*----- Populating modules ------------------------------------------------*/
PyObject *mkexc(PyObject *mod, PyObject *base,
- const char *name, PyMethodDef *mm)
+ const char *name,
const
PyMethodDef *mm)
{
PyObject *nameobj = 0;
PyObject *dict = 0;
{
PyObject *nameobj = 0;
PyObject *dict = 0;
@@
-272,7
+272,8
@@
PyObject *mkexc(PyObject *mod, PyObject *base,
if (mm) {
while (mm->ml_name) {
if (mm) {
while (mm->ml_name) {
- if ((func = PyCFunction_NewEx(mm, 0, mod)) == 0 ||
+ if ((func = PyCFunction_NewEx((/*unconst*/ PyMethodDef *)mm,
+ 0, mod)) == 0 ||
(meth = PyMethod_New(func, 0, exc)) == 0 ||
PyDict_SetItemString(dict, mm->ml_name, meth))
goto fail;
(meth = PyMethod_New(func, 0, exc)) == 0 ||
PyDict_SetItemString(dict, mm->ml_name, meth))
goto fail;