X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Fcurses.priv.h;h=ff57cbf0ba90a04f584b73583e0294c0ce7c53a7;hb=205ea499dbbceba5201d997fbd8b6b1f7f29bd50;hp=72847bc94a9dc4c1f59df87052f2a59c118d4e27;hpb=47c323416bb23200896a311ceadbea794b0eb3a6;p=ncurses.git diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index 72847bc9..ff57cbf0 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -35,7 +35,7 @@ ****************************************************************************/ /* - * $Id: curses.priv.h,v 1.649 2022/04/30 18:32:29 tom Exp $ + * $Id: curses.priv.h,v 1.653 2022/10/23 13:29:26 tom Exp $ * * curses.priv.h * @@ -141,6 +141,10 @@ extern int errno; # endif #endif +#ifndef PRIxPTR +# define PRIxPTR "lx" +#endif + /* include signal.h before curses.h to work-around defect in glibc 2.1.3 */ #include @@ -672,9 +676,14 @@ extern NCURSES_EXPORT(int) _nc_sigprocmask(int, const sigset_t *, sigset_t *); #define _nc_lock_global(name) /* nothing */ #define _nc_try_global(name) 0 #define _nc_unlock_global(name) /* nothing */ - #endif /* USE_PTHREADS */ +#if USE_PTHREADS_EINTR +extern NCURSES_EXPORT(void) _nc_set_read_thread(bool); +#else +#define _nc_set_read_thread(enable) /* nothing */ +#endif + /* * When using sp-funcs, locks are targeted to SCREEN-level granularity. * So the locking is done in the non-sp-func (which calls the sp-func) rather @@ -1702,6 +1711,8 @@ extern NCURSES_EXPORT(const char *) _nc_viscbuf (const NCURSES_CH_T *, int); #define returnWin(code) return code #define returnDB(code) return code +#define returnPtrDB(rc) return rc +#define returnVoidDB return #endif /* TRACE/!TRACE */