Python tp_allocs -> tp_next corrections
Updates for Python 2.5 and later and for -builtin.
This commit is contained in:
parent
24b4a0fb94
commit
5f93c94e87
4 changed files with 37 additions and 4 deletions
|
|
@ -4053,6 +4053,15 @@ public:
|
|||
Printv(f, "#if PY_VERSION_HEX >= 0x03040000\n", NIL);
|
||||
printSlot(f, getSlot(n, "feature:python:tp_finalize"), "tp_finalize", "destructor");
|
||||
Printv(f, "#endif\n", NIL);
|
||||
Printv(f, "#ifdef COUNT_ALLOCS\n", NIL);
|
||||
printSlot(f, getSlot(), "tp_allocs", "Py_ssize_t");
|
||||
printSlot(f, getSlot(), "tp_frees", "Py_ssize_t");
|
||||
printSlot(f, getSlot(), "tp_maxalloc", "Py_ssize_t");
|
||||
Printv(f, "#if PY_VERSION_HEX >= 0x02050000\n", NIL);
|
||||
printSlot(f, getSlot(), "tp_prev", "struct _typeobject*");
|
||||
Printv(f, "#endif\n", NIL);
|
||||
printSlot(f, getSlot(), "tp_next", "struct _typeobject*");
|
||||
Printv(f, "#endif\n", NIL);
|
||||
Printf(f, " },\n");
|
||||
|
||||
// PyAsyncMethods as_async
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue