mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-92651: Remove the Include/token.h header file (#92652)
Remove the token.h header file. There was never any public tokenizer C API. The token.h header file was only designed to be used by Python internals. Move Include/token.h to Include/internal/pycore_token.h. Including this header file now requires that the Py_BUILD_CORE macro is defined. It no longer checks for the Py_LIMITED_API macro. Rename functions: * PyToken_OneChar() => _PyToken_OneChar() * PyToken_TwoChars() => _PyToken_TwoChars() * PyToken_ThreeChars() => _PyToken_ThreeChars()
This commit is contained in:
parent
b69297ea23
commit
da5727a120
13 changed files with 52 additions and 39 deletions
|
|
@ -244,6 +244,7 @@
|
|||
<ClInclude Include="..\Include\internal\pycore_structseq.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_sysmodule.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_symtable.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_token.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_traceback.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_tuple.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_typeobject.h" />
|
||||
|
|
@ -291,7 +292,6 @@
|
|||
<ClInclude Include="..\Include\structseq.h" />
|
||||
<ClInclude Include="..\Include\symtable.h" />
|
||||
<ClInclude Include="..\Include\sysmodule.h" />
|
||||
<ClInclude Include="..\Include\token.h" />
|
||||
<ClInclude Include="..\Include\traceback.h" />
|
||||
<ClInclude Include="..\Include\tracemalloc.h" />
|
||||
<ClInclude Include="..\Include\tupleobject.h" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue