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.322 by ayin, Thu Nov 22 15:07:10 2007 UTC vs.
Revision 1.325 by root, Mon Nov 26 12:19:38 2007 UTC

18# define ENABLE_XEMBED 1 18# define ENABLE_XEMBED 1
19# define ENABLE_EWMH 1 19# define ENABLE_EWMH 1
20# define ENABLE_XIM_ONTHESPOT 1 20# define ENABLE_XIM_ONTHESPOT 1
21# define CURSOR_BLINK 1 21# define CURSOR_BLINK 1
22# define OPTION_HC 1 22# define OPTION_HC 1
23# define BUILTIN_GLYPHS 1
23#else 24#else
24# define ENABLE_MINIMAL 1 25# define ENABLE_MINIMAL 1
25#endif 26#endif
26 27
27#include <limits.h> 28#include <limits.h>
1270 return base; 1271 return base;
1271 } 1272 }
1272 1273
1273 bool option (uint8_t opt) const NOTHROW 1274 bool option (uint8_t opt) const NOTHROW
1274 { 1275 {
1276 if (!opt)
1277 return 0;
1278
1279 --opt;
1275 return options[opt >> 3] & (1 << (opt & 7)); 1280 return options[opt >> 3] & (1 << (opt & 7));
1276 } 1281 }
1277 1282
1278 void set_option (uint8_t opt, bool set = true) NOTHROW 1283 void set_option (uint8_t opt, bool set = true) NOTHROW
1279 { 1284 {
1285 if (!opt)
1286 return;
1287
1288 --opt;
1280 if (set) 1289 if (set)
1281 options[opt >> 3] |= (1 << (opt & 7)); 1290 options[opt >> 3] |= (1 << (opt & 7));
1282 else 1291 else
1283 options[opt >> 3] &= ~(1 << (opt & 7)); 1292 options[opt >> 3] &= ~(1 << (opt & 7));
1284 } 1293 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines