]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605)
authorEric Snow <ericsnowcurrently@gmail.com>
Fri, 18 Oct 2024 15:26:08 +0000 (09:26 -0600)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2024 15:26:08 +0000 (09:26 -0600)
commit6d93690954daae9e9a368084765a4005f957686d
tree35e6f3793db0c36a33df6caa42d2f1f266c7db12
parent2e950e341930ea79549137d4d3771d5edb940e65
gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605)

This is essentially a cleanup, moving a handful of API declarations to the header files where they fit best, creating new ones when needed.

We do the following:

* add pycore_debug_offsets.h and move _Py_DebugOffsets, etc. there
* inline struct _getargs_runtime_state and struct _gilstate_runtime_state in _PyRuntimeState
* move struct _reftracer_runtime_state to the existing pycore_object_state.h
* add pycore_audit.h and move to it _Py_AuditHookEntry , _PySys_Audit(), and _PySys_ClearAuditHooks
* add audit.h and cpython/audit.h and move the existing audit-related API there
*move the perfmap/trampoline API from cpython/sysmodule.h to cpython/ceval.h, and remove the now-empty cpython/sysmodule.h
26 files changed:
Include/Python.h
Include/audit.h [new file with mode: 0644]
Include/cpython/audit.h [new file with mode: 0644]
Include/cpython/ceval.h
Include/cpython/sysmodule.h [deleted file]
Include/internal/pycore_audit.h [new file with mode: 0644]
Include/internal/pycore_debug_offsets.h [new file with mode: 0644]
Include/internal/pycore_object_state.h
Include/internal/pycore_runtime.h
Include/internal/pycore_runtime_init.h
Include/internal/pycore_sysmodule.h
Include/sysmodule.h
Makefile.pre.in
Modules/_testexternalinspection.c
Objects/object.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/bytecodes.c
Python/ceval.c
Python/errors.c
Python/import.c
Python/legacy_tracing.c
Python/pylifecycle.c
Python/pystate.c
Python/pythonrun.c
Python/sysmodule.c