diff options
Diffstat (limited to 'Include/bitset.h')
-rw-r--r-- | Include/bitset.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Include/bitset.h b/Include/bitset.h index a6905b2..e3ef1a1 100644 --- a/Include/bitset.h +++ b/Include/bitset.h @@ -1,9 +1,3 @@ -#ifndef Py_BITSET_H -#define Py_BITSET_H -#ifdef __cplusplus -extern "C" { -#endif - /*********************************************************** Copyright (c) 2000, BeOpen.com. Copyright (c) 1995-2000, Corporation for National Research Initiatives. @@ -14,18 +8,24 @@ See the file "Misc/COPYRIGHT" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ******************************************************************/ +#ifndef Py_BITSET_H +#define Py_BITSET_H +#ifdef __cplusplus +extern "C" { +#endif + /* Bitset interface */ #define BYTE char typedef BYTE *bitset; -bitset newbitset Py_PROTO((int nbits)); -void delbitset Py_PROTO((bitset bs)); +bitset newbitset(int nbits); +void delbitset(bitset bs); #define testbit(ss, ibit) (((ss)[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0) -int addbit Py_PROTO((bitset bs, int ibit)); /* Returns 0 if already set */ -int samebitset Py_PROTO((bitset bs1, bitset bs2, int nbits)); -void mergebitset Py_PROTO((bitset bs1, bitset bs2, int nbits)); +int addbit(bitset bs, int ibit); /* Returns 0 if already set */ +int samebitset(bitset bs1, bitset bs2, int nbits); +void mergebitset(bitset bs1, bitset bs2, int nbits); #define BITSPERBYTE (8*sizeof(BYTE)) #define NBYTES(nbits) (((nbits) + BITSPERBYTE - 1) / BITSPERBYTE) |