summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-18 23:31:57 (GMT)
committerGitHub <noreply@github.com>2021-10-18 23:31:57 (GMT)
commitaad88d33d9db0a93e480f0234292b948890dfc2a (patch)
tree9a7be9c98f0c6a4d64ddda7859922b394ed3cdc3 /PCbuild
parent4d03de3329ed8daa9c1107b1aedbb0fa280bddb6 (diff)
downloadcpython-aad88d33d9db0a93e480f0234292b948890dfc2a.zip
cpython-aad88d33d9db0a93e480f0234292b948890dfc2a.tar.gz
cpython-aad88d33d9db0a93e480f0234292b948890dfc2a.tar.bz2
bpo-35134: Split warnings.h and weakrefobject.h (GH-29042)
Split header files to move the non-limited API to Include/cpython/: * Include/warnings.h => Include/cpython/warnings.h * Include/weakrefobject.h => Include/cpython/weakrefobject.h Exclude PyWeakref_GET_OBJECT() from the limited C API. It never worked since the PyWeakReference structure is opaque in the limited C API. Move _PyWarnings_Init() and _PyErr_WarnUnawaitedCoroutine() to the internal C API.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/pythoncore.vcxproj2
-rw-r--r--PCbuild/pythoncore.vcxproj.filters6
2 files changed, 8 insertions, 0 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 015d783..a26ba9c 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -160,6 +160,8 @@
<ClInclude Include="..\Include\cpython\traceback.h" />
<ClInclude Include="..\Include\cpython\tupleobject.h" />
<ClInclude Include="..\Include\cpython\unicodeobject.h" />
+ <ClInclude Include="..\Include\cpython\warnings.h" />
+ <ClInclude Include="..\Include\cpython\weakrefobject.h" />
<ClInclude Include="..\Include\datetime.h" />
<ClInclude Include="..\Include\descrobject.h" />
<ClInclude Include="..\Include\dictobject.h" />
diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters
index 94528b9..335bfb3 100644
--- a/PCbuild/pythoncore.vcxproj.filters
+++ b/PCbuild/pythoncore.vcxproj.filters
@@ -393,6 +393,12 @@
<ClInclude Include="..\Include\cpython\unicodeobject.h">
<Filter>Include\cpython</Filter>
</ClInclude>
+ <ClInclude Include="..\Include\cpython\warnings.h">
+ <Filter>Include\cpython</Filter>
+ </ClInclude>
+ <ClInclude Include="..\Include\cpython\weakrefobject.h">
+ <Filter>Include\cpython</Filter>
+ </ClInclude>
<ClInclude Include="..\Include\cpython\methodobject.h">
<Filter>Include\cpython</Filter>
</ClInclude>