chiark
/
gitweb
/
~mdw
/
pyke
/ 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.
[pyke]
/
pyke.c
diff --git
a/pyke.c
b/pyke.c
index 883223a925f69b4b667d2fd1109240ee281ff156..b462a1f8196454005769025753c0a89192e5359a 100644
(file)
--- a/
pyke.c
+++ b/
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;