[Python-checkins] python/dist/src/Python newcompile.c,1.1.2.25,1.1.2.26

nascheme@users.sourceforge.net nascheme@users.sourceforge.net
Tue, 25 Mar 2003 07:45:00 -0800


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

Modified Files:
      Tag: ast-branch
	newcompile.c 
Log Message:
Fix return value (although it doesn't seem to be checked).  Add skeleton
function to generate code for AugAssign_kind nodes.


Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.25
retrieving revision 1.1.2.26
diff -C2 -d -r1.1.2.25 -r1.1.2.26
*** newcompile.c	25 Mar 2003 15:25:35 -0000	1.1.2.25
--- newcompile.c	25 Mar 2003 15:44:55 -0000	1.1.2.26
***************
*** 815,819 ****
  
  	if (Py_OptimizeFlag)
! 		return 0;
  	if (assertion_error == NULL) {
  		assertion_error = PyString_FromString("AssertionError");
--- 815,819 ----
  
  	if (Py_OptimizeFlag)
! 		return 1;
  	if (assertion_error == NULL) {
  		assertion_error = PyString_FromString("AssertionError");
***************
*** 838,841 ****
--- 838,848 ----
  }
  
+ static int
+ compiler_augassign(struct compiler *c, stmt_ty s)
+ {
+ 	/* XXX unfinished */
+ 	return 0;
+ }
+ 
  
  static int
***************
*** 878,882 ****
  		break;
          case AugAssign_kind:
! 		break;
          case Print_kind:
  		return compiler_print(c, s);
--- 885,889 ----
  		break;
          case AugAssign_kind:
! 		return compiler_augassign(c, s);
          case Print_kind:
  		return compiler_print(c, s);