#ifndef Py_BUILD_CORE_BUILTIN
#define Py_BUILD_CORE_MODULE …
#endif
#include "Python.h"
#include "pycore_moduleobject.h"
#include "pycore_object.h"
#include "pycore_runtime.h"
#include "pycore_setobject.h"
#include "pycore_weakref.h"
#include "clinic/_abc.c.h"
PyDoc_STRVAR(_abc__doc__,
"Module contains faster C implementation of abc.ABCMeta");
_abcmodule_state;
static inline _abcmodule_state*
get_abc_state(PyObject *module)
{ … }
static inline uint64_t
get_invalidation_counter(_abcmodule_state *state)
{ … }
static inline void
increment_invalidation_counter(_abcmodule_state *state)
{ … }
_abc_data;
static inline uint64_t
get_cache_version(_abc_data *impl)
{ … }
static inline void
set_cache_version(_abc_data *impl, uint64_t version)
{ … }
static int
abc_data_traverse(_abc_data *self, visitproc visit, void *arg)
{ … }
static int
abc_data_clear(_abc_data *self)
{ … }
static void
abc_data_dealloc(_abc_data *self)
{ … }
static PyObject *
abc_data_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{ … }
PyDoc_STRVAR(abc_data_doc,
"Internal state held by ABC machinery.");
static PyType_Slot _abc_data_type_spec_slots[] = …;
static PyType_Spec _abc_data_type_spec = …;
static _abc_data *
_get_impl(PyObject *module, PyObject *self)
{ … }
static int
_in_weak_set(_abc_data *impl, PyObject **pset, PyObject *obj)
{ … }
static PyObject *
_destroy(PyObject *setweakref, PyObject *objweakref)
{ … }
static PyMethodDef _destroy_def = …;
static int
_add_to_weak_set(_abc_data *impl, PyObject **pset, PyObject *obj)
{ … }
static PyObject *
_abc__reset_registry(PyObject *module, PyObject *self)
{ … }
static PyObject *
_abc__reset_caches(PyObject *module, PyObject *self)
{ … }
static PyObject *
_abc__get_dump(PyObject *module, PyObject *self)
{ … }
static int
compute_abstract_methods(PyObject *self)
{ … }
#define COLLECTION_FLAGS …
static PyObject *
_abc__abc_init(PyObject *module, PyObject *self)
{ … }
static PyObject *
_abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass)
{ … }
static PyObject *
_abc__abc_instancecheck_impl(PyObject *module, PyObject *self,
PyObject *instance)
{ … }
static int subclasscheck_check_registry(_abc_data *impl, PyObject *subclass,
PyObject **result);
static PyObject *
_abc__abc_subclasscheck_impl(PyObject *module, PyObject *self,
PyObject *subclass)
{ … }
static int
subclasscheck_check_registry(_abc_data *impl, PyObject *subclass,
PyObject **result)
{ … }
static PyObject *
_abc_get_cache_token_impl(PyObject *module)
{ … }
static struct PyMethodDef _abcmodule_methods[] = …;
static int
_abcmodule_exec(PyObject *module)
{ … }
static int
_abcmodule_traverse(PyObject *module, visitproc visit, void *arg)
{ … }
static int
_abcmodule_clear(PyObject *module)
{ … }
static void
_abcmodule_free(void *module)
{ … }
static PyModuleDef_Slot _abcmodule_slots[] = …;
static struct PyModuleDef _abcmodule = …;
PyMODINIT_FUNC
PyInit__abc(void)
{ … }