From d0845588b811823a580eb9e775b44af946ba771e Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 24 Oct 2012 08:21:52 -0700 Subject: make _PyParser_TokenNames const --- Include/token.h | 2 +- Parser/tokenizer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/token.h b/Include/token.h index f7f6504..905022b 100644 --- a/Include/token.h +++ b/Include/token.h @@ -75,7 +75,7 @@ extern "C" { #define ISEOF(x) ((x) == ENDMARKER) -PyAPI_DATA(char *) _PyParser_TokenNames[]; /* Token names */ +PyAPI_DATA(const char *) _PyParser_TokenNames[]; /* Token names */ PyAPI_FUNC(int) PyToken_OneChar(int); PyAPI_FUNC(int) PyToken_TwoChars(int, int); PyAPI_FUNC(int) PyToken_ThreeChars(int, int, int); diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 93a4a5c..c2c182c 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -47,7 +47,7 @@ static void tok_backup(struct tok_state *tok, int c); /* Token names */ -char *_PyParser_TokenNames[] = { +const char *_PyParser_TokenNames[] = { "ENDMARKER", "NAME", "NUMBER", -- cgit v0.12