*.c: Use the new `Py_TYPE' and `Py_SIZE' macros; define them if necessary.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Oct 2019 23:19:44 +0000 (00:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
commitf984b31a0c2f39711261b91433aedb54628cb963
tree0104f1a8d560516b646b1b9de74b1d9bca6294b8
parentb115b0c0883c2af8170b0e733bb1c47b40f2647e
*.c: Use the new `Py_TYPE' and `Py_SIZE' macros; define them if necessary.

Python 2.6 introduced macros to access object header fields, which is
handy because Python 3 changes the way object headers are
structured.  (I think the binary layout is unchanged, but the C-level
structuring is definitely different.)

This is the start of Python 3 porting work.
algorithms.c
bytestring.c
catacomb-python.h
mp.c
pyke/pyke.h