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/pyke/commitdiff_plain/747ddb1b97d37fd57efae3c99c2bd188a14df308?hp=747ddb1b97d37fd57efae3c99c2bd188a14df308 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'. ---