Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Change attr in __LDATA from a char to an int. ...
details: https://anonhg.NetBSD.org/src/rev/325a163a3622
branches: trunk
changeset: 476827:325a163a3622
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Sep 29 00:34:38 1999 +0000
description:
Change attr in __LDATA from a char to an int. Fixes a few annoying
screen update problems (particularly on the pmax, sparc and alpha,
and i386 to a lesser extent). It seems that because __LDATA wasn't a
fully packed structure (and hashes to check for screen updates hashed
unused areas in the structure as well) that under some circumstances the
compiler filled the unused areas with garbage.
Doesn't break binary compatibiliy - no shared library version number
changes.
diffstat:
lib/libcurses/curses.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e1ecd8724ac0 -r 325a163a3622 lib/libcurses/curses.h
--- a/lib/libcurses/curses.h Wed Sep 29 00:20:25 1999 +0000
+++ b/lib/libcurses/curses.h Wed Sep 29 00:34:38 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curses.h,v 1.26 1999/08/08 08:58:08 simonb Exp $ */
+/* $NetBSD: curses.h,v 1.27 1999/09/29 00:34:38 simonb Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -236,7 +236,7 @@
#define __PROTECT 0x80 /* Added characters are protected. */
#define __ATTRIBUTES 0xfe /* All character attributes
(excluding standout). */
- char attr; /* attributes of character */
+ int attr; /* attributes of character */
} __LDATA;
#define __LDATASIZE (sizeof(__LDATA))
Home |
Main Index |
Thread Index |
Old Index