|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1980 Regents of the University of California. ! 3: * All rights reserved. The Berkeley software License Agreement ! 4: * specifies the terms and conditions for redistribution. ! 5: * ! 6: * @(#)bit.h 5.1 (Berkeley) 4/26/85 ! 7: */ ! 8: ! 9: /* ! 10: * Bit matrix manipulations for font editor. ! 11: * ! 12: * General structure of a bit matrix: each row is packed into as few ! 13: * bytes as possible, taking the bits from left to right within bytes. ! 14: * The matrix is a sequence of such rows, i.e. up to 7 bits are wasted ! 15: * at the end of each row. ! 16: */ ! 17: ! 18: #include <stdio.h> ! 19: typedef char * bitmat; ! 20: #ifdef TRACE ! 21: FILE *trace; ! 22: #endif ! 23: ! 24: #define max(x,y) ((x) > (y) ? (x) : (y)) ! 25: #define min(x,y) ((x) < (y) ? (x) : (y))
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.