In a recent note, Thomas Dickey said:
> Date: Sat, 20 Mar 2004 20:42:08 -0500 (EST)
>
> But not really.
>
> Over in dialog I'm fussing over some places where the people at HP have
> been breaking the legacy stuff - still in the namespace, but it doesn't
> work the way it used to. So the preference is to use the X/Open functions
> (HP's broken less of that), and handle special cases.
>
OK. Here's another stab at it.
o The overriding test on "defined(HAVE_GETATTRS)" increases my
comfort. There was no problem on Solaris or OS X because both
have "/* #undef HAVE_WATTR_GET */", while z/OS has
/usr/include/curses.h:extern int wattr_get(WINDOW *, attr_t *, short *, void *);
but not getattrs.
o Swapping the order of the other tests removes the need for double testing
of "defined(NCURSES_MAJOR_VERSION)".
Thanks,
gil
--
StorageTek
INFORMATION made POWERFUL
%%% Created Sat Mar 20 12:41:02 MST 2004 by target lynx.patch. %%%
diff -bru orig/lynx2-8-5/src/LYCurses.c lynx2-8-5/src/LYCurses.c
--- orig/lynx2-8-5/src/LYCurses.c Mon Feb 2 13:02:28 2004
+++ lynx2-8-5/src/LYCurses.c Sat Mar 20 12:32:21 2004
@@ -2701,7 +2701,8 @@
*/
PUBLIC long LYgetattrs ARGS1(WINDOW *, win)
{
-#if (defined(NCURSES_VERSION_MAJOR) && NCURSES_VERSION_MAJOR < 5) ||
!defined(NCURSES_MAJOR_VERSION)
+#if ( defined(HAVE_GETATTRS) && \
+ ( !defined(NCURSES_MAJOR_VERSION) || NCURSES_VERSION_MAJOR < 5 ) )
long result = 0;
result = getattrs(win);
#else
_______________________________________________
Lynx-dev mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lynx-dev