[Python-checkins] python/dist/src/Modules arraymodule.c,2.82,2.83

jlt63@users.sourceforge.net jlt63@users.sourceforge.net
Mon, 10 Feb 2003 12:45:53 -0800


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

Modified Files:
	arraymodule.c 
Log Message:
Patch #676837: Cygwin array module patch

The attached patch enables the array module 
to build cleanly under Cygwin again.


Index: arraymodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/arraymodule.c,v
retrieving revision 2.82
retrieving revision 2.83
diff -C2 -d -r2.82 -r2.83
*** arraymodule.c	7 Jan 2003 01:58:51 -0000	2.82
--- arraymodule.c	10 Feb 2003 20:45:47 -0000	2.83
***************
*** 1950,1954 ****
  
  static PyTypeObject PyArrayIter_Type = {
! 	PyObject_HEAD_INIT(&PyType_Type)
  	0,                                      /* ob_size */
  	"arrayiterator",                        /* tp_name */
--- 1950,1954 ----
  
  static PyTypeObject PyArrayIter_Type = {
! 	PyObject_HEAD_INIT(NULL)
  	0,                                      /* ob_size */
  	"arrayiterator",                        /* tp_name */
***************
*** 1997,2000 ****
--- 1997,2001 ----
  
  	Arraytype.ob_type = &PyType_Type;
+ 	PyArrayIter_Type.ob_type = &PyType_Type;
  	m = Py_InitModule3("array", a_methods, module_doc);