[Python-checkins] CVS: python/dist/src/Include symtable.h,2.6,2.7
Jeremy Hylton
jhylton@users.sourceforge.net
Wed, 21 Mar 2001 19:58:00 -0800
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv4870/Include
Modified Files:
symtable.h
Log Message:
Set the line number correctly for a nested function with an exec or
import *. Mark the offending stmt rather than the function def line.
Index: symtable.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/symtable.h,v
retrieving revision 2.6
retrieving revision 2.7
diff -C2 -r2.6 -r2.7
*** symtable.h 2001/02/28 23:03:39 2.6
--- symtable.h 2001/03/22 03:57:58 2.7
***************
*** 47,50 ****
--- 47,51 ----
int ste_child_free; /* true if a child scope has free variables,
including free refs to globals */
+ int ste_opt_lineno; /* lineno of last exec or import * */
struct symtable *ste_table;
} PySymtableEntryObject;