ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.417 by root, Tue Nov 23 22:58:09 2010 UTC vs.
Revision 1.421 by root, Tue Dec 7 19:10:00 2010 UTC

951#define Screen_WrapNext (1<<4) /* need to wrap for next char? */ 951#define Screen_WrapNext (1<<4) /* need to wrap for next char? */
952#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap) 952#define Screen_DefaultFlags (Screen_VisibleCursor | Screen_Autowrap)
953 953
954/* rxvt_vars.options */ 954/* rxvt_vars.options */
955enum { 955enum {
956# define def(name,idx) Opt_ ## name = idx,
957# define nodef(name) Opt_ ## name = 0, 956# define def(name) Opt_ ## name,
957# define nodef(name) Opt_prev_ ## name, Opt_ ## name = 0, Opt_next_ ## name = Opt_prev_ ## name - 1,
958 Opt_0,
958# include "optinc.h" 959# include "optinc.h"
959# undef nodef 960# undef nodef
960# undef def 961# undef def
961Opt_count 962 Opt_count
962}; 963};
963 964
964/* ------------------------------------------------------------------------- */ 965/* ------------------------------------------------------------------------- */
965 966
966struct rxvt_vars : TermWin_t 967struct rxvt_vars : TermWin_t
1379 return base; 1380 return base;
1380 } 1381 }
1381 1382
1382 bool option (uint8_t opt) const NOTHROW 1383 bool option (uint8_t opt) const NOTHROW
1383 { 1384 {
1384 if (!opt)
1385 return 0;
1386
1387 --opt;
1388 return options[opt >> 3] & (1 << (opt & 7)); 1385 return options[opt >> 3] & (1 << (opt & 7));
1389 } 1386 }
1390 1387
1391 void set_option (uint8_t opt, bool set = true) NOTHROW 1388 void set_option (uint8_t opt, bool set = true) NOTHROW;
1392 {
1393 if (!opt)
1394 return;
1395
1396 --opt;
1397 if (set)
1398 options[opt >> 3] |= (1 << (opt & 7));
1399 else
1400 options[opt >> 3] &= ~(1 << (opt & 7));
1401 }
1402 1389
1403 void set_privmode (unsigned bit, int set) NOTHROW 1390 void set_privmode (unsigned bit, int set) NOTHROW
1404 { 1391 {
1405 if (set) 1392 if (set)
1406 priv_modes |= bit; 1393 priv_modes |= bit;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines