diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-11 14:04:59 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-11 14:04:59 +0000 |
commit | 95292d6caa3af3196c5b9f5f95dae209815c09e5 (patch) | |
tree | 193e6e6a45f1e1319e4bb4ba07a3fee838a2ca5d /Parser/tokenizer.h | |
parent | 0e88c9f65d163c0c8551d0f079a19b71a8a9e3ca (diff) | |
download | cpython-git-95292d6caa3af3196c5b9f5f95dae209815c09e5.tar.gz |
Constify filenames and scripts. Fixes #651362.
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 b3d456a27d..e9423333e2 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 **); |