diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-28 15:07:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 15:07:12 (GMT) |
commit | b8f704d2190125a7750b50cd9b67267b9c20fd43 (patch) | |
tree | 291e738b27f0c804e51b8b5cf93821d8c89d5dc7 /PCbuild | |
parent | 7c59d7c9860cdbaf4a9c26c9142aebd3259d046e (diff) | |
download | cpython-b8f704d2190125a7750b50cd9b67267b9c20fd43.zip cpython-b8f704d2190125a7750b50cd9b67267b9c20fd43.tar.gz cpython-b8f704d2190125a7750b50cd9b67267b9c20fd43.tar.bz2 |
bpo-40421: Add Include/cpython/code.h header file (GH-19756)
bpo-35134, bpo-40421: Add Include/cpython/code.h header file.
code.h now defines PyCodeObject type in the limited C API. It is now
included by Python.h.
Give a name to the PyCodeObject structure: it is now called
"struct PyCodeObject". So it becomes possible to define PyCodeObject
as "struct PyCodeObject" in the limited C API without defining the
structure.
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/pythoncore.vcxproj | 1 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj.filters | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index f54f155..21b51bf 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -131,6 +131,7 @@ <ClInclude Include="..\Include\cpython\bytearrayobject.h" /> <ClInclude Include="..\Include\cpython\bytesobject.h" /> <ClInclude Include="..\Include\cpython\ceval.h" /> + <ClInclude Include="..\Include\cpython\code.h" /> <ClInclude Include="..\Include\cpython\dictobject.h" /> <ClInclude Include="..\Include\cpython\fileobject.h" /> <ClInclude Include="..\Include\cpython\fileutils.h" /> diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters index c8758da..f5c76fa 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters @@ -90,6 +90,9 @@ <ClInclude Include="..\Include\cpython\ceval.h"> <Filter>Include</Filter> </ClInclude> + <ClInclude Include="..\Include\cpython\code.h"> + <Filter>Include</Filter> + </ClInclude> <ClInclude Include="..\Include\cpython\dictobject.h"> <Filter>Include</Filter> </ClInclude> |