~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1942563
)
catacomb-python.h (GEN): Remove `const' from input table type carefully.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 21 Oct 2019 12:07:43 +0000
(13:07 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000
(17:43 +0000)
We have this new machinery, so we should use it.
catacomb-python.h
patch
|
blob
|
blame
|
history
diff --git
a/catacomb-python.h
b/catacomb-python.h
index
6bae38a
..
4c7ced4
100644
(file)
--- a/
catacomb-python.h
+++ b/
catacomb-python.h
@@
-145,7
+145,8
@@
extern int convmpw(PyObject *, void *);
int i; \
\
for (i = 0; g##base##tab[i]; i++) { \
- o = gc##base##_pywrap((/*unconst*/ gc##base *)g##base##tab[i]); \
+ o = gc##base##_pywrap(CONVERT_CAREFULLY(gc##base *, const gc##base *, \
+ g##base##tab[i])); \
PyDict_SetItemString(d, \
(/*unconst*/ char *)g##base##tab[i]->name, \
o); \