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

Comparing cvsroot/rxvt-unicode/src/rxvt.h (file contents):
Revision 1.420 by root, Tue Dec 7 19:05:35 2010 UTC vs.
Revision 1.421 by root, Tue Dec 7 19:10:00 2010 UTC

1383 bool option (uint8_t opt) const NOTHROW 1383 bool option (uint8_t opt) const NOTHROW
1384 { 1384 {
1385 return options[opt >> 3] & (1 << (opt & 7)); 1385 return options[opt >> 3] & (1 << (opt & 7));
1386 } 1386 }
1387 1387
1388 void set_option (uint8_t opt, bool set = true) NOTHROW 1388 void set_option (uint8_t opt, bool set = true) NOTHROW;
1389 {
1390 if (!opt)
1391 return;
1392
1393 uint8_t mask = 1 << (opt & 7);
1394 uint8_t &val = options [opt >> 3];
1395
1396 val = val & ~mask | (set ? 0 : mask);
1397 }
1398 1389
1399 void set_privmode (unsigned bit, int set) NOTHROW 1390 void set_privmode (unsigned bit, int set) NOTHROW
1400 { 1391 {
1401 if (set) 1392 if (set)
1402 priv_modes |= bit; 1393 priv_modes |= bit;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines