Merge branch 'master' of github.com:dankamongmen/notcurses

This commit is contained in:
nick black 2019-12-18 15:29:09 -05:00
commit 5459b4a8a7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 4 additions and 4 deletions

View File

@ -338,9 +338,9 @@ wchar_supppuab_p(wchar_t w){
// masked and unmasked per ppoll(2). It should generally contain all signals. // masked and unmasked per ppoll(2). It should generally contain all signals.
// Returns a single Unicode code point, or (wchar_t)-1 on error. 'sigmask' may // Returns a single Unicode code point, or (wchar_t)-1 on error. 'sigmask' may
// be NULL. // be NULL.
int notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask); wchar_t notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask);
static inline int static inline wchar_t
notcurses_getc_nblock(struct notcurses* n){ notcurses_getc_nblock(struct notcurses* n){
sigset_t sigmask; sigset_t sigmask;
sigfillset(&sigmask); sigfillset(&sigmask);

View File

@ -228,9 +228,9 @@ wchar_supppuab_p(wchar_t w){
// masked and unmasked per ppoll(2). It should generally contain all signals. // masked and unmasked per ppoll(2). It should generally contain all signals.
// Returns a single Unicode code point, or (wchar_t)-1 on error. 'sigmask' may // Returns a single Unicode code point, or (wchar_t)-1 on error. 'sigmask' may
// be NULL. // be NULL.
API int notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask); API wchar_t notcurses_getc(struct notcurses* n, const struct timespec* ts, sigset_t* sigmask);
static inline int static inline wchar_t
notcurses_getc_nblock(struct notcurses* n){ notcurses_getc_nblock(struct notcurses* n){
sigset_t sigmask; sigset_t sigmask;
sigfillset(&sigmask); sigfillset(&sigmask);