mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #1772673: The type of char*
arguments now changed to const char*
.
This commit is contained in:
parent
80ab13067e
commit
c679227e31
39 changed files with 148 additions and 137 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue