summaryrefslogtreecommitdiffstats
path: root/Parser/bitset.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 19:20:54 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 19:20:54 (GMT)
commit23c9e0024af99379ae517b016b874d57127e9a97 (patch)
tree8b9550548b9af667e20b8aaaae03ac54d38d6f70 /Parser/bitset.c
parentf70ef4f8606f99744252a804229d53a4d97601c1 (diff)
downloadcpython-23c9e0024af99379ae517b016b874d57127e9a97.zip
cpython-23c9e0024af99379ae517b016b874d57127e9a97.tar.gz
cpython-23c9e0024af99379ae517b016b874d57127e9a97.tar.bz2
Mass ANSIfication.
Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to 'Py_AddPendingCall' by providing a (static) wrapper function that has the right number of arguments.
Diffstat (limited to 'Parser/bitset.c')
-rw-r--r--Parser/bitset.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/Parser/bitset.c b/Parser/bitset.c
index fba9331..a69cc36 100644
--- a/Parser/bitset.c
+++ b/Parser/bitset.c
@@ -14,8 +14,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#include "bitset.h"
bitset
-newbitset(nbits)
- int nbits;
+newbitset(int nbits)
{
int nbytes = NBYTES(nbits);
bitset ss = PyMem_NEW(BYTE, nbytes);
@@ -30,16 +29,13 @@ newbitset(nbits)
}
void
-delbitset(ss)
- bitset ss;
+delbitset(bitset ss)
{
PyMem_DEL(ss);
}
int
-addbit(ss, ibit)
- bitset ss;
- int ibit;
+addbit(bitset ss, int ibit)
{
int ibyte = BIT2BYTE(ibit);
BYTE mask = BIT2MASK(ibit);
@@ -52,18 +48,14 @@ addbit(ss, ibit)
#if 0 /* Now a macro */
int
-testbit(ss, ibit)
- bitset ss;
- int ibit;
+testbit(bitset ss, int ibit)
{
return (ss[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0;
}
#endif
int
-samebitset(ss1, ss2, nbits)
- bitset ss1, ss2;
- int nbits;
+samebitset(bitset ss1, bitset ss2, int nbits)
{
int i;
@@ -74,9 +66,7 @@ samebitset(ss1, ss2, nbits)
}
void
-mergebitset(ss1, ss2, nbits)
- bitset ss1, ss2;
- int nbits;
+mergebitset(bitset ss1, bitset ss2, int nbits)
{
int i;