cpython/Modules/_testlimitedcapi/heaptype_relative.c

// Need limited C API version 3.12 for PyType_FromMetaclass()
#include "pyconfig.h"   // Py_GIL_DISABLED
#if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API)
#define Py_LIMITED_API
#endif

#include "parts.h"
#include <stddef.h>               // max_align_t
#include <string.h>               // memset

#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[] =;

/*[clinic input]
make_heaptype_with_member

    extra_base_size: int = 0
    basicsize: int = 0
    member_offset: int = 0
    add_relative_flag: bool = False
    *
    member_name: str = "memb"
    member_flags: int = 0
    member_type: int(c_default="Py_T_BYTE") = -1

[clinic start generated code]*/

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)
/*[clinic end generated code: output=7005db9a07396997 input=007e29cdbe1d3390]*/
{}


static PyObject *
test_alignof_max_align_t(PyObject *module, PyObject *Py_UNUSED(ignored))
{}

static PyMethodDef TestMethods[] =;

int
_PyTestLimitedCAPI_Init_HeaptypeRelative(PyObject *m)
{}