[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/8] bitset: clean up lib/bitset.h
From: |
Akim Demaille |
Subject: |
[PATCH 7/8] bitset: clean up lib/bitset.h |
Date: |
Sat, 27 Oct 2018 19:20:04 +0200 |
* lib/bitset.h: Fix include order.
---
lib/bitset.h | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/lib/bitset.h b/lib/bitset.h
index f48f56f4..f7b2cd0b 100644
--- a/lib/bitset.h
+++ b/lib/bitset.h
@@ -24,14 +24,14 @@
/* This file is the public interface to the bitset abstract data type.
Only use the functions and macros defined in this file. */
-#include "bbitset.h"
-#include "obstack.h"
#include <stdio.h>
-
#if USE_UNLOCKED_IO
# include "unlocked-io.h"
#endif
+#include "bbitset.h"
+#include "obstack.h"
+
/* Attributes used to select a bitset implementation. */
enum bitset_attr {BITSET_FIXED = 1, /* Bitset size fixed. */
BITSET_VARIABLE = 2, /* Bitset size variable. */
@@ -83,7 +83,6 @@ union bitset_union
struct bbitset_struct b;
bitset_windex size; /* Allocated size of array. */
} v;
-
};
@@ -309,9 +308,7 @@ void bitset_dump (FILE *, bitset);
bitset_iterator iter;
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) \
for (ITER.next = (MIN), ITER.num = BITSET_LIST_SIZE; \
@@ -331,9 +328,7 @@ void bitset_dump (FILE *, bitset);
bitset_iterator iter;
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) \
for (ITER.next = (MIN), ITER.num = BITSET_LIST_SIZE; \
--
2.19.1
- [PATCH 0/8] bitset: more clean up, Akim Demaille, 2018/10/27
- [PATCH 8/8] bitset: clean up bbitset.h, Akim Demaille, 2018/10/27
- [PATCH 7/8] bitset: clean up lib/bitset.h,
Akim Demaille <=
- [PATCH 4/8] bitset: clean up ebitset.c, Akim Demaille, 2018/10/27
- [PATCH 1/8] bitset: clean up abitset.c, Akim Demaille, 2018/10/27
- [PATCH 3/8] bitset: clean up bitset_stats.c, Akim Demaille, 2018/10/27
- [PATCH 2/8] bitset: clean up bitset.c, Akim Demaille, 2018/10/27
- [PATCH 5/8] bitset: clean up lbitset.c, Akim Demaille, 2018/10/27
- [PATCH 6/8] bitset: clean up vbitset.c, Akim Demaille, 2018/10/27