[Python-checkins] python/dist/src/Python ast.c,1.1.2.5,1.1.2.6

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Fri, 27 Sep 2002 16:10:45 -0700


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

Modified Files:
      Tag: ast-branch
	ast.c 
Log Message:
We're done if we hit the NEWLINE.




Index: ast.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/ast.c,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -C2 -d -r1.1.2.5 -r1.1.2.6
*** ast.c	13 Sep 2002 15:31:14 -0000	1.1.2.5
--- ast.c	27 Sep 2002 23:10:43 -0000	1.1.2.6
***************
*** 148,152 ****
  		REQ(n, simple_stmt);
  		for (i = 0; i < NCH(n); i += 2) {
! 		    stmt_ty s = ast_for_stmt(CHILD(n, i));
  		    if (!s)
  			goto error;
--- 148,155 ----
  		REQ(n, simple_stmt);
  		for (i = 0; i < NCH(n); i += 2) {
! 		    stmt_ty s;
! 		    if (TYPE(CHILD(n, i)) == NEWLINE)
! 			break;
! 		    s = ast_for_stmt(CHILD(n, i));
  		    if (!s)
  			goto error;