diff options
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r-- | Parser/tokenizer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h index b3d456a..e942333 100644 --- a/Parser/tokenizer.h +++ b/Parser/tokenizer.h @@ -34,7 +34,7 @@ struct tok_state { int level; /* () [] {} Parentheses nesting level */ /* Used to allow free continuations inside them */ /* Stuff for checking on different tab sizes */ - char *filename; /* For error messages */ + const char *filename; /* For error messages */ int altwarning; /* Issue warning if alternate tabs don't match */ int alterror; /* Issue error if alternate tabs don't match */ int alttabsize; /* Alternate tab spacing */ @@ -54,7 +54,7 @@ struct tok_state { const char* str; }; -extern struct tok_state *PyTokenizer_FromString(char *); +extern struct tok_state *PyTokenizer_FromString(const char *); extern struct tok_state *PyTokenizer_FromFile(FILE *, char *, char *); extern void PyTokenizer_Free(struct tok_state *); extern int PyTokenizer_Get(struct tok_state *, char **, char **); |