]> ocean-lang.org Git - ocean/blobdiff - csrc/scanner.mdc
scanner: make the array of known words "const"
[ocean] / csrc / scanner.mdc
index 547a037f0c12ab07dbce59839e11ba3056e33705..48563caac4a02c6c54ef480e7726cc12d1f31b5c 100644 (file)
@@ -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",