diff options
author | Stepfen Shawn <m18824909883@163.com> | 2023-01-18 21:02:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 21:02:48 (GMT) |
commit | a1e051a23736fdf3da812363bcaf32e53a294f03 (patch) | |
tree | 8ef0239b2a644538e3584994aa6b22eb1d7f2b54 /Parser/pegen.h | |
parent | 75c8133efec035ec1083ebd8e7d43ef340c2e581 (diff) | |
download | cpython-a1e051a23736fdf3da812363bcaf32e53a294f03.zip cpython-a1e051a23736fdf3da812363bcaf32e53a294f03.tar.gz cpython-a1e051a23736fdf3da812363bcaf32e53a294f03.tar.bz2 |
gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is an immutable string. (#100936)
Diffstat (limited to 'Parser/pegen.h')
-rw-r--r-- | Parser/pegen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen.h b/Parser/pegen.h index d8ac7e8..ad5c97f 100644 --- a/Parser/pegen.h +++ b/Parser/pegen.h @@ -42,7 +42,7 @@ typedef struct { } Token; typedef struct { - char *str; + const char *str; int type; } KeywordToken; |