diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-08 22:19:50 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-08 22:19:50 +0100 |
| commit | c1131a0c9c628976d35bf6669e4d7aff7ac78988 (patch) | |
| tree | dc427418916815c93713400fe644f4dd57bfc576 /src/common.h | |
| parent | 2d96d426e063a4c2c33cabf9c6ebf570db1fcf1b (diff) | |
matching stable!
however, now crashes X occasionally... stream overload?
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index c57ae1a..0ddfaaf 100644 --- a/src/common.h +++ b/src/common.h | |||
| @@ -30,6 +30,10 @@ | |||
| 30 | 30 | ||
| 31 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) | 31 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) |
| 32 | 32 | ||
| 33 | #define GETBIT(m, x) ((m>>(x))&1U) | ||
| 34 | #define SETBIT(m, x) (m|=(1U<<(x))) | ||
| 35 | #define CLEARBIT(m, x) (m&=~(1U<<(x))) | ||
| 36 | |||
| 33 | //////////////////////////////////////////////////////// | 37 | //////////////////////////////////////////////////////// |
| 34 | 38 | ||
| 35 | #endif | 39 | #endif |
