[Python-checkins] python/dist/src/Include symtable.h,2.9.18.5,2.9.18.6

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Mon, 21 Oct 2002 14:26:54 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv22269/Include

Modified Files:
      Tag: ast-branch
	symtable.h 
Log Message:
Add st_top, borrowed ref to module-level ste.
Mark several fields as one-bit fields.




Index: symtable.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/symtable.h,v
retrieving revision 2.9.18.5
retrieving revision 2.9.18.6
diff -C2 -d -r2.9.18.5 -r2.9.18.6
*** symtable.h	30 Aug 2002 20:04:48 -0000	2.9.18.5
--- symtable.h	21 Oct 2002 21:26:52 -0000	2.9.18.6
***************
*** 13,16 ****
--- 13,17 ----
  	const char *st_filename; /* name of file being compiled */
  	struct _symtable_entry *st_cur; /* current symbol table entry */
+ 	struct _symtable_entry *st_top; /* module entry */
  	PyObject *st_symbols;    /* dictionary of symbol table entries */
          PyObject *st_stack;      /* stack of namespace info */
***************
*** 30,39 ****
  	PyObject *ste_children;  /* list of child ids */
  	block_ty ste_type;       /* module, class, or function */
! 	int ste_lineno;          /* first line of block */
! 	int ste_optimized;       /* true if namespace can't be optimized */
! 	int ste_nested;          /* true if block is nested */
! 	int ste_child_free;      /* true if a child block has free variables,
  				    including free refs to globals */
! 	int ste_generator;       /* true if namespace is a generator */
  	int ste_opt_lineno;      /* lineno of last exec or import * */
  	struct symtable *ste_table;
--- 31,40 ----
  	PyObject *ste_children;  /* list of child ids */
  	block_ty ste_type;       /* module, class, or function */
! 	int ste_optimized : 1;   /* true if namespace can't be optimized */
! 	int ste_nested : 1;      /* true if block is nested */
! 	int ste_child_free : 1;  /* true if a child block has free variables,
  				    including free refs to globals */
! 	int ste_generator : 1;   /* true if namespace is a generator */
! 	int ste_lineno;          /* first line of block */
  	int ste_opt_lineno;      /* lineno of last exec or import * */
  	struct symtable *ste_table;