Spaces:
Runtime error
Runtime error
| /* | |
| ** On Mac OS X 10.2 [n]curses.h and stdlib.h use different guards | |
| ** against multiple definition of wchar_t. | |
| */ | |
| /* On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards | |
| against multiple definition of wchar_t and wint_t. */ | |
| /* The following definition is necessary for ncurses 5.7; without it, | |
| some of [n]curses.h set NCURSES_OPAQUE to 1, and then Python | |
| can't get at the WINDOW flags field. */ | |
| /* configure was checking <curses.h>, but we will | |
| use <ncurses.h>, which has some or all these features. */ | |
| extern "C" { | |
| /* Type declarations */ | |
| typedef struct { | |
| PyObject_HEAD | |
| WINDOW *win; | |
| char *encoding; | |
| } PyCursesWindowObject; | |
| /* This section is used when compiling _cursesmodule.c */ | |
| /* This section is used in modules that use the _cursesmodule API */ | |
| static void **PyCurses_API; | |
| /* general error messages */ | |
| static const char catchall_ERR[] = "curses function returned ERR"; | |
| static const char catchall_NULL[] = "curses function returned NULL"; | |
| } | |