X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fcurses.priv.h;h=31fabb1738ca7ead9ad0a97b208435dcd3538d5b;hp=80dbdb2b5aa00cbf548381e42bec7d2dc1879162;hb=a1aff38c9421e79f92cd4e8ab0587fdf3806cc28;hpb=7a27c7d49c2e8b4a1ecbe85b4423d647cbc75ea5 diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index 80dbdb2b..31fabb17 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -34,7 +34,7 @@ /* - * $Id: curses.priv.h,v 1.330 2007/04/21 23:52:28 tom Exp $ + * $Id: curses.priv.h,v 1.334 2007/06/09 17:21:53 tom Exp $ * * curses.priv.h * @@ -214,6 +214,8 @@ typedef TRIES { /* * Common/troublesome character definitions */ +#define StringOf(ch) {ch, 0} + #define L_BRACE '{' #define R_BRACE '}' #define S_QUOTE '\'' @@ -380,7 +382,6 @@ typedef struct _SLK { typedef struct { int line; /* lines to take, < 0 => from bottom*/ int (*hook)(WINDOW *, int); /* callback for user */ - WINDOW *w; /* maybe we need this for cleanup */ } ripoff_t; #if USE_GPM_SUPPORT @@ -539,6 +540,8 @@ typedef struct { extern NCURSES_EXPORT_VAR(NCURSES_GLOBALS) _nc_globals; +#define N_RIPS 5 + /* * Global data which is swept up into a SCREEN when one is created. * It may be modified before the next SCREEN is created. @@ -547,9 +550,10 @@ typedef struct { bool use_env; bool filter_mode; attr_t previous_attr; - ripoff_t rippedoff[5]; + ripoff_t rippedoff[N_RIPS]; ripoff_t *rsp; TPARM_STATE tparm_state; + TTY *saved_tty; /* savetty/resetty information */ #if BROKEN_LINKER || USE_REENTRANT chtype *real_acs_map; #endif @@ -575,8 +579,6 @@ struct screen { NCURSES_SIZE_T _lines_avail; /* lines available for stdscr */ NCURSES_SIZE_T _topstolen; /* lines stolen from top */ - ripoff_t _rippedoff[5]; /* list of lines stolen */ - int _rip_count; /* ...and total lines stolen */ WINDOW *_curscr; /* current screen */ WINDOW *_newscr; /* virtual screen to be updated to */ @@ -893,9 +895,9 @@ extern NCURSES_EXPORT_VAR(SIG_ATOMIC_T) _nc_have_sigwinch; #define NulChar 0,0,0,0 /* FIXME: see CCHARW_MAX */ #define CharOf(c) ((c).chars[0]) #define AttrOf(c) ((c).attr) -#define AddAttr(c,a) AttrOf(c) |= ((a) & A_ATTRIBUTES) +#define AddAttr(c,a) AttrOf(c) |= ((a) & A_ATTRIBUTES) #define RemAttr(c,a) AttrOf(c) &= ~((a) & A_ATTRIBUTES) -#define SetAttr(c,a) AttrOf(c) = ((a) & A_ATTRIBUTES) +#define SetAttr(c,a) AttrOf(c) = ((a) & A_ATTRIBUTES) | WidecExt(c) #define NewChar2(c,a) { a, { c, NulChar } NulColor } #define NewChar(ch) NewChar2(ChCharOf(ch), ChAttrOf(ch)) #define CharEq(a,b) (!memcmp(&(a), &(b), sizeof(a)))