|
Revision 1675, 430 bytes
(checked in by jan, 19 months ago)
|
|
another attempt to get the IMPORT/EXPORT stuff right (patch from jtiai)
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #ifndef _BITSET_H_ |
|---|
| 2 | #define _BITSET_H_ |
|---|
| 3 | |
|---|
| 4 | #include <stddef.h> |
|---|
| 5 | |
|---|
| 6 | #include "settings.h" |
|---|
| 7 | |
|---|
| 8 | typedef struct { |
|---|
| 9 | size_t *bits; |
|---|
| 10 | size_t nbits; |
|---|
| 11 | } bitset; |
|---|
| 12 | |
|---|
| 13 | LI_API bitset* bitset_init(size_t nbits); |
|---|
| 14 | LI_API void bitset_reset(bitset *set); |
|---|
| 15 | LI_API void bitset_free(bitset *set); |
|---|
| 16 | |
|---|
| 17 | LI_API void bitset_clear_bit(bitset *set, size_t pos); |
|---|
| 18 | LI_API void bitset_set_bit(bitset *set, size_t pos); |
|---|
| 19 | LI_API int bitset_test_bit(bitset *set, size_t pos); |
|---|
| 20 | |
|---|
| 21 | #endif |
|---|