summaryrefslogtreecommitdiffstats
path: root/Include/symtable.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-11 14:04:59 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-12-11 14:04:59 (GMT)
commit95292d6caa3af3196c5b9f5f95dae209815c09e5 (patch)
tree193e6e6a45f1e1319e4bb4ba07a3fee838a2ca5d /Include/symtable.h
parent0e88c9f65d163c0c8551d0f079a19b71a8a9e3ca (diff)
downloadcpython-95292d6caa3af3196c5b9f5f95dae209815c09e5.zip
cpython-95292d6caa3af3196c5b9f5f95dae209815c09e5.tar.gz
cpython-95292d6caa3af3196c5b9f5f95dae209815c09e5.tar.bz2
Constify filenames and scripts. Fixes #651362.
Diffstat (limited to 'Include/symtable.h')
-rw-r--r--Include/symtable.h4
1 files changed, 2 insertions, 2 deletions
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_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 *);