Constify filenames and scripts. Fixes #651362.
diff --git a/Include/symtable.h b/Include/symtable.h
index 9bf2a2a..301bd30 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -20,7 +20,7 @@
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_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 *);