Mercurial > cpython-lru_cache-weakref
diff Modules/bsddbmodule.c @ 4294:520ddcb3d5d6 legacy-trunk
Dynamically initialize ob_type field, for Windows DLL
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 11 Sep 1996 23:18:43 +0000 |
| parents | 2eaa00860edc |
| children | 008b9fc565bf |
line wrap: on
line diff
--- a/Modules/bsddbmodule.c Wed Sep 11 23:17:20 1996 +0000 +++ b/Modules/bsddbmodule.c Wed Sep 11 23:18:43 1996 +0000 @@ -478,7 +478,7 @@ } static PyTypeObject Bsddbtype = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, "bsddb", sizeof(bsddbobject), @@ -667,6 +667,7 @@ initbsddb() { PyObject *m, *d; + Bsddbtype.ob_type = &PyType_Type; m = Py_InitModule("bsddb", bsddbmodule_methods); d = PyModule_GetDict(m); BsddbError = PyString_FromString("bsddb.error");
