From: Mark Wooding Date: Sun, 20 Oct 2019 20:18:08 +0000 (+0100) Subject: pyke/pyke.[ch]: Make type skeleton structures be read-only. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/c263b05cca879ab1bdca5823df0413604d39d4c6?ds=sidebyside;hp=c263b05cca879ab1bdca5823df0413604d39d4c6 pyke/pyke.[ch]: Make type skeleton structures be read-only. We couldn't do this before because `INITTYPE_META' would write the direct superclass to the `tp_base' slot in the skeleton before calling `inittype'. To make this work, then, we adjust `inittype' to take the direct superclass as an extra argument and plug it into the newly created heap-type; and `INITTYPE_META' needs adjusting to pass this argument rather than trying to write to the skeleton directly. Of course, then we need to actually mark the type skeletons as `const'. ---