summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-02 20:01:10 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-02 20:01:10 (GMT)
commit5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d (patch)
treeae9c2c72fd47bba564bb1b082fe2a3bfd2fd4fbd /Include
parentdbfb66296c81e7828f909ecb2cc14424b59b2995 (diff)
downloadcpython-5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d.zip
cpython-5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d.tar.gz
cpython-5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d.tar.bz2
Fix symbol table pass to generation SyntaxError exceptions that
include the filename and line number.
Diffstat (limited to 'Include')
-rw-r--r--Include/symtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/symtable.h b/Include/symtable.h
index 2d427aa..beea9f5 100644
--- a/Include/symtable.h
+++ b/Include/symtable.h
@@ -43,6 +43,7 @@ extern "C" {
struct symtable {
int st_pass; /* pass == 1 or 2 */
int st_keep; /* true if symtable will be returned */
+ char *st_filename; /* name of file being compiled */
PyObject *st_symbols; /* dictionary of symbol tables */
PyObject *st_varnames; /* dictionary of parameter lists */
PyObject *st_stack; /* stack of namespace info */