]> ocean-lang.org Git - ocean/commitdiff
scanner: make the array of known words "const"
authorNeilBrown <neilb@suse.de>
Fri, 12 Jul 2013 21:15:32 +0000 (07:15 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 12 Jul 2013 21:15:32 +0000 (07:15 +1000)
After all, it shouldn't change.

Signed-off-by: NeilBrown <neilb@suse.de>
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",