diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-04-13 16:05:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-13 16:05:14 (GMT) |
commit | f2cf1e3e2892a6326949c2570f1bb6d6c95715fb (patch) | |
tree | bc8ec61893d284fe2e805191b2ba3c4a59a43879 /Include/bitset.h | |
parent | f8716c88f13f035c126fc1db499ae0ea309c7ece (diff) | |
download | cpython-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.zip cpython-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.tar.gz cpython-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.tar.bz2 |
bpo-36623: Clean parser headers and include files (GH-12253)
After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.
Diffstat (limited to 'Include/bitset.h')
-rw-r--r-- | Include/bitset.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Include/bitset.h b/Include/bitset.h index b22fa77..6a2ac97 100644 --- a/Include/bitset.h +++ b/Include/bitset.h @@ -8,23 +8,14 @@ extern "C" { /* Bitset interface */ #define BYTE char - typedef BYTE *bitset; -bitset newbitset(int nbits); -void delbitset(bitset bs); #define testbit(ss, ibit) (((ss)[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0) -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) - #define BIT2BYTE(ibit) ((ibit) / BITSPERBYTE) #define BIT2SHIFT(ibit) ((ibit) % BITSPERBYTE) #define BIT2MASK(ibit) (1 << BIT2SHIFT(ibit)) -#define BYTE2BIT(ibyte) ((ibyte) * BITSPERBYTE) #ifdef __cplusplus } |