summaryrefslogtreecommitdiff
path: root/Parser/tokenizer.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-19 21:03:34 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-19 21:03:34 +0300
commit6e75c19396402b107f1dfffa8746c6b8b679a9a4 (patch)
treedeb6036092faf8a0659406cbed73724928202dcd /Parser/tokenizer.h
parent75e7239170da646e00c00e92845d3549781818ea (diff)
downloadcpython-6e75c19396402b107f1dfffa8746c6b8b679a9a4.tar.gz
Issue #1772673: The type of `char*` arguments now changed to `const char*`.
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r--Parser/tokenizer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h
index ed1f3aa147..1ce6eeba8c 100644
--- a/Parser/tokenizer.h
+++ b/Parser/tokenizer.h
@@ -35,7 +35,7 @@ struct tok_state {
int indstack[MAXINDENT]; /* Stack of indents */
int atbol; /* Nonzero if at begin of new line */
int pendin; /* Pending indents (if > 0) or dedents (if < 0) */
- char *prompt, *nextprompt; /* For interactive prompting */
+ const char *prompt, *nextprompt; /* For interactive prompting */
int lineno; /* Current line number */
int level; /* () [] {} Parentheses nesting level */
/* Used to allow free continuations inside them */
@@ -69,8 +69,8 @@ struct tok_state {
extern struct tok_state *PyTokenizer_FromString(const char *, int);
extern struct tok_state *PyTokenizer_FromUTF8(const char *, int);
-extern struct tok_state *PyTokenizer_FromFile(FILE *, char*,
- char *, char *);
+extern struct tok_state *PyTokenizer_FromFile(FILE *, const char*,
+ const char *, const char *);
extern void PyTokenizer_Free(struct tok_state *);
extern int PyTokenizer_Get(struct tok_state *, char **, char **);
extern char * PyTokenizer_RestoreEncoding(struct tok_state* tok,