#ifndef Py_INTERNAL_OBJECT_STACK_H
#define Py_INTERNAL_OBJECT_STACK_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
#define _Py_OBJECT_STACK_CHUNK_SIZE …
_PyObjectStackChunk;
_PyObjectStack;
extern _PyObjectStackChunk *
_PyObjectStackChunk_New(void);
extern void
_PyObjectStackChunk_Free(_PyObjectStackChunk *);
static inline int
_PyObjectStack_Push(_PyObjectStack *stack, PyObject *obj)
{ … }
static inline PyObject *
_PyObjectStack_Pop(_PyObjectStack *stack)
{ … }
static inline Py_ssize_t
_PyObjectStack_Size(_PyObjectStack *stack)
{ … }
extern void
_PyObjectStack_Merge(_PyObjectStack *dst, _PyObjectStack *src);
extern void
_PyObjectStack_Clear(_PyObjectStack *stack);
#ifdef __cplusplus
}
#endif
#endif