/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Include/pytypedefs.h
31 строка
881 B
Petr Viktorin
gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055)
05 май 2026, 10:18
Не верифицирован
05 май 2026, 10:18
508b498
Код
Авторство
О чём код?
// Forward declarations of types of the Python C API. // Declare them at the same place since redefining typedef is a C11 feature. // Only use a forward declaration if there is an interdependency between two // header files. #ifndef Py_PYTYPEDEFS_H #define Py_PYTYPEDEFS_H #ifdef __cplusplus extern "C" { #endif typedef struct PyModuleDef PyModuleDef; typedef struct PyModuleDef_Slot PyModuleDef_Slot; typedef struct PyMethodDef PyMethodDef; typedef struct PyGetSetDef PyGetSetDef; typedef struct PyMemberDef PyMemberDef; typedef struct PySlot PySlot; typedef struct _object PyObject; typedef struct _longobject PyLongObject; typedef struct _typeobject PyTypeObject; typedef struct PyCodeObject PyCodeObject; typedef struct _frame PyFrameObject; typedef struct _ts PyThreadState; typedef struct _is PyInterpreterState; #ifdef __cplusplus } #endif #endif // !Py_PYTYPEDEFS_H