[Python-checkins] CVS: python/dist/src/Include compile.h,2.26,2.27

Jeremy Hylton jhylton@users.sourceforge.net
Tue, 27 Feb 2001 17:58:10 -0800


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

Modified Files:
	compile.h 
Log Message:
Presumed correct compiler pass for future statements
XXX still need to integrate into symtable API

compile.h: Remove ff_n_simple_stmt; obsolete.

           Add ff_found_docstring used internally to skip one and only
           one string at the beginning of a module.

compile.c: Add check for from __future__ imports to far into the file.

 	   In symtable_global() check for -1 returned from
	   symtable_lookup(), which signifies name not defined. 

	   Add missing DECERF in symtable_add_def.

           Free c->c_future.

future.c:  Add special handling for multiple statements joined on a
	   single line using one or more semicolons; this form can
           include an illegal future statement that would otherwise be
           hard to detect.

	   Add support for detecting and skipping doc strings.




Index: compile.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/compile.h,v
retrieving revision 2.26
retrieving revision 2.27
diff -C2 -r2.26 -r2.27
*** compile.h	2001/02/27 19:07:02	2.26
--- compile.h	2001/02/28 01:58:08	2.27
***************
*** 52,57 ****
  
  typedef struct {
      int ff_last_lineno;
-     int ff_n_simple_stmt;
      int ff_nested_scopes;
  } PyFutureFeatures;
--- 52,57 ----
  
  typedef struct {
+     int ff_found_docstring;
      int ff_last_lineno;
      int ff_nested_scopes;
  } PyFutureFeatures;