3 --- Modules/_cursesmodule.c.orig 2013-04-06 14:02:36.000000000 +0000
4 +++ Modules/_cursesmodule.c
5 @@ -322,17 +322,9 @@ Window_NoArg2TupleReturnFunction(getpary
7 Window_OneArgNoReturnFunction(clearok, int, "i;True(1) or False(0)")
8 Window_OneArgNoReturnFunction(idlok, int, "i;True(1) or False(0)")
9 -#if defined(__NetBSD__)
10 -Window_OneArgNoReturnVoidFunction(keypad, int, "i;True(1) or False(0)")
12 Window_OneArgNoReturnFunction(keypad, int, "i;True(1) or False(0)")
14 Window_OneArgNoReturnFunction(leaveok, int, "i;True(1) or False(0)")
15 -#if defined(__NetBSD__)
16 -Window_OneArgNoReturnVoidFunction(nodelay, int, "i;True(1) or False(0)")
18 Window_OneArgNoReturnFunction(nodelay, int, "i;True(1) or False(0)")
20 Window_OneArgNoReturnFunction(notimeout, int, "i;True(1) or False(0)")
21 Window_OneArgNoReturnFunction(scrollok, int, "i;True(1) or False(0)")
22 Window_OneArgNoReturnFunction(winsdelln, int, "i;nlines")
23 @@ -2110,7 +2102,6 @@ PyCurses_Is_Term_Resized(PyObject *self,
25 #endif /* HAVE_CURSES_IS_TERM_RESIZED */
27 -#if !defined(__NetBSD__)
29 PyCurses_KeyName(PyObject *self, PyObject *args)
31 @@ -2129,7 +2120,6 @@ PyCurses_KeyName(PyObject *self, PyObjec
33 return PyString_FromString((knp == NULL) ? "" : (char *)knp);
38 PyCurses_KillChar(PyObject *self)
39 @@ -2674,9 +2664,7 @@ static PyMethodDef PyCurses_methods[] =
40 #ifdef HAVE_CURSES_IS_TERM_RESIZED
41 {"is_term_resized", (PyCFunction)PyCurses_Is_Term_Resized, METH_VARARGS},
43 -#if !defined(__NetBSD__)
44 {"keyname", (PyCFunction)PyCurses_KeyName, METH_VARARGS},
46 {"killchar", (PyCFunction)PyCurses_KillChar, METH_NOARGS},
47 {"longname", (PyCFunction)PyCurses_longname, METH_NOARGS},
48 {"meta", (PyCFunction)PyCurses_Meta, METH_VARARGS},
49 @@ -2785,9 +2773,7 @@ init_curses(void)
50 SetDictInt("A_DIM", A_DIM);
51 SetDictInt("A_BOLD", A_BOLD);
52 SetDictInt("A_ALTCHARSET", A_ALTCHARSET);
53 -#if !defined(__NetBSD__)
54 SetDictInt("A_INVIS", A_INVIS);
56 SetDictInt("A_PROTECT", A_PROTECT);
57 SetDictInt("A_CHARTEXT", A_CHARTEXT);
58 SetDictInt("A_COLOR", A_COLOR);
59 @@ -2859,7 +2845,6 @@ init_curses(void)
63 -#if !defined(__NetBSD__)
64 for (key=KEY_MIN;key < KEY_MAX; key++) {
65 key_n = (char *)keyname(key);
66 if (key_n == NULL || strcmp(key_n,"UNKNOWN KEY")==0)
67 @@ -2887,7 +2872,6 @@ init_curses(void)
72 SetDictInt("KEY_MIN", KEY_MIN);
73 SetDictInt("KEY_MAX", KEY_MAX);