mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
bitset: clean up bitset.h
* lib/bitset.h: Fix include order.
This commit is contained in:
11
lib/bitset.h
11
lib/bitset.h
@@ -24,14 +24,14 @@
|
|||||||
/* This file is the public interface to the bitset abstract data type.
|
/* This file is the public interface to the bitset abstract data type.
|
||||||
Only use the functions and macros defined in this file. */
|
Only use the functions and macros defined in this file. */
|
||||||
|
|
||||||
#include "bbitset.h"
|
|
||||||
#include "obstack.h"
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if USE_UNLOCKED_IO
|
#if USE_UNLOCKED_IO
|
||||||
# include "unlocked-io.h"
|
# include "unlocked-io.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "bbitset.h"
|
||||||
|
#include "obstack.h"
|
||||||
|
|
||||||
/* Attributes used to select a bitset implementation. */
|
/* Attributes used to select a bitset implementation. */
|
||||||
enum bitset_attr {BITSET_FIXED = 1, /* Bitset size fixed. */
|
enum bitset_attr {BITSET_FIXED = 1, /* Bitset size fixed. */
|
||||||
BITSET_VARIABLE = 2, /* Bitset size variable. */
|
BITSET_VARIABLE = 2, /* Bitset size variable. */
|
||||||
@@ -83,7 +83,6 @@ union bitset_union
|
|||||||
struct bbitset_struct b;
|
struct bbitset_struct b;
|
||||||
bitset_windex size; /* Allocated size of array. */
|
bitset_windex size; /* Allocated size of array. */
|
||||||
} v;
|
} v;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -309,9 +308,7 @@ void bitset_dump (FILE *, bitset);
|
|||||||
bitset_iterator iter;
|
bitset_iterator iter;
|
||||||
|
|
||||||
BITSET_FOR_EACH (iter, src, i, 0)
|
BITSET_FOR_EACH (iter, src, i, 0)
|
||||||
{
|
|
||||||
printf ("%lu ", (unsigned long) i);
|
printf ("%lu ", (unsigned long) i);
|
||||||
};
|
|
||||||
*/
|
*/
|
||||||
#define BITSET_FOR_EACH(ITER, BSET, INDEX, MIN) \
|
#define BITSET_FOR_EACH(ITER, BSET, INDEX, MIN) \
|
||||||
for (ITER.next = (MIN), ITER.num = BITSET_LIST_SIZE; \
|
for (ITER.next = (MIN), ITER.num = BITSET_LIST_SIZE; \
|
||||||
@@ -331,9 +328,7 @@ void bitset_dump (FILE *, bitset);
|
|||||||
bitset_iterator iter;
|
bitset_iterator iter;
|
||||||
|
|
||||||
BITSET_FOR_EACH_REVERSE (iter, src, i, 0)
|
BITSET_FOR_EACH_REVERSE (iter, src, i, 0)
|
||||||
{
|
|
||||||
printf ("%lu ", (unsigned long) i);
|
printf ("%lu ", (unsigned long) i);
|
||||||
};
|
|
||||||
*/
|
*/
|
||||||
#define BITSET_FOR_EACH_REVERSE(ITER, BSET, INDEX, MIN) \
|
#define BITSET_FOR_EACH_REVERSE(ITER, BSET, INDEX, MIN) \
|
||||||
for (ITER.next = (MIN), ITER.num = BITSET_LIST_SIZE; \
|
for (ITER.next = (MIN), ITER.num = BITSET_LIST_SIZE; \
|
||||||
|
|||||||
Reference in New Issue
Block a user