*.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>
Sat, 11 Apr 2020 11:44:14 +0000 (12:44 +0100)
commit2a448f86048c26a24288d310b3bb70e8ae7e7528
tree8cdbf40015bbfa39eb3bb93d3f49122c86bca75f
parenta539ffb8538158c1dc7eeb4ad5264a6e995496b6
*.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
ec.c
mp.c
pyke/pyke.h