Commit | Line | Data |
---|---|---|
177e2579 RC |
1 | /* bit.h 4.1 83/03/09 */ |
2 | /* | |
3 | * Bit matrix manipulations for font editor. | |
4 | * | |
5 | * General structure of a bit matrix: each row is packed into as few | |
6 | * bytes as possible, taking the bits from left to right within bytes. | |
7 | * The matrix is a sequence of such rows, i.e. up to 7 bits are wasted | |
8 | * at the end of each row. | |
9 | */ | |
10 | ||
11 | #include <stdio.h> | |
12 | typedef char * bitmat; | |
13 | #ifdef TRACE | |
14 | FILE *trace; | |
15 | #endif | |
16 | ||
17 | #define max(x,y) ((x) > (y) ? (x) : (y)) | |
18 | #define min(x,y) ((x) < (y) ? (x) : (y)) |