0
0
mirror of https://github.com/python/cpython.git synced 2024-11-21 21:09:37 +01:00

gh-123961: Add a global state to _curses (#124729)

This commit is contained in:
Bénédikt Tran 2024-09-29 17:17:20 +02:00 committed by GitHub
parent 12417a984c
commit 4d8e7c40a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 274 additions and 177 deletions

View File

@ -81,8 +81,6 @@ typedef struct {
char *encoding;
} PyCursesWindowObject;
#define PyCursesWindow_Check(v) Py_IS_TYPE((v), &PyCursesWindow_Type)
#define PyCurses_CAPSULE_NAME "_curses._C_API"
@ -99,6 +97,8 @@ static void **PyCurses_API;
#define PyCursesInitialised {if (! ((int (*)(void))PyCurses_API[2]) () ) return NULL;}
#define PyCursesInitialisedColor {if (! ((int (*)(void))PyCurses_API[3]) () ) return NULL;}
#define PyCursesWindow_Check(v) Py_IS_TYPE((v), &PyCursesWindow_Type)
#define import_curses() \
PyCurses_API = (void **)PyCapsule_Import(PyCurses_CAPSULE_NAME, 1);

File diff suppressed because it is too large Load Diff

View File

@ -423,6 +423,7 @@ Modules/readline.c - libedit_history_start -
Modules/_ctypes/cfield.c - formattable -
Modules/_ctypes/malloc_closure.c - free_list -
Modules/_cursesmodule.c - curses_global_state -
Modules/_curses_panel.c - lop -
Modules/_ssl/debughelpers.c _PySSL_keylog_callback lock -
Modules/_tkinter.c - quitMainLoop -

Can't render this file because it has a wrong number of fields in line 4.