mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
This commit is contained in:
parent
31584cb43d
commit
a120ffcf12
4 changed files with 15 additions and 5 deletions
|
|
@ -350,7 +350,7 @@ PyCursesPanel_GetAttr(PyCursesPanelObject *self, char *name)
|
|||
/* -------------------------------------------------------*/
|
||||
|
||||
PyTypeObject PyCursesPanel_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
"curses panel", /*tp_name*/
|
||||
sizeof(PyCursesPanelObject), /*tp_basicsize*/
|
||||
|
|
@ -469,11 +469,14 @@ static PyMethodDef PyCurses_methods[] = {
|
|||
|
||||
/* Initialization function for the module */
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
init_curses_panel(void)
|
||||
{
|
||||
PyObject *m, *d, *v;
|
||||
|
||||
/* Initialize object type */
|
||||
PyCursesPanel_Type.ob_type = &PyType_Type;
|
||||
|
||||
import_curses();
|
||||
|
||||
/* Create the module and add the functions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue