summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.h
diff options
context:
space:
mode:
authorStepfen Shawn <m18824909883@163.com>2023-01-18 21:02:48 (GMT)
committerGitHub <noreply@github.com>2023-01-18 21:02:48 (GMT)
commita1e051a23736fdf3da812363bcaf32e53a294f03 (patch)
tree8ef0239b2a644538e3584994aa6b22eb1d7f2b54 /Parser/pegen.h
parent75c8133efec035ec1083ebd8e7d43ef340c2e581 (diff)
downloadcpython-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.h2
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;