mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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
This commit is contained in:
parent
20cc695286
commit
64a54e511d
11 changed files with 661 additions and 605 deletions
|
@ -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)" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue