[Python-checkins] CVS: python/dist/src/Modules dlmodule.c,2.16,2.17

A.M. Kuchling akuchling@users.sourceforge.net
Tue, 27 Feb 2001 12:54:25 -0800


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

Modified Files:
	dlmodule.c 
Log Message:
Patch #404680: disables the nis module and enables the dl module when
    building under Cygwin.  Makes some fixes to the dlmodule in order to 
    compile with Cygwin.


Index: dlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/dlmodule.c,v
retrieving revision 2.16
retrieving revision 2.17
diff -C2 -r2.16 -r2.17
*** dlmodule.c	2001/02/22 15:52:55	2.16
--- dlmodule.c	2001/02/27 20:54:23	2.17
***************
*** 135,139 ****
  
  static PyTypeObject Dltype = {
! 	PyObject_HEAD_INIT(&PyType_Type)
  	0,			/*ob_size*/
  	"dl",			/*tp_name*/
--- 135,139 ----
  
  static PyTypeObject Dltype = {
! 	PyObject_HEAD_INIT(NULL)
  	0,			/*ob_size*/
  	"dl",			/*tp_name*/
***************
*** 200,204 ****
  }
  
! void
  initdl(void)
  {
--- 200,204 ----
  }
  
! DL_EXPORT(void)
  initdl(void)
  {
***************
*** 211,214 ****
--- 211,217 ----
  		return;
  	}
+ 
+ 	/* Initialize object type */
+ 	Dltype.ob_type = &PyType_Type;
  
  	/* Create the module and add the functions */