Upgrade to 2003-06-08 libbitset; then:

(bitset_compatible_p): Indent as per GNU standard.
Don't use 'index' in comments, as it's a builtin fn on some hosts.
This commit is contained in:
Paul Eggert
2003-06-17 07:21:59 +00:00
parent 3f764fe576
commit fa8db4baa7

View File

@@ -286,8 +286,7 @@ extern void bitset_resize PARAMS ((bitset, bitset_bindex));
BITSET_LIST_REVERSE_ (BSET, LIST, NUM, NEXT) BITSET_LIST_REVERSE_ (BSET, LIST, NUM, NEXT)
/* Return true if both bitsets are of the same type and size. */ /* Return true if both bitsets are of the same type and size. */
extern bool extern bool bitset_compatible_p (bitset bset1, bitset bset2);
bitset_compatible_p (bitset bset1, bitset bset2);
/* Find next set bit from the given bit index. */ /* Find next set bit from the given bit index. */
extern bitset_bindex bitset_next PARAMS ((bitset, bitset_bindex)); extern bitset_bindex bitset_next PARAMS ((bitset, bitset_bindex));
@@ -311,12 +310,12 @@ extern void bitset_dump PARAMS ((FILE *, bitset));
to the index of each set bit. For example, the following will print to the index of each set bit. For example, the following will print
the bits set in a bitset: the bits set in a bitset:
bitset_bindex index; bitset_bindex i;
bitset_iterator iter; bitset_iterator iter;
BITSET_FOR_EACH (iter, src, index, 0) BITSET_FOR_EACH (iter, src, i, 0)
{ {
printf ("%ld ", index); printf ("%lu ", (unsigned long int) i);
}; };
*/ */
#define BITSET_FOR_EACH(ITER, BSET, INDEX, MIN) \ #define BITSET_FOR_EACH(ITER, BSET, INDEX, MIN) \
@@ -330,15 +329,15 @@ extern void bitset_dump PARAMS ((FILE *, bitset));
/* Loop over all elements of BSET, in reverse order starting with /* Loop over all elements of BSET, in reverse order starting with
MIN, setting INDEX to the index of each set bit. For example, the MIN, setting INDEX to the index of each set bit. For example, the
following will print the bits set in a bitset in reverse order: following will print the bits set in a bitset in reverse order:
bitset_bindex index; bitset_bindex i;
bitset_iterator iter; bitset_iterator iter;
BITSET_FOR_EACH_REVERSE (iter, src, index, 0) BITSET_FOR_EACH_REVERSE (iter, src, i, 0)
{ {
printf ("%ld ", index); printf ("%lu ", (unsigned long int) i);
}; };
*/ */
#define BITSET_FOR_EACH_REVERSE(ITER, BSET, INDEX, MIN) \ #define BITSET_FOR_EACH_REVERSE(ITER, BSET, INDEX, MIN) \