chiark / gitweb /
*.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)
commit4509276e7147042c753ec7180d1dd8e1f5923906
tree258cf1c2669067abfa248ffd32194607ba3a1f4c
parent78daa0e0a7bd479a1618ba5409ef2a187588a941
*.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.
pyke.h