mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-107211: No longer export internal functions (7) (#108425)
No longer export _PyUnicode_FromId() internal C API function. Change comment style to "// comment" and add comment explaining why other functions have to be exported. Update Tools/build/generate_token.py to update Include/internal/pycore_token.h comments.
This commit is contained in:
parent
52c6a6e48a
commit
f1ae706ca5
10 changed files with 69 additions and 46 deletions
|
|
@ -50,7 +50,7 @@ def update_file(file, content):
|
|||
|
||||
|
||||
token_h_template = f"""\
|
||||
/* {AUTO_GENERATED_BY_SCRIPT} */
|
||||
// {AUTO_GENERATED_BY_SCRIPT}
|
||||
"""
|
||||
token_h_template += """\
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ extern "C" {
|
|||
(x) == FSTRING_MIDDLE)
|
||||
|
||||
|
||||
// Symbols exported for test_peg_generator
|
||||
// Export these 4 symbols for 'test_peg_generator'
|
||||
PyAPI_DATA(const char * const) _PyParser_TokenNames[]; /* Token names */
|
||||
PyAPI_FUNC(int) _PyToken_OneChar(int);
|
||||
PyAPI_FUNC(int) _PyToken_TwoChars(int, int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue