#include "pyconfig.h"
#if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API)
#define Py_LIMITED_API …
#endif
#include "parts.h"
#include <stddef.h>
#include <string.h>
#include "clinic/heaptype_relative.c.h"
static PyType_Slot empty_slots[] = …;
static PyObject *
make_sized_heaptypes(PyObject *module, PyObject *args)
{ … }
static PyObject *
var_heaptype_set_data_to_3s(
PyObject *self, PyTypeObject *defining_class,
PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ … }
static PyObject *
var_heaptype_get_data(PyObject *self, PyTypeObject *defining_class,
PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
{ … }
static PyMethodDef var_heaptype_methods[] = …;
static PyObject *
subclass_var_heaptype(PyObject *module, PyObject *args)
{ … }
static PyObject *
subclass_heaptype(PyObject *module, PyObject *args)
{ … }
static PyMemberDef *
heaptype_with_member_extract_and_check_memb(PyObject *self)
{ … }
static PyObject *
heaptype_with_member_get_memb(PyObject *self, PyObject *Py_UNUSED(ignored))
{ … }
static PyObject *
heaptype_with_member_set_memb(PyObject *self, PyObject *value)
{ … }
static PyObject *
get_memb_offset(PyObject *self, PyObject *Py_UNUSED(ignored))
{ … }
static PyObject *
heaptype_with_member_get_memb_relative(PyObject *self, PyObject *Py_UNUSED(ignored))
{ … }
static PyObject *
heaptype_with_member_set_memb_relative(PyObject *self, PyObject *value)
{ … }
HeapCTypeWithDictStruct;
static void
heapctypewithrelativedict_dealloc(PyObject* self)
{ … }
static PyType_Spec HeapCTypeWithRelativeDict_spec = …;
HeapCTypeWithWeakrefStruct;
static void
heapctypewithrelativeweakref_dealloc(PyObject* self)
{ … }
static PyType_Spec HeapCTypeWithRelativeWeakref_spec = …;
static PyMethodDef heaptype_with_member_methods[] = …;
static PyObject *
make_heaptype_with_member_impl(PyObject *module, int extra_base_size,
int basicsize, int member_offset,
int add_relative_flag,
const char *member_name, int member_flags,
int member_type)
{ … }
static PyObject *
test_alignof_max_align_t(PyObject *module, PyObject *Py_UNUSED(ignored))
{ … }
static PyMethodDef TestMethods[] = …;
int
_PyTestLimitedCAPI_Init_HeaptypeRelative(PyObject *m)
{ … }