[Python-checkins] CVS: python/dist/src/Modules pcremodule.c,2.14,2.15

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


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

Modified Files:
	pcremodule.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: pcremodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/pcremodule.c,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -r2.14 -r2.15
*** pcremodule.c	1999/02/01 17:09:00	2.14
--- pcremodule.c	2000/02/04 20:33:27	2.15
***************
*** 166,170 ****
  
  staticforward PyTypeObject Pcre_Type = {
! 	PyObject_HEAD_INIT(&PyType_Type)
  	0,			/*ob_size*/
  	"Pcre",			/*tp_name*/
--- 166,170 ----
  
  staticforward PyTypeObject Pcre_Type = {
! 	PyObject_HEAD_INIT(NULL)
  	0,			/*ob_size*/
  	"Pcre",			/*tp_name*/
***************
*** 664,667 ****
--- 664,669 ----
  {
  	PyObject *m, *d;
+ 
+         Pcre_Type.ob_type = &PyType_Type;
  
  	/* Create the module and add the functions */