summaryrefslogtreecommitdiffstats
path: root/PCbuild/regen.targets
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-04-25 22:14:30 (GMT)
committerGitHub <noreply@github.com>2022-04-25 22:14:30 (GMT)
commit64a54e511debaac6d3a6e53685824fce435c440c (patch)
tree7a549d47fbe8b480b14198555e427e57581db4ec /PCbuild/regen.targets
parent20cc69528677b3e5191139d1cb587531f4893b55 (diff)
downloadcpython-64a54e511debaac6d3a6e53685824fce435c440c.zip
cpython-64a54e511debaac6d3a6e53685824fce435c440c.tar.gz
cpython-64a54e511debaac6d3a6e53685824fce435c440c.tar.bz2
gh-91719: Add pycore_opcode.h internal header file (#91906)
Move the following API from Include/opcode.h (public C API) to a new Include/internal/pycore_opcode.h header file (internal C API): * EXTRA_CASES * _PyOpcode_Caches * _PyOpcode_Deopt * _PyOpcode_Jump * _PyOpcode_OpName * _PyOpcode_RelativeJump
Diffstat (limited to 'PCbuild/regen.targets')
-rw-r--r--PCbuild/regen.targets4
1 files changed, 2 insertions, 2 deletions
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets
index a49d971..24b5ced 100644
--- a/PCbuild/regen.targets
+++ b/PCbuild/regen.targets
@@ -14,7 +14,7 @@
<Argument>-C</Argument>
</_ASTOutputs>
<_OpcodeSources Include="$(PySourcePath)Tools\scripts\generate_opcode_h.py;$(PySourcePath)Lib\opcode.py" />
- <_OpcodeOutputs Include="$(PySourcePath)Include\opcode.h;$(PySourcePath)Python\opcode_targets.h" />
+ <_OpcodeOutputs Include="$(PySourcePath)Include\opcode.h;$(PySourcePath)Include\internal\pycore_opcode.h;$(PySourcePath)Python\opcode_targets.h" />
<_TokenSources Include="$(PySourcePath)Grammar\Tokens" />
<_TokenOutputs Include="$(PySourcePath)Doc\library\token-list.inc">
<Format>rst</Format>
@@ -59,7 +59,7 @@
Inputs="@(_OpcodeSources)" Outputs="@(_OpcodeOutputs)"
DependsOnTargets="FindPythonForBuild">
<Message Text="Regenerate @(_OpcodeOutputs->'%(Filename)%(Extension)',' ')" Importance="high" />
- <Exec Command="$(PythonForBuild) Tools\scripts\generate_opcode_h.py Lib\opcode.py Include\opcode.h"
+ <Exec Command="$(PythonForBuild) Tools\scripts\generate_opcode_h.py Lib\opcode.py Include\opcode.h Include\internal\pycore_opcode.h"
WorkingDirectory="$(PySourcePath)" />
<Exec Command="$(PythonForBuild) Python\makeopcodetargets.py Python\opcode_targets.h"
WorkingDirectory="$(PySourcePath)" />