summaryrefslogtreecommitdiff
path: root/Include/bitset.h
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-04-13 17:05:14 +0100
committerGitHub <noreply@github.com>2019-04-13 17:05:14 +0100
commitf2cf1e3e2892a6326949c2570f1bb6d6c95715fb (patch)
treebc8ec61893d284fe2e805191b2ba3c4a59a43879 /Include/bitset.h
parentf8716c88f13f035c126fc1db499ae0ea309c7ece (diff)
downloadcpython-git-f2cf1e3e2892a6326949c2570f1bb6d6c95715fb.tar.gz
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.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/Include/bitset.h b/Include/bitset.h
index b22fa77815..6a2ac9787e 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
}