From ddfd5219ed8a26231c47e9bb7b65582407f23540 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 18 Dec 2019 11:06:16 -0500 Subject: [PATCH] notcurses_getc() needs return wchar_t #161 --- README.md | 4 ++-- include/notcurses.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 23a756cb0..43f8a5ae2 100644 --- a/README.md +++ b/README.md @@ -334,9 +334,9 @@ wchar_supppuab_p(wchar_t w){ // 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 // 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){ sigset_t sigmask; sigfillset(&sigmask); diff --git a/include/notcurses.h b/include/notcurses.h index 410c105f6..f7aa0cdd3 100644 --- a/include/notcurses.h +++ b/include/notcurses.h @@ -225,9 +225,9 @@ wchar_supppuab_p(wchar_t w){ // 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 // 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){ sigset_t sigmask; sigfillset(&sigmask);