mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +00:00
Patch #676837: Cygwin array module patch
The attached patch enables the array module to build cleanly under Cygwin again.
This commit is contained in:
parent
ba20533d82
commit
8437570ec2
1 changed files with 2 additions and 1 deletions
|
@ -1949,7 +1949,7 @@ arrayiter_traverse(arrayiterobject *it, visitproc visit, void *arg)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyTypeObject PyArrayIter_Type = {
|
static PyTypeObject PyArrayIter_Type = {
|
||||||
PyObject_HEAD_INIT(&PyType_Type)
|
PyObject_HEAD_INIT(NULL)
|
||||||
0, /* ob_size */
|
0, /* ob_size */
|
||||||
"arrayiterator", /* tp_name */
|
"arrayiterator", /* tp_name */
|
||||||
sizeof(arrayiterobject), /* tp_basicsize */
|
sizeof(arrayiterobject), /* tp_basicsize */
|
||||||
|
@ -1996,6 +1996,7 @@ initarray(void)
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
|
|
||||||
Arraytype.ob_type = &PyType_Type;
|
Arraytype.ob_type = &PyType_Type;
|
||||||
|
PyArrayIter_Type.ob_type = &PyType_Type;
|
||||||
m = Py_InitModule3("array", a_methods, module_doc);
|
m = Py_InitModule3("array", a_methods, module_doc);
|
||||||
|
|
||||||
Py_INCREF((PyObject *)&Arraytype);
|
Py_INCREF((PyObject *)&Arraytype);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue