[Python-checkins] python/dist/src/Modules _randommodule.c,1.1,1.2

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Tue, 31 Dec 2002 13:55:19 -0800


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

Modified Files:
	_randommodule.c 
Log Message:
Try to get compilation working for cygwin

Index: _randommodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_randommodule.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _randommodule.c	29 Dec 2002 23:03:37 -0000	1.1
--- _randommodule.c	31 Dec 2002 21:55:16 -0000	1.2
***************
*** 487,491 ****
  	0,				/*tp_call*/
  	0,				/*tp_str*/
! 	PyObject_GenericGetAttr,	/*tp_getattro*/
  	0,				/*tp_setattro*/
  	0,				/*tp_as_buffer*/
--- 487,491 ----
  	0,				/*tp_call*/
  	0,				/*tp_str*/
! 	0,				/*tp_getattro*/
  	0,				/*tp_setattro*/
  	0,				/*tp_as_buffer*/
***************
*** 507,513 ****
  	0,				/*tp_dictoffset*/
  	0,				/*tp_init*/
! 	PyType_GenericAlloc,		/*tp_alloc*/
  	random_new,			/*tp_new*/
! 	_PyObject_Del,			/*tp_free*/
  	0,				/*tp_is_gc*/
  };
--- 507,513 ----
  	0,				/*tp_dictoffset*/
  	0,				/*tp_init*/
! 	0,				/*tp_alloc*/
  	random_new,			/*tp_new*/
! 	0,				/*tp_free*/
  	0,				/*tp_is_gc*/
  };
***************
*** 521,524 ****
--- 521,527 ----
  	PyObject *m;
  
+ 	Random_Type.tp_getattro = PyObject_GenericGetAttr;
+ 	Random_Type.tp_alloc = PyType_GenericAlloc;
+ 	Random_Type.tp_free = _PyObject_Del;
  	if (PyType_Ready(&Random_Type) < 0)
  		return;