[Python-checkins] python/dist/src/Modules collectionsmodule.c, 1.20, 1.21

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Jul 15 23:32:20 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29010

Modified Files:
	collectionsmodule.c 
Log Message:
Apply VISIT macro.

Index: collectionsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/collectionsmodule.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** collectionsmodule.c	15 Jul 2004 15:54:04 -0000	1.20
--- collectionsmodule.c	15 Jul 2004 21:32:18 -0000	1.21
***************
*** 466,470 ****
  	block * b = deque->leftblock;
  	int index = deque->leftindex;
- 	int err;
  	PyObject *item;
  
--- 466,469 ----
***************
*** 472,482 ****
  		item = b->data[index];
  		index++;
! 		if (index == BLOCKLEN && b->rightlink != NULL) {
  			b = b->rightlink;
  			index = 0;
  		}
! 		err = visit(item, arg);
! 		if (err) 
! 			return err;
  	}
  	return 0;
--- 471,480 ----
  		item = b->data[index];
  		index++;
! 		if (index == BLOCKLEN ) {
! 			assert(b->rightlink != NULL);
  			b = b->rightlink;
  			index = 0;
  		}
! 		Py_VISIT(item);
  	}
  	return 0;



More information about the Python-checkins mailing list