Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Change the values of ERR and OK.



details:   https://anonhg.NetBSD.org/src/rev/7452f7109eb4
branches:  trunk
changeset: 559782:7452f7109eb4
user:      jdc <jdc%NetBSD.org@localhost>
date:      Tue Mar 23 21:35:29 2004 +0000

description:
Change the values of ERR and OK.
This makes our getch() and related functions conform to SUSv2.
Also fixes PR lib/15920.

XXX: This causes an API incompatability, but comes less than 27 hours after
     the libcurses major number was incremented, so should have minimal impact.

diffstat:

 lib/libcurses/curses.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 9a29fea1fa3b -r 7452f7109eb4 lib/libcurses/curses.h
--- a/lib/libcurses/curses.h    Tue Mar 23 21:17:20 2004 +0000
+++ b/lib/libcurses/curses.h    Tue Mar 23 21:35:29 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses.h,v 1.84 2004/03/22 18:57:38 jdc Exp $  */
+/*     $NetBSD: curses.h,v 1.85 2004/03/23 21:35:29 jdc Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -306,8 +306,8 @@
 
 extern int      ESCDELAY;              /* Delay between keys in esc seq's. */
 
-#define        ERR     (0)                     /* Error return. */
-#define        OK      (1)                     /* Success return. */
+#define        ERR     (-1)                    /* Error return. */
+#define        OK      (0)                     /* Success return. */
 
 /*
  * The following have, traditionally, been macros but X/Open say they



Home | Main Index | Thread Index | Old Index