sendmail.h (66494) | sendmail.h (71345) |
---|---|
1/* 2 * Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 * | 1/* 2 * Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 * |
13 * $Id: sendmail.h,v 8.34.4.5 2000/09/14 23:32:26 gshapiro Exp $ | 13 * $Id: sendmail.h,v 8.34.4.7 2000/10/09 16:15:26 gshapiro Exp $ |
14 */ 15 16/* 17** SENDMAIL.H -- Global definitions for sendmail. 18*/ 19 20#if SFIO 21# include <sfio/stdio.h> --- 26 unchanged lines hidden (view full) --- 48#define BITMAPBYTES (BITMAPBITS / BYTEBITS) /* number of bytes in bit map */ 49 50/* internal macros */ 51#define _BITWORD(bit) ((bit) / (BYTEBITS * sizeof (int))) 52#define _BITBIT(bit) ((unsigned int)1 << ((bit) % (BYTEBITS * sizeof (int)))) 53 54typedef unsigned int BITMAP256[BITMAPBYTES / sizeof (int)]; 55 | 14 */ 15 16/* 17** SENDMAIL.H -- Global definitions for sendmail. 18*/ 19 20#if SFIO 21# include <sfio/stdio.h> --- 26 unchanged lines hidden (view full) --- 48#define BITMAPBYTES (BITMAPBITS / BYTEBITS) /* number of bytes in bit map */ 49 50/* internal macros */ 51#define _BITWORD(bit) ((bit) / (BYTEBITS * sizeof (int))) 52#define _BITBIT(bit) ((unsigned int)1 << ((bit) % (BYTEBITS * sizeof (int)))) 53 54typedef unsigned int BITMAP256[BITMAPBYTES / sizeof (int)]; 55 |
56/* properly case and truncate bit */ 57#define bitidx(bit) ((unsigned int) (bit) & 0xff) 58 |
|
56/* test bit number N */ 57#define bitnset(bit, map) ((map)[_BITWORD(bit)] & _BITBIT(bit)) 58 59/* set bit number N */ 60#define setbitn(bit, map) (map)[_BITWORD(bit)] |= _BITBIT(bit) 61 62/* clear bit number N */ 63#define clrbitn(bit, map) (map)[_BITWORD(bit)] &= ~_BITBIT(bit) --- 120 unchanged lines hidden --- | 59/* test bit number N */ 60#define bitnset(bit, map) ((map)[_BITWORD(bit)] & _BITBIT(bit)) 61 62/* set bit number N */ 63#define setbitn(bit, map) (map)[_BITWORD(bit)] |= _BITBIT(bit) 64 65/* clear bit number N */ 66#define clrbitn(bit, map) (map)[_BITWORD(bit)] &= ~_BITBIT(bit) --- 120 unchanged lines hidden --- |