]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is an immutab...
authorStepfen Shawn <m18824909883@163.com>
Wed, 18 Jan 2023 21:02:48 +0000 (05:02 +0800)
committerGitHub <noreply@github.com>
Wed, 18 Jan 2023 21:02:48 +0000 (21:02 +0000)
Parser/pegen.h

index d8ac7e8cb918f7ab31c86bbc6a6949b5aceaa9dd..ad5c97f5f7e5d10c7b89eada1f3355398ed08f48 100644 (file)
@@ -42,7 +42,7 @@ typedef struct {
 } Token;
 
 typedef struct {
-    char *str;
+    const char *str;
     int type;
 } KeywordToken;