[Python-checkins] r43634 - python/trunk/Modules/collectionsmodule.c (original) (raw)

anthony.baxter python-checkins at python.org
Tue Apr 4 17:05:24 CEST 2006


Author: anthony.baxter Date: Tue Apr 4 17:05:23 2006 New Revision: 43634

Modified: python/trunk/Modules/collectionsmodule.c Log: SF Bug #1448488 - make collectionsmodule build on Cygwin, using the same techniques as in Modules/xxsubtype.c

Modified: python/trunk/Modules/collectionsmodule.c

--- python/trunk/Modules/collectionsmodule.c (original) +++ python/trunk/Modules/collectionsmodule.c Tue Apr 4 17:05:23 2006 @@ -1277,8 +1277,11 @@ A defaultdict compares equal to a dict with the same items.\n
");

+/* See comment in xxsubtype.c / +#define DEFERRED_ADDRESS(ADDR) 0 + static PyTypeObject defdict_type = { - PyObject_HEAD_INIT(NULL) + PyObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type)) 0, / ob_size / "collections.defaultdict", / tp_name / sizeof(defdictobject), / tp_basicsize / @@ -1311,7 +1314,7 @@ defdict_methods, / tp_methods / defdict_members, / tp_members / 0, / tp_getset / - &PyDict_Type, / tp_base / + DEFERRED_ADDRESS(&PyDict_Type), / tp_base / 0, / tp_dict / 0, / tp_descr_get / 0, / tp_descr_set */ @@ -1344,6 +1347,7 @@ Py_INCREF(&deque_type); PyModule_AddObject(m, "deque", (PyObject *)&deque_type);



More information about the Python-checkins mailing list