root/trunk/src/bitset.h

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
8typedef struct {
9        size_t *bits;
10        size_t nbits;
11} bitset;
12
13LI_API bitset* bitset_init(size_t nbits);
14LI_API void bitset_reset(bitset *set);
15LI_API void bitset_free(bitset *set);
16
17LI_API void bitset_clear_bit(bitset *set, size_t pos);
18LI_API void bitset_set_bit(bitset *set, size_t pos);
19LI_API int bitset_test_bit(bitset *set, size_t pos);
20
21#endif
Note: See TracBrowser for help on using the browser.