Buckets:
| /* | |
| ** 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. */ | |
| /* gh-109617, gh-115383: we can rely on the default value for NCURSES_OPAQUE on | |
| most platforms, but not on macOS. This is because, starting with Xcode 15, | |
| Apple-provided ncurses.h comes from ncurses 6 (which defaults to opaque | |
| structs) but can still be linked to older versions of ncurses dynamic | |
| libraries which don't provide functions such as is_pad() to deal with opaque | |
| structs. Setting NCURSES_OPAQUE to 0 is harmless in all ncurses releases to | |
| this date (provided that a thread-safe implementation is not required), but | |
| this might change in the future. This fix might become irrelevant once | |
| support for macOS 13 or earlier is dropped. */ | |
| /* configure was checking <curses.h>, but we will | |
| use <ncurses.h>, which has some or all these features. */ | |
| /* the WINDOW flags field was always accessible in ncurses prior to 20070303; | |
| after that, it depends on the value of NCURSES_OPAQUE. */ | |
| extern "C" { | |
| /* Type declarations */ | |
| typedef struct PyCursesWindowObject { | |
| PyObject_HEAD | |
| WINDOW *win; | |
| char *encoding; | |
| struct PyCursesWindowObject *orig; | |
| } 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"; | |
| } | |
Xet Storage Details
- Size:
- 3.51 kB
- Xet hash:
- 7b14bce5a951d6d6b7e0442f8e15de95c29ed7f7397f6c9395861ed56356583c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.