summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-17 14:02:23 (GMT)
committerGitHub <noreply@github.com>2023-10-17 14:02:23 (GMT)
commit232465204edb070751f4794c67dd31cd9b7c8c53 (patch)
tree05d9deff96dd8c8ef03c16c48e5146e572d60838 /PC
parent6db6b30ac2734b94f66166cee320028c4ba1d30e (diff)
downloadcpython-232465204edb070751f4794c67dd31cd9b7c8c53.zip
cpython-232465204edb070751f4794c67dd31cd9b7c8c53.tar.gz
cpython-232465204edb070751f4794c67dd31cd9b7c8c53.tar.bz2
gh-85283: Add PySys_Audit() to the limited C API (#108571)
The PySys_Audit() function was added in Python 3.8 by the PEP 578 "Python Runtime Audit Hooks". Add also PySys_AuditTuple() to the limited C API, function added to Python 3.13. Move non-limited "PerfMap" C API from Include/sysmodule.h to Include/cpython/sysmodule.h.
Diffstat (limited to 'PC')
-rwxr-xr-xPC/python3dll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c
index dd3be3a..d12889f 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -568,6 +568,8 @@ EXPORT_FUNC(PyStructSequence_SetItem)
EXPORT_FUNC(PySys_AddWarnOption)
EXPORT_FUNC(PySys_AddWarnOptionUnicode)
EXPORT_FUNC(PySys_AddXOption)
+EXPORT_FUNC(PySys_Audit)
+EXPORT_FUNC(PySys_AuditTuple)
EXPORT_FUNC(PySys_FormatStderr)
EXPORT_FUNC(PySys_FormatStdout)
EXPORT_FUNC(PySys_GetObject)