--- rxvt-unicode/src/rxvtlib.h.in 2006/01/17 16:22:41 1.71 +++ rxvt-unicode/src/rxvtlib.h.in 2007/10/31 09:55:24 1.78 @@ -30,8 +30,12 @@ // stdlib.h might provide it #endif +using namespace std; + extern "C" { -#include /* Xlib, Xutil, Xresource, Xfuncproto */ +#include +#include +#include } /* @@ -52,7 +56,6 @@ struct rxvt_color; struct rxvt_vars; /* defined later on */ struct rxvt_term; -struct rxvt_display; struct rxvt_im; struct rxvt_drawable; @@ -100,7 +103,7 @@ * |························= row_buf[2] etc. * | * +------------+···········= term_start + top_row - * | scrollback | + * | scrollback | * | scrollback +---------+·= term_start + view_start * | scrollback | display | * | scrollback | display | @@ -185,7 +188,7 @@ unsigned int screen; /* screen being used */ unsigned int clicks; /* number of clicks */ selection_op_t op; /* current operation */ - bool rect; /* rectangluar selection? */ + bool rect; /* rectangular selection? */ row_col_t beg; /* beginning of selection <= mark */ row_col_t mark; /* point of initial click <= end */ row_col_t end; /* one character past end point */ @@ -203,11 +206,12 @@ /* rxvt_vars.options */ enum { -# define def(name,idx) Opt_ ## name = 1UL << (idx), +# define def(name,idx) Opt_ ## name = idx, # define nodef(name) Opt_ ## name = 0, # include "optinc.h" # undef nodef # undef def +Opt_count }; /* ------------------------------------------------------------------------- */ @@ -232,9 +236,8 @@ struct rxvt_vars : TermWin_t { scrollBar_t scrollBar; - uint32_t options; + uint8_t options[(Opt_count + 7) >> 3]; XSizeHints szHint; - rxvt_display *display; rxvt_color *pix_colors; rxvt_color *pix_colors_focused; #ifdef OFF_FOCUS_FADING