From: Stepfen Shawn Date: Wed, 18 Jan 2023 21:02:48 +0000 (+0800) Subject: gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is an immutab... X-Git-Tag: v3.12.0a5~161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1e051a23736fdf3da812363bcaf32e53a294f03;p=thirdparty%2FPython%2Fcpython.git gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is an immutable string. (#100936) --- diff --git a/Parser/pegen.h b/Parser/pegen.h index d8ac7e8cb918..ad5c97f5f7e5 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;