From: ayin Date: Sun, 26 Aug 2007 16:55:58 +0000 (+0000) Subject: Make the PrivMode macro a method. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=04214b7d5ac8623b152c8e769cef8561c0b8db82;p=dana%2Furxvt.git Make the PrivMode macro a method. --- diff --git a/src/rxvt.h b/src/rxvt.h index 4a2a4d0f..3e4632bb 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -698,11 +698,6 @@ enum { /* #define PrivMode_MouseX11Track (1LU<<20) */ #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) -#define PrivMode(test,bit) \ - if (test) \ - priv_modes |= (bit); \ - else \ - priv_modes &= ~(bit) #ifdef ALLOW_132_MODE # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) @@ -1399,6 +1394,14 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen { options[opt >> 3] &= ~(1 << (opt & 7)); } + void PrivMode (int set, unsigned bit) NOTHROW + { + if (set) + priv_modes |= bit; + else + priv_modes &= ~bit; + } + void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; int scr_scroll_text (int row1, int row2, int count) NOTHROW;