diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-19 18:03:34 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-10-19 18:03:34 (GMT) |
commit | c679227e31245b0e8dec74a1f7cc77710541d985 (patch) | |
tree | 0ed52ac2bd85d0cad42e39aec5437a603750425b /Parser/parser.c | |
parent | 80ab13067e9b8fbd02a05a4863e26b04938b77f5 (diff) | |
download | cpython-c679227e31245b0e8dec74a1f7cc77710541d985.zip cpython-c679227e31245b0e8dec74a1f7cc77710541d985.tar.gz cpython-c679227e31245b0e8dec74a1f7cc77710541d985.tar.bz2 |
Issue #1772673: The type of `char*` arguments now changed to `const char*`.
Diffstat (limited to 'Parser/parser.c')
-rw-r--r-- | Parser/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/parser.c b/Parser/parser.c index fc102f2..56ec514 100644 --- a/Parser/parser.c +++ b/Parser/parser.c @@ -134,13 +134,13 @@ push(stack *s, int type, dfa *d, int newstate, int lineno, int col_offset) /* PARSER PROPER */ static int -classify(parser_state *ps, int type, char *str) +classify(parser_state *ps, int type, const char *str) { grammar *g = ps->p_grammar; int n = g->g_ll.ll_nlabels; if (type == NAME) { - char *s = str; + const char *s = str; label *l = g->g_ll.ll_label; int i; for (i = n; i > 0; i--, l++) { |