mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Constify filenames and scripts. Fixes #651362.
This commit is contained in:
parent
0e88c9f65d
commit
95292d6caa
12 changed files with 123 additions and 118 deletions
|
@ -20,7 +20,7 @@ struct _symtable_entry;
|
|||
|
||||
struct symtable {
|
||||
int st_pass; /* pass == 1 or 2 */
|
||||
char *st_filename; /* name of file being compiled */
|
||||
const char *st_filename; /* name of file being compiled */
|
||||
struct _symtable_entry *st_cur; /* current symbol table entry */
|
||||
PyObject *st_symbols; /* dictionary of symbol table entries */
|
||||
PyObject *st_stack; /* stack of namespace info */
|
||||
|
@ -57,7 +57,7 @@ PyAPI_DATA(PyTypeObject) PySymtableEntry_Type;
|
|||
PyAPI_FUNC(PyObject *) PySymtableEntry_New(struct symtable *,
|
||||
char *, int, int);
|
||||
|
||||
PyAPI_FUNC(struct symtable *) PyNode_CompileSymtable(struct _node *, char *);
|
||||
PyAPI_FUNC(struct symtable *) PyNode_CompileSymtable(struct _node *, const char *);
|
||||
PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue