make _PyParser_TokenNames const
This commit is contained in:
parent
5b02d68863
commit
d0845588b8
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue