summaryrefslogtreecommitdiffstats
path: root/PCbuild/pythoncore.vcxproj
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-26 17:57:32 (GMT)
committerGitHub <noreply@github.com>2020-03-26 17:57:32 (GMT)
commit08faf0016e1ee590c78f64ddb244767c7801866a (patch)
tree17c3ad20544ec8725838cad831d88147f572a6a9 /PCbuild/pythoncore.vcxproj
parente0b8101492f6c61dee831425b4d3dae39a953599 (diff)
downloadcpython-08faf0016e1ee590c78f64ddb244767c7801866a.zip
cpython-08faf0016e1ee590c78f64ddb244767c7801866a.tar.gz
cpython-08faf0016e1ee590c78f64ddb244767c7801866a.tar.bz2
bpo-38644: Add _PySys_Audit() which takes tstate (GH-19180)
Add _PySys_Audit() function to the internal C API: similar to PySys_Audit(), but requires a mandatory tstate parameter. Cleanup sys_audit_tstate() code: remove code path for NULL tstate, since the function exits at entry if tstate is NULL. Remove also code path for NULL tstate->interp: should_audit() now ensures that it is not NULL (even if tstate->interp cannot be NULL in practice). PySys_AddAuditHook() now checks if tstate is not NULL to decide if tstate can be used or not, and tstate is set to NULL if the runtime is not initialized yet. Use _PySys_Audit() in sysmodule.c.
Diffstat (limited to 'PCbuild/pythoncore.vcxproj')
-rw-r--r--PCbuild/pythoncore.vcxproj1
1 files changed, 1 insertions, 0 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 30603b0..3277806 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -183,6 +183,7 @@
<ClInclude Include="..\Include\internal\pycore_pylifecycle.h" />
<ClInclude Include="..\Include\internal\pycore_pymem.h" />
<ClInclude Include="..\Include\internal\pycore_pystate.h" />
+ <ClInclude Include="..\Include\internal\pycore_sysmodule.h" />
<ClInclude Include="..\Include\internal\pycore_traceback.h" />
<ClInclude Include="..\Include\internal\pycore_tupleobject.h" />
<ClInclude Include="..\Include\internal\pycore_warnings.h" />