lp:~ensoft-opensource/+junk/cpython-boxes-cleanup
- Get this branch:
- bzr branch lp:~ensoft-opensource/+junk/cpython-boxes-cleanup
Branch information
- Owner:
- Ensoft Open Source
- Status:
- Development
Recent revisions
- 5. By Phil Connell
-
Fix sense of the Py_BOX macros (they're all Py_UNBOXED now).
Also a minor refactor in longobject: _PyLong_
AsLong_ RETURN_ UNBOXED
shortcircuits the PyLong_AsLong functions. - 4. By Phil Connell
-
Fix build errors in longobject.c
Things that need to be sorted out:
- Errors (more Py_TYPE_UPDATE uses needed)
- Bunch of warnings that need cleaning up
- Ugly casts all over the place:
- is uintptr_t the right type for 'unboxed' pointers? (probably)
- why all the casts between PyLongObject and PyObject? - 3. By Phil Connell
-
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.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)