[XML-SIG] (no subject)

Juergen Hermann Juergen Hermann" <jhe@webde-ag.de
Thu, 09 Mar 2000 15:06:07


Hi!

Environment:
        Windows NT4 SP6
        Visual C++ 5
        Python 1.5.2

I had to make the following changes to get PyXML 0.5.3 to run,
due to this error:

c:\programme\devstudio\vc\bin\cl.exe /nologo /Ox /MD
-ID:\PROGRAMME\PYTHON\include\python1.5 -ID:\PROGRAMME\PYTHON\include /c=

/Foextensions/wstrop.obj /Tcextensions/wstrop.c 

extensions/wstrop.c(1150) : error C2099: initializer is not a constant

--- wstrop.c.bak        Thu Mar 09 12:46:52 2000
+++ wstrop.c    Thu Mar 09 12:47:25 2000
@@ -1147,7 +1147,8 @@


 statichere PyTypeObject PyWString_Type =3D {
-  PyObject_HEAD_INIT(&PyType_Type)
+/*  PyObject_HEAD_INIT(&PyType_Type) */
+  PyObject_HEAD_INIT(0)
   0,                                /*ob_size*/
   "wstring",                        /*tp_name*/
   sizeof(PyWString),                /*tp_size*/
@@ -1185,6 +1186,9 @@
 initwstrop()
 {
   PyObject *m,*d,*s;
+
+  PyWString_Type.ob_type =3D &PyType_Type;
+
   m=3DPy_InitModule4("wstrop",PyWStrop_Methods,PyWStrop_Doc,
                   0,PYTHON_API_VERSION);
   d =3D PyModule_GetDict(m);




Ciao, J=FCrgen

--
J=FCrgen Hermann (jhe@webde-ag.de)
WEB.DE AG, Amalienbadstr.41, D-76227 Karlsruhe
Tel.: 0721/94329-0, Fax: 0721/94329-22