[Python-checkins] CVS: python/dist/src/Modules md5module.c,2.12,2.13

Fred L. Drake fdrake@weyr.cnri.reston.va.us
Fri, 4 Feb 2000 15:32:37 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory weyr:/home/fdrake/projects/python/Modules

Modified Files:
	md5module.c 
Log Message:

Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>:

      Attached is patch (against 1.5.2 release) to allow some modules
to be buildable as pyd's (usual &PyType_Type stuff).


Index: md5module.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/md5module.c,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -r2.12 -r2.13
*** md5module.c	1998/12/04 18:49:53	2.12
--- md5module.c	2000/02/04 20:32:35	2.13
***************
*** 201,205 ****
  
  statichere PyTypeObject MD5type = {
! 	PyObject_HEAD_INIT(&PyType_Type)
  	0,			  /*ob_size*/
  	"md5",			  /*tp_name*/
--- 201,205 ----
  
  statichere PyTypeObject MD5type = {
! 	PyObject_HEAD_INIT(NULL)
  	0,			  /*ob_size*/
  	"md5",			  /*tp_name*/
***************
*** 272,275 ****
--- 272,277 ----
  {
  	PyObject *m, *d;
+ 
+         MD5type.ob_type = &PyType_Type;
  	m = Py_InitModule3("md5", md5_functions, module_doc);
  	d = PyModule_GetDict(m);