[Python-checkins] python/dist/src/Python newcompile.c,1.1.2.4,1.1.2.5 symtable.c,2.10.8.6,2.10.8.7

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Tue, 03 Sep 2002 16:19:53 -0700


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

Modified Files:
      Tag: ast-branch
	newcompile.c symtable.c 
Log Message:
Handle new Interactive definition.




Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** newcompile.c	30 Aug 2002 20:25:49 -0000	1.1.2.4
--- newcompile.c	3 Sep 2002 23:19:50 -0000	1.1.2.5
***************
*** 365,369 ****
  	case Interactive_kind:
  		c->c_interactive = 1;
! 		VISIT(c, stmt, mod->v.Interactive.body);
  		break;
  	case Expression_kind:
--- 365,369 ----
  	case Interactive_kind:
  		c->c_interactive = 1;
! 		VISIT_SEQ(c, stmt, mod->v.Interactive.body);
  		break;
  	case Expression_kind:

Index: symtable.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/symtable.c,v
retrieving revision 2.10.8.6
retrieving revision 2.10.8.7
diff -C2 -d -r2.10.8.6 -r2.10.8.7
*** symtable.c	30 Aug 2002 20:04:49 -0000	2.10.8.6
--- symtable.c	3 Sep 2002 23:19:50 -0000	2.10.8.7
***************
*** 208,219 ****
  		break;
  	}
! 	case Expression_kind:
  		if (!symtable_visit_expr(st, mod->v.Expression.body))
  			goto error;
  		break;
! 	case Interactive_kind:
! 		if (!symtable_visit_stmt(st, mod->v.Interactive.body)) 
! 			goto error;
  		break;
  	case Suite_kind:
  		PyErr_SetString(PyExc_RuntimeError,
--- 208,223 ----
  		break;
  	}
! 	case Expression_kind: 
  		if (!symtable_visit_expr(st, mod->v.Expression.body))
  			goto error;
  		break;
! 	case Interactive_kind: {
! 		int i;
! 		asdl_seq *seq = mod->v.Interactive.body;
! 		for (i = 0; i < asdl_seq_LEN(seq); i++)
! 			if (!symtable_visit_stmt(st, asdl_seq_GET(seq, i)))
! 				goto error;
  		break;
+ 	}
  	case Suite_kind:
  		PyErr_SetString(PyExc_RuntimeError,