X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fcurses.h.in;h=a417c7af95f66a64abaa8198c5429d34a2ea1709;hp=e3ce85ffc96647de9610da1db6f947260f917062;hb=1501ae2a13db0ffd2db8404c24aa5010a88ea91b;hpb=a20e6eb464be80b9cd8cae7ce925d27fe9c209ed diff --git a/include/curses.h.in b/include/curses.h.in index e3ce85ff..a417c7af 100644 --- a/include/curses.h.in +++ b/include/curses.h.in @@ -32,7 +32,7 @@ * and: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: curses.h.in,v 1.256 2017/08/11 17:47:51 tom Exp $ */ +/* $Id: curses.h.in,v 1.257 2017/11/21 00:11:37 tom Exp $ */ #ifndef __NCURSES_H #define __NCURSES_H @@ -884,6 +884,12 @@ extern NCURSES_EXPORT(char *) tparm_varargs (NCURSES_CONST char *, ...); /* spec extern NCURSES_EXPORT(char *) tiparm (const char *, ...); /* special */ +/* + * X/Open says this returns a bool; SVr4 also checked for out-of-range line. + * The macro provides compatibility: + */ +#define is_linetouched(w,l) ((!(w) || ((l) > getmaxy(w)) || ((l) < 0)) ? ERR : (is_linetouched)((w),(l))) + /* * These functions are not in X/Open, but we use them in macro definitions: */