[Python-checkins] python/dist/src/Modules _iconv_codec.c,1.9,1.10

jlt63@users.sourceforge.net jlt63@users.sourceforge.net
Mon, 10 Feb 2003 12:48:38 -0800


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

Modified Files:
	_iconv_codec.c 
Log Message:
Patch #676839: Cygwin _iconv_codec module patch

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


Index: _iconv_codec.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_iconv_codec.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** _iconv_codec.c	4 Feb 2003 20:46:50 -0000	1.9
--- _iconv_codec.c	10 Feb 2003 20:48:35 -0000	1.10
***************
*** 608,612 ****
  
  static PyTypeObject iconvcodec_Type = {
!     PyObject_HEAD_INIT(&PyType_Type)
      0,                              /* Number of items for varobject */
      "iconvcodec",                   /* Name of this type */
--- 608,612 ----
  
  static PyTypeObject iconvcodec_Type = {
!     PyObject_HEAD_INIT(NULL)
      0,                              /* Number of items for varobject */
      "iconvcodec",                   /* Name of this type */
***************
*** 689,692 ****
--- 689,693 ----
      iconv_close(hdl);
  
+     iconvcodec_Type.ob_type = &PyType_Type;
      m = Py_InitModule("_iconv_codec", _iconv_codec_methods);