diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-18 21:30:36 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-18 21:30:36 (GMT) |
commit | 80101a8ac7a8291c3341ca3373b1d0ddd2892de9 (patch) | |
tree | 31cbb505ee7dfa92343f4900ad934c65c7d99124 /Modules/xxmodule.c | |
parent | 9cd177526afc086a300b548588880329c32f607d (diff) | |
download | cpython-80101a8ac7a8291c3341ca3373b1d0ddd2892de9.zip cpython-80101a8ac7a8291c3341ca3373b1d0ddd2892de9.tar.gz cpython-80101a8ac7a8291c3341ca3373b1d0ddd2892de9.tar.bz2 |
I'm using the xxmodule and xxsubtype to test the msvccompiler on Windows. I'm having trouble to compile the module with VS 2008 cl.exe because "initializer is not a constant".
Diffstat (limited to 'Modules/xxmodule.c')
-rw-r--r-- | Modules/xxmodule.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/xxmodule.c b/Modules/xxmodule.c index 7509e20..75285f0 100644 --- a/Modules/xxmodule.c +++ b/Modules/xxmodule.c @@ -246,7 +246,7 @@ static PyTypeObject Str_Type = { 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ - &PyUnicode_Type, /*tp_base*/ + 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ @@ -301,7 +301,7 @@ static PyTypeObject Null_Type = { 0, /*tp_methods*/ 0, /*tp_members*/ 0, /*tp_getset*/ - &PyBaseObject_Type, /*tp_base*/ + 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ @@ -341,6 +341,9 @@ initxx(void) { PyObject *m; + Null_Type.tp_base = &PyBaseObject_Type; + Str_Type.tp_base = &PyUnicode_Type; + /* Finalize the type object including setting type of the new type * object; doing it here is required for portability to Windows * without requiring C++. */ |