diff options
author | Victor Stinner <vstinner@python.org> | 2021-03-17 22:11:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 22:11:03 (GMT) |
commit | b4536e1c6abe4c6219177a89e16575d05ea22f64 (patch) | |
tree | bade8c2412e0b83d00e737ce465214d2033cf5f3 /PCbuild | |
parent | e272528bbd5e0b081dbffa73b1a6908f3992d13c (diff) | |
download | cpython-b4536e1c6abe4c6219177a89e16575d05ea22f64.zip cpython-b4536e1c6abe4c6219177a89e16575d05ea22f64.tar.gz cpython-b4536e1c6abe4c6219177a89e16575d05ea22f64.tar.bz2 |
bpo-43244: Rename pycore_ast.h to pycore_ast_state.h (GH-24907)
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/pythoncore.vcxproj | 1 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj.filters | 3 | ||||
-rw-r--r-- | PCbuild/regen.vcxproj | 10 |
3 files changed, 9 insertions, 5 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 92355a8..655c831 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -175,6 +175,7 @@ <ClInclude Include="..\Include\import.h" /> <ClInclude Include="..\Include\internal\pycore_abstract.h" /> <ClInclude Include="..\Include\internal\pycore_accu.h" /> + <ClInclude Include="..\Include\internal\pycore_ast_state.h" /> <ClInclude Include="..\Include\internal\pycore_atomic.h" /> <ClInclude Include="..\Include\internal\pycore_atomic_funcs.h" /> <ClInclude Include="..\Include\internal\pycore_bitutils.h" /> diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters index d0b69db..fba4af5 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters @@ -486,6 +486,9 @@ <ClInclude Include="..\Include\internal\pycore_accu.h"> <Filter>Include\internal</Filter> </ClInclude> + <ClInclude Include="..\Include\internal\pycore_ast_state.h"> + <Filter>Include\internal</Filter> + </ClInclude> <ClInclude Include="..\Include\internal\pycore_atomic.h"> <Filter>Include\internal</Filter> </ClInclude> diff --git a/PCbuild/regen.vcxproj b/PCbuild/regen.vcxproj index 936f5fd..166468a 100644 --- a/PCbuild/regen.vcxproj +++ b/PCbuild/regen.vcxproj @@ -137,7 +137,7 @@ </None> <None Include="..\Include\opcode.h"> </None> - <None Include="..\Include\internal\pycore_ast.h"> + <None Include="..\Include\internal\pycore_ast_state.h"> </None> <None Include="..\Include\Python-ast.h"> </None> @@ -163,15 +163,15 @@ <Warning Text="Pegen updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedParse)' != ''" /> </Target> <Target Name="_RegenAST_H" AfterTargets="_RegenGrammar"> - <!-- Regenerate Include/Python-ast.h, Python/Python-ast.c and Include/internal/pycore_ast.h using Parser/asdl_c.py -h --> - <Exec Command=""$(PythonExe)" "$(PySourcePath)Parser\asdl_c.py" "$(PySourcePath)Parser\Python.asdl" -H "$(IntDir)Python-ast.h" -C "$(IntDir)Python-ast.c" -I "$(IntDir)pycore_ast.h"" /> + <!-- Regenerate Include/Python-ast.h, Python/Python-ast.c and Include/internal/pycore_ast_state.h using Parser/asdl_c.py -h --> + <Exec Command=""$(PythonExe)" "$(PySourcePath)Parser\asdl_c.py" "$(PySourcePath)Parser\Python.asdl" -H "$(IntDir)Python-ast.h" -C "$(IntDir)Python-ast.c" -I "$(IntDir)pycore_ast_state.h"" /> <Copy SourceFiles="$(IntDir)Python-ast.h" DestinationFiles="$(PySourcePath)Include\Python-ast.h"> <Output TaskParameter="CopiedFiles" ItemName="_UpdatedH" /> </Copy> <Copy SourceFiles="$(IntDir)Python-ast.c" DestinationFiles="$(PySourcePath)Python\Python-ast.c"> <Output TaskParameter="CopiedFiles" ItemName="_UpdatedC" /> </Copy> - <Copy SourceFiles="$(IntDir)pycore_ast.h" DestinationFiles="$(PySourcePath)Include\internal\pycore_ast.h"> + <Copy SourceFiles="$(IntDir)pycore_ast_state.h" DestinationFiles="$(PySourcePath)Include\internal\pycore_ast_state.h"> <Output TaskParameter="CopiedFiles" ItemName="_UpdatedInternalH" /> </Copy> <Warning Text="ASDL is updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedH)' != '' != '' and '@(_UpdatedC)' != '' and @(_UpdatedInternalH)'" /> @@ -209,7 +209,7 @@ <Clean Include="$(IntDir)opcode.h" /> <Clean Include="$(IntDir)Python-ast.c" /> <Clean Include="$(IntDir)Python-ast.h" /> - <Clean Include="$(IntDir)pycore_ast.h" /> + <Clean Include="$(IntDir)pycore_ast_state.h" /> </ItemGroup> </Target> </Project> |