chiark
/
gitweb
/
~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Consistently make keyword-lists be static and read-only.
[pyke]
/
catacomb-python.h
diff --git
a/catacomb-python.h
b/catacomb-python.h
index 1989cd0409c388af6bbe2aaec1036044b568be18..bbb5fac76e41388fc10a81e7010427cae8a05822 100644
(file)
--- a/
catacomb-python.h
+++ b/
catacomb-python.h
@@
-231,6
+231,8
@@
MODULES(DO)
return (d); \
}
+#define KWLIST (/*unconst*/ char **)kwlist
+
struct nameval { const char *name; unsigned long value; };
extern void setconstants(PyObject *, const struct nameval *);