projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 5.7 - patch 20100123
[ncurses.git]
/
include
/
curses.h.in
diff --git
a/include/curses.h.in
b/include/curses.h.in
index ac5a400a761d04571cc9956b92214a2b0464d862..aecd7c5405d9f1ed49cf3810ccb06570282b0c63 100644
(file)
--- a/
include/curses.h.in
+++ b/
include/curses.h.in
@@
-32,7
+32,7
@@
* and: Thomas E. Dickey 1996-on *
****************************************************************************/
* and: Thomas E. Dickey 1996-on *
****************************************************************************/
-/* $Id: curses.h.in,v 1.20
8 2010/01/09 19:34:26
tom Exp $ */
+/* $Id: curses.h.in,v 1.20
9 2010/01/23 21:54:01
tom Exp $ */
#ifndef __NCURSES_H
#define __NCURSES_H
#ifndef __NCURSES_H
#define __NCURSES_H
@@
-1103,12
+1103,16
@@
extern NCURSES_EXPORT(int) NCURSES_SP_NAME(use_legacy_coding) (SCREEN*, int);
#if !NCURSES_OPAQUE
#if defined(_XOPEN_SOURCE_EXTENDED) && @NCURSES_EXT_COLORS@
#if !NCURSES_OPAQUE
#if defined(_XOPEN_SOURCE_EXTENDED) && @NCURSES_EXT_COLORS@
-#define wattrset(win,at) ((win)->_color = PAIR_NUMBER(at), \
- (win)->_attrs = (at), \
- NCURSES_CAST(int, (win)->_attrs))
+#define wattrset(win,at) ((win) \
+ ? ((win)->_color = PAIR_NUMBER(at), \
+ (win)->_attrs = (at), \
+ OK) \
+ : ERR)
#else
#else
-#define wattrset(win,at) ((win)->_attrs = (at), \
- NCURSES_CAST(int, (win)->_attrs))
+#define wattrset(win,at) ((win) \
+ ? ((win)->_attrs = (at), \
+ OK) \
+ : ERR)
#endif
#endif /* NCURSES_OPAQUE */
#endif
#endif /* NCURSES_OPAQUE */