diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-31 23:52:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 23:52:28 (GMT) |
commit | 27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e (patch) | |
tree | 351096bf87da77ee8c4b08362e850e9affd18f8f /PCbuild | |
parent | 3a228ab17c2a9cffd1a2f15f30d6209768de20a6 (diff) | |
download | cpython-27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e.zip cpython-27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e.tar.gz cpython-27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e.tar.bz2 |
bpo-35081: Add pycore_ prefix to internal header files (GH-10263)
* Rename Include/internal/ header files:
* pyatomic.h -> pycore_atomic.h
* ceval.h -> pycore_ceval.h
* condvar.h -> pycore_condvar.h
* context.h -> pycore_context.h
* pygetopt.h -> pycore_getopt.h
* gil.h -> pycore_gil.h
* hamt.h -> pycore_hamt.h
* hash.h -> pycore_hash.h
* mem.h -> pycore_mem.h
* pystate.h -> pycore_state.h
* warnings.h -> pycore_warnings.h
* PCbuild project, Makefile.pre.in, Modules/Setup: add the
Include/internal/ directory to the search paths of header files.
* Update includes. For example, replace #include "internal/mem.h"
with #include "pycore_mem.h".
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/pyproject.props | 4 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj | 19 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj.filters | 24 |
3 files changed, 24 insertions, 23 deletions
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props index 95b349c..cf85e1b 100644 --- a/PCbuild/pyproject.props +++ b/PCbuild/pyproject.props @@ -27,7 +27,7 @@ </PropertyGroup> <ItemDefinitionGroup> <ClCompile> - <AdditionalIncludeDirectories>$(PySourcePath)Include;$(PySourcePath)PC;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <AdditionalIncludeDirectories>$(PySourcePath)Include;$(PySourcePath)Include\internal;$(PySourcePath)PC;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;$(_PlatformPreprocessorDefinition)$(_DebugPreprocessorDefinition)$(_PydPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> <Optimization>MaxSpeed</Optimization> @@ -194,4 +194,4 @@ public override bool Execute() { <Error Text="Unable to locate signtool.exe. Set /p:SignToolPath and rebuild" Condition="'$(_SignCommand)' == ''" /> <Exec Command='$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"' ContinueOnError="false" /> </Target> -</Project>
\ No newline at end of file +</Project> diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index f65bb5b..ebc35a7 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -112,15 +112,16 @@ <ClInclude Include="..\Include\graminit.h" /> <ClInclude Include="..\Include\grammar.h" /> <ClInclude Include="..\Include\import.h" /> - <ClInclude Include="..\Include\internal\ceval.h" /> - <ClInclude Include="..\Include\internal\condvar.h" /> - <ClInclude Include="..\Include\internal\context.h" /> - <ClInclude Include="..\Include\internal\gil.h" /> - <ClInclude Include="..\Include\internal\hamt.h" /> - <ClInclude Include="..\Include\internal\mem.h" /> - <ClInclude Include="..\Include\internal\pyatomic.h" /> - <ClInclude Include="..\Include\internal\pystate.h" /> - <ClInclude Include="..\Include\internal\warnings.h" /> + <ClInclude Include="..\Include\internal\pycore_atomic.h" /> + <ClInclude Include="..\Include\internal\pycore_ceval.h" /> + <ClInclude Include="..\Include\internal\pycore_condvar.h" /> + <ClInclude Include="..\Include\internal\pycore_context.h" /> + <ClInclude Include="..\Include\internal\pycore_getopt.h" /> + <ClInclude Include="..\Include\internal\pycore_gil.h" /> + <ClInclude Include="..\Include\internal\pycore_hamt.h" /> + <ClInclude Include="..\Include\internal\pycore_mem.h" /> + <ClInclude Include="..\Include\internal\pycore_state.h" /> + <ClInclude Include="..\Include\internal\pycore_warnings.h" /> <ClInclude Include="..\Include\intrcheck.h" /> <ClInclude Include="..\Include\iterobject.h" /> <ClInclude Include="..\Include\listobject.h" /> diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters index 7fdadc8..052c89c 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters @@ -135,31 +135,34 @@ <ClInclude Include="..\Include\import.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\ceval.h"> + <ClInclude Include="..\Include\internal\pycore_atomic.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\condvar.h"> + <ClInclude Include="..\Include\internal\pycore_ceval.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\context.h"> + <ClInclude Include="..\Include\internal\pycore_condvar.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\gil.h"> + <ClInclude Include="..\Include\internal\pycore_context.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\hamt.h"> + <ClInclude Include="..\Include\internal\pycore_getopt.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\mem.h"> + <ClInclude Include="..\Include\internal\pycore_gil.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\pyatomic.h"> + <ClInclude Include="..\Include\internal\pycore_hamt.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\pystate.h"> + <ClInclude Include="..\Include\internal\pycore_mem.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\warnings.h"> + <ClInclude Include="..\Include\internal\pycore_state.h"> + <Filter>Include</Filter> + </ClInclude> + <ClInclude Include="..\Include\internal\pycore_warnings.h"> <Filter>Include</Filter> </ClInclude> <ClInclude Include="..\Include\intrcheck.h"> @@ -249,9 +252,6 @@ <ClInclude Include="..\Include\pyfpe.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\pygetopt.h"> - <Filter>Include</Filter> - </ClInclude> <ClInclude Include="..\Include\pylifecycle.h"> <Filter>Include</Filter> </ClInclude> |