Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix regen-all
  • Loading branch information
vstinner committed Aug 24, 2023
commit 86a71da77bb4e70df6b37560d3e3bd0e2e92c976
2 changes: 1 addition & 1 deletion Include/internal/pycore_token.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Auto-generated by Tools/build/generate_token.py */
// Auto-generated by Tools/build/generate_token.py

/* Token types */
#ifndef Py_INTERNAL_TOKEN_H
Expand Down
4 changes: 2 additions & 2 deletions Tools/build/generate_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def update_file(file, content):


token_h_template = f"""\
/* {AUTO_GENERATED_BY_SCRIPT} */
// {AUTO_GENERATED_BY_SCRIPT}
"""
token_h_template += """\

Expand Down Expand Up @@ -84,7 +84,7 @@ def update_file(file, content):
(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);
Expand Down