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

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Sep 20 20:17:50 EDT 2003


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

Modified Files:
      Tag: ast-branch
	ast.c 
Log Message:
>From ast_for_atom() to the end of the file:
  - cleaned up syntax
  - check function return values
  - raise exceptions where appropriate


Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.32
retrieving revision 1.1.2.33
diff -C2 -d -r1.1.2.32 -r1.1.2.33
*** ast.c	15 Sep 2003 00:20:51 -0000	1.1.2.32
--- ast.c	21 Sep 2003 00:17:48 -0000	1.1.2.33
***************
*** 11,17 ****
  
  /* XXX TO DO
!    - re-indent this file
!     - internal error checking (such as function return values, freeing memory,
!       etc.)
     - syntax errors
  */
--- 11,16 ----
  
  /* XXX TO DO
[...1868 lines suppressed...]
!                 return ast_for_if_stmt(ch);
!             case while_stmt:
!                 return ast_for_while_stmt(ch);
!             case for_stmt:
!                 return ast_for_for_stmt(ch);
!             case try_stmt:
!                 return ast_for_try_stmt(ch);
!             case funcdef:
!                 return ast_for_funcdef(ch);
!             case classdef:
!                 return ast_for_classdef(ch);
!             default:
!                 PyErr_Format(PyExc_Exception,
!                              "unhandled small_stmt: TYPE=%d NCH=%d\n",
!                              TYPE(n), NCH(n));
!                 return NULL;
  	}
      }
  }
  





More information about the Python-checkins mailing list