Return to defs.h CVS log | Up to [local] / src / usr.bin / rdist |
version 1.35, 2015/01/20 09:00:16 | version 1.36, 2015/01/21 03:05:03 | ||
---|---|---|---|
|
|
||
#endif | #endif | ||
/* Bit flag test macros */ | /* Bit flag test macros */ | ||
#define IS_ON(b,f) (b > 0 && (b & f)) | #define IS_ON(b,f) (b & f) | ||
#define IS_OFF(b,f) !(IS_ON(b,f)) | #define IS_OFF(b,f) !(IS_ON(b,f)) | ||
#define FLAG_ON(b,f) b |= f | #define FLAG_ON(b,f) b |= f | ||
#define FLAG_OFF(b,f) b &= ~(f) | #define FLAG_OFF(b,f) b &= ~(f) |