diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-02 20:01:10 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-02 20:01:10 (GMT) |
commit | 5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d (patch) | |
tree | ae9c2c72fd47bba564bb1b082fe2a3bfd2fd4fbd /Include/symtable.h | |
parent | dbfb66296c81e7828f909ecb2cc14424b59b2995 (diff) | |
download | cpython-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/symtable.h')
-rw-r--r-- | Include/symtable.h | 1 |
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 */ |