make _PyParser_TokenNames const

This commit is contained in:
Benjamin Peterson 2012-10-24 08:21:52 -07:00
parent 5b02d68863
commit d0845588b8
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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",