Clear also the PyHKEY_Type static type at exit.
}
+
+#ifdef MS_WINDOWS
+extern PyTypeObject PyHKEY_Type;
+#endif
+
static PyTypeObject* static_types[] = {
// The two most important base types: must be initialized first and
// deallocated last.
&PyFunction_Type,
&PyGen_Type,
&PyGetSetDescr_Type,
+#ifdef MS_WINDOWS
+ &PyHKEY_Type,
+#endif
&PyInstanceMethod_Type,
&PyListIter_Type,
&PyListRevIter_Type,
PyHKEY_Type.tp_doc = PyHKEY_doc;
if (PyType_Ready(&PyHKEY_Type) < 0)
return NULL;
- Py_INCREF(&PyHKEY_Type);
if (PyDict_SetItemString(d, "HKEYType",
(PyObject *)&PyHKEY_Type) != 0)
return NULL;
- Py_INCREF(PyExc_OSError);
if (PyDict_SetItemString(d, "error",
PyExc_OSError) != 0)
return NULL;
ADD_INT(REG_RESOURCE_REQUIREMENTS_LIST);
return m;
}
-
-