mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(bitset_iterator.num, bitset_iterator.i, bitset_first, bitset_last):
Use bitset_bindex, not int or unsigned int or size_t, to count bits. (bitset_bytes): Use size_t, not unsigned int, to count bytes.
This commit is contained in:
10
lib/bitset.h
10
lib/bitset.h
@@ -51,13 +51,13 @@ typedef struct
|
|||||||
{
|
{
|
||||||
bitset_bindex list[BITSET_LIST_SIZE];
|
bitset_bindex list[BITSET_LIST_SIZE];
|
||||||
bitset_bindex next;
|
bitset_bindex next;
|
||||||
int num;
|
bitset_bindex num;
|
||||||
int i;
|
bitset_bindex i;
|
||||||
} bitset_iterator;
|
} bitset_iterator;
|
||||||
|
|
||||||
|
|
||||||
/* Return bytes required for bitset of desired type and size. */
|
/* Return bytes required for bitset of desired type and size. */
|
||||||
extern int bitset_bytes PARAMS ((enum bitset_type, bitset_bindex));
|
extern size_t bitset_bytes PARAMS ((enum bitset_type, bitset_bindex));
|
||||||
|
|
||||||
/* Initialise a bitset with desired type and size. */
|
/* Initialise a bitset with desired type and size. */
|
||||||
extern bitset bitset_init PARAMS ((bitset, bitset_bindex, enum bitset_type));
|
extern bitset bitset_init PARAMS ((bitset, bitset_bindex, enum bitset_type));
|
||||||
@@ -287,10 +287,10 @@ do \
|
|||||||
|
|
||||||
|
|
||||||
/* Find first set bit. */
|
/* Find first set bit. */
|
||||||
extern int bitset_first PARAMS ((bitset));
|
extern bitset_bindex bitset_first PARAMS ((bitset));
|
||||||
|
|
||||||
/* Find last set bit. */
|
/* Find last set bit. */
|
||||||
extern int bitset_last PARAMS ((bitset));
|
extern bitset_bindex bitset_last PARAMS ((bitset));
|
||||||
|
|
||||||
/* Dump bitset. */
|
/* Dump bitset. */
|
||||||
extern void bitset_dump PARAMS ((FILE *, bitset));
|
extern void bitset_dump PARAMS ((FILE *, bitset));
|
||||||
|
|||||||
Reference in New Issue
Block a user