From 4cba12dc4e8b2cef223f904810164804f3f1347e Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Sat, 13 Jul 2013 07:15:32 +1000 Subject: [PATCH] scanner: make the array of known words "const" After all, it shouldn't change. Signed-off-by: NeilBrown --- csrc/scanner.mdc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csrc/scanner.mdc b/csrc/scanner.mdc index 547a037..48563ca 100644 --- a/csrc/scanner.mdc +++ b/csrc/scanner.mdc @@ -261,7 +261,7 @@ Tokens matching these known words are reported as the index of the list added to `TK_reserved`. ###### token config parameters - char **words_marks; + const char **words_marks; int known_count; ###### parse word @@ -1878,7 +1878,7 @@ the tokens one per line. int len; char *file; struct token_state *state; - char *known[] = { + const char *known[] = { "==", "else", "if", -- 2.43.0