From a1e051a23736fdf3da812363bcaf32e53a294f03 Mon Sep 17 00:00:00 2001 From: Stepfen Shawn Date: Thu, 19 Jan 2023 05:02:48 +0800 Subject: gh-100940: Change "char *str" to "const char *str" in KeywordToken: It is an immutable string. (#100936) --- Parser/pegen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12