--- rxvt-unicode/src/rxvtlib.h.in 2006/01/16 15:00:20 1.67 +++ rxvt-unicode/src/rxvtlib.h.in 2007/12/18 12:04:50 1.84 @@ -4,24 +4,16 @@ #include #include #include -@include_stdarg_h@ -@include_stdlib_h@ +#include +#include @include_stdint_h@ #include -@include_unistd_h@ -@include_string_h@ -@include_fcntl_h@ -@include_util_h@ -@include_assert_h@ +#include +#include +#include @include_sys_ioctl_h@ -@include_sys_time_h@ -@include_time_h@ -@include_sys_select_h@ @include_sys_strredir_h@ -#include -#include - #if HAVE_CWCHAR # include #elif HAVE_WCHAR_H @@ -30,31 +22,18 @@ // stdlib.h might provide it #endif -#include "ptytty.h" +using namespace std; extern "C" { -#include /* Xlib, Xutil, Xresource, Xfuncproto */ +#include +#include +#include } -/* - * If we haven't pulled in typedef's like int16_t then do them ourself - * type of (normal and unsigned) basic sizes - */ -@rxvt_int16_typedef@ -@rxvt_uint16_typedef@ -@rxvt_int32_typedef@ -@rxvt_uint32_typedef@ - -/* whatever normal size corresponds to a integer pointer */ -@rxvt_intp_define@ -/* whatever normal size corresponds to a unsigned integer pointer */ -@rxvt_u_intp_define@ - struct rxvt_fontset; struct rxvt_color; struct rxvt_vars; /* defined later on */ struct rxvt_term; -struct rxvt_display; struct rxvt_im; struct rxvt_drawable; @@ -102,7 +81,7 @@ * |························= row_buf[2] etc. * | * +------------+···········= term_start + top_row - * | scrollback | + * | scrollback | * | scrollback +---------+·= term_start + view_start * | scrollback | display | * | scrollback | display | @@ -187,7 +166,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 */ @@ -205,11 +184,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 }; /* ------------------------------------------------------------------------- */ @@ -234,18 +214,15 @@ 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 rxvt_color *pix_colors_unfocused; #endif - short numpix_colors; Cursor TermWin_cursor; /* cursor for vt window */ int sb_shadow; /* scrollbar shadow width */ - rxvt_ptytty pty; int numlock_state; line_t *row_buf; // all lines, scrollback + terminal, circular, followed by temp_buf line_t *drawn_buf; // text on screen @@ -257,7 +234,6 @@ }; void rxvt_init (); -bool rxvt_tainted (); #endif /* _RXVTLIB_H_ */