// Stack of Python objects #include "Python.h" #include "pycore_freelist.h" #include "pycore_pystate.h" #include "pycore_object_stack.h" extern _PyObjectStackChunk *_PyObjectStackChunk_New(void); extern void _PyObjectStackChunk_Free(_PyObjectStackChunk *); _PyObjectStackChunk * _PyObjectStackChunk_New(void) { … } void _PyObjectStackChunk_Free(_PyObjectStackChunk *buf) { … } void _PyObjectStack_Clear(_PyObjectStack *queue) { … } void _PyObjectStack_Merge(_PyObjectStack *dst, _PyObjectStack *src) { … }