mirror of
https://github.com/reactos/ccache.git
synced 2025-01-21 10:56:24 +00:00
Mark token array as const
This commit is contained in:
parent
5873f4b1f7
commit
e8d07ea50c
4
unify.c
4
unify.c
@ -40,7 +40,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
static char *s_tokens[] = {
|
||||
static const char *const s_tokens[] = {
|
||||
"...", ">>=", "<<=", "+=", "-=", "*=", "/=", "%=", "&=", "^=",
|
||||
"|=", ">>", "<<", "++", "--", "->", "&&", "||", "<=", ">=",
|
||||
"==", "!=", ";", "{", "<%", "}", "%>", ",", ":", "=",
|
||||
@ -61,7 +61,7 @@ static char *s_tokens[] = {
|
||||
static struct {
|
||||
unsigned char type;
|
||||
unsigned char num_toks;
|
||||
char *toks[7];
|
||||
const char *toks[7];
|
||||
} tokens[256];
|
||||
|
||||
/* build up the table used by the unifier */
|
||||
|
Loading…
x
Reference in New Issue
Block a user