[Python-checkins] python/dist/src/Python ast.c,1.1.2.31,1.1.2.32

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sun Sep 14 20:20:53 EDT 2003


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv1322/Python

Modified Files:
      Tag: ast-branch
	ast.c 
Log Message:
Changes done to code from beginning of file to ast_for_listcomp, inclusive:
  - Properly indent and fix code syntactically
  - Raise exceptions (mostly PyExc_Exception to give an initial value) instead
    of printing to fprintf(stderr, ...) where appropriate.
  - Run asdl_seq_free() on objects allocated by asdl_seq_new() when an error
    has been detected
  - Add comments for functions when needed


Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.31
retrieving revision 1.1.2.32
diff -C2 -d -r1.1.2.31 -r1.1.2.32
*** ast.c	26 Aug 2003 01:17:15 -0000	1.1.2.31
--- ast.c	15 Sep 2003 00:20:51 -0000	1.1.2.32
***************
*** 11,17 ****
  
  /* XXX TO DO
!    re-indent this file
!    internal error checking (such as function return values, etc.)
!    syntax errors
  */
  
--- 11,18 ----
  
  /* XXX TO DO
[...967 lines suppressed...]
  	    }
+ 
  	    for (j = 0; j < n_ifs; j++) {
  		REQ(ch, list_iter);
+ 
  		ch = CHILD(ch, 0);
  		REQ(ch, list_if);
+ 
  		asdl_seq_APPEND(ifs, CHILD(ch, 1));
  		if (NCH(ch) == 3)
***************
*** 698,701 ****
--- 826,832 ----
  	return result;
  }
+ 
+ /* Do not name a variable 'expr'!  Will cause a compile error.
+ */
  
  static expr_ty





More information about the Python-checkins mailing list