X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcurses.h.in;h=aecd7c5405d9f1ed49cf3810ccb06570282b0c63;hb=d49a800c7f54c8d9e77f745423c821a8535ada59;hp=3b1ceec64b626e049916b644c19f67f19eada0e9;hpb=f5da57ad7eb397b1001e2fca9cb0e278a6564716;p=ncurses.git diff --git a/include/curses.h.in b/include/curses.h.in index 3b1ceec6..aecd7c54 100644 --- a/include/curses.h.in +++ b/include/curses.h.in @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -32,7 +32,7 @@ * and: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: curses.h.in,v 1.207 2009/11/07 19:14:00 tom Exp $ */ +/* $Id: curses.h.in,v 1.209 2010/01/23 21:54:01 tom Exp $ */ #ifndef __NCURSES_H #define __NCURSES_H @@ -823,6 +823,8 @@ extern NCURSES_EXPORT(char *) tparm (NCURSES_CONST char *, long,long,long,long,l extern NCURSES_EXPORT(char *) tparm_varargs (NCURSES_CONST char *, ...); /* special */ #endif +extern NCURSES_EXPORT(char *) tiparm (const char *, ...); /* special */ + /* * These functions are not in X/Open, but we use them in macro definitions: */ @@ -1101,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@ -#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 -#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 */