mirror of
https://github.com/python/cpython.git
synced 2025-08-14 22:01:08 +00:00
Merged revisions 68097 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68097 | hirokazu.yamamoto | 2008-12-31 14:24:37 +0900 | 1 line Fixed compile error on windows. ........
This commit is contained in:
parent
d263bd8d4a
commit
c00ad07600
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,7 @@ test_dict_iteration(PyObject* self)
|
|||
* PyType_Ready if it hasn't already been called
|
||||
*/
|
||||
static PyTypeObject _HashInheritanceTester_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* Number of items for varobject */
|
||||
"hashinheritancetester", /* Name of this type */
|
||||
sizeof(PyObject), /* Basic object size */
|
||||
|
@ -1092,6 +1092,7 @@ init_testcapi(void)
|
|||
if (m == NULL)
|
||||
return;
|
||||
|
||||
Py_TYPE(&_HashInheritanceTester_Type)=&PyType_Type;
|
||||
Py_TYPE(&test_structmembersType)=&PyType_Type;
|
||||
Py_INCREF(&test_structmembersType);
|
||||
PyModule_AddObject(m, "test_structmembersType", (PyObject *)&test_structmembersType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue