Fix symbol table pass to generation SyntaxError exceptions that

include the filename and line number.
This commit is contained in:
Jeremy Hylton 2001-02-02 20:01:10 +00:00
parent dbfb66296c
commit 5acc0c0cfc
2 changed files with 48 additions and 33 deletions

View file

@ -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 */