-
Committer:
Phil Connell
-
Date:
2013-04-16 19:57:45 UTC
-
Revision ID:
pconnell@gmail.com-20130416195745-dwh8u6aka1k1tn0o
Add distinct macros to change an refcounts and types
Previously, Py_REFCNT and PY_TYPE were used both as lvalues and rvalues. To
cope with unboxed types, they need to include a condition (or a
bitwise/arithmetic expression), which can't be used as an lvalue.
So, Py_REFCNF_UPDATE and Py_TYPE_UPDATE are added to be used where the old
macros would have been used as lvalues.