Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses In struct __window, change flags back to an "u...



details:   https://anonhg.NetBSD.org/src/rev/2895a81f1c40
branches:  trunk
changeset: 474113:2895a81f1c40
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Jun 28 12:32:07 1999 +0000

description:
In struct __window, change flags back to an "unsigned int" from an
"u_int32_t", and move new member "delay" to the end of the structure.
Restores binary compatibility with older curses-based programs that
called any macros that modified window flags (like clearok, which
bites vi).

Fixes PR lib/7863 from Ross Harvey.

diffstat:

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

diffs (28 lines):

diff -r 6c838f6ce846 -r 2895a81f1c40 lib/libcurses/curses.h
--- a/lib/libcurses/curses.h    Mon Jun 28 08:49:15 1999 +0000
+++ b/lib/libcurses/curses.h    Mon Jun 28 12:32:07 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses.h,v 1.22 1999/04/13 14:08:17 mrg Exp $  */
+/*     $NetBSD: curses.h,v 1.23 1999/06/28 12:32:07 simonb Exp $       */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -261,7 +261,6 @@
        __LINE **lines;                 /* Array of pointers to the lines */
        __LINE  *lspace;                /* line space (for cleanup) */
        __LDATA *wspace;                /* window space (for cleanup) */
-       int     delay;                  /* delay for getch() */
 
 #define        __ENDLINE       0x00001         /* End of screen. */
 #define        __FLUSH         0x00002         /* Fflush(stdout) after refresh. */
@@ -283,8 +282,9 @@
                                                (excluding standout). */
 #define        __KEYPAD        0x10000         /* If interpreting keypad codes */
 #define        __NOTIMEOUT     0x20000         /* Wait indefinitely for func keys */
+       unsigned int flags;
 
-       u_int32_t       flags;
+       int     delay;                  /* delay for getch() */
 } WINDOW;
 
 /* Curses external declarations. */



Home | Main Index | Thread Index | Old Index