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.420 by root, Tue Dec 7 19:05:35 2010 UTC vs.
Revision 1.422 by root, Thu Dec 16 23:03:50 2010 UTC

189#else 189#else
190 if (envv) 190 if (envv)
191#endif 191#endif
192 environ = envv; 192 environ = envv;
193} 193}
194
195struct localise_env
196{
197 char **orig_env;
198
199 localise_env (char **new_env)
200 {
201 orig_env = environ;
202 environ = new_env;
203 }
204
205 ~localise_env ()
206 {
207 environ = orig_env;
208 }
209};
194 210
195/* 211/*
196 ***************************************************************************** 212 *****************************************************************************
197 * STRUCTURES AND TYPEDEFS 213 * STRUCTURES AND TYPEDEFS
198 ***************************************************************************** 214 *****************************************************************************
1383 bool option (uint8_t opt) const NOTHROW 1399 bool option (uint8_t opt) const NOTHROW
1384 { 1400 {
1385 return options[opt >> 3] & (1 << (opt & 7)); 1401 return options[opt >> 3] & (1 << (opt & 7));
1386 } 1402 }
1387 1403
1388 void set_option (uint8_t opt, bool set = true) NOTHROW 1404 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 1405
1399 void set_privmode (unsigned bit, int set) NOTHROW 1406 void set_privmode (unsigned bit, int set) NOTHROW
1400 { 1407 {
1401 if (set) 1408 if (set)
1402 priv_modes |= bit; 1409 priv_modes |= bit;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines