summaryrefslogtreecommitdiffstats
path: root/Include/bitset.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-08 23:37:28 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-08 23:37:28 (GMT)
commit5eb6d4e3bf094c33ae66432eeae3668e220dd28d (patch)
tree2a69e01bee2bbf196f8432b639cc8985431ec7e4 /Include/bitset.h
parentff7df9d7b8b6ad7e73fe54cdf02b9ab6386ff355 (diff)
downloadcpython-5eb6d4e3bf094c33ae66432eeae3668e220dd28d.zip
cpython-5eb6d4e3bf094c33ae66432eeae3668e220dd28d.tar.gz
cpython-5eb6d4e3bf094c33ae66432eeae3668e220dd28d.tar.bz2
ANSI-fication and Py_PROTO extermination.
Diffstat (limited to 'Include/bitset.h')
-rw-r--r--Include/bitset.h22
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)