2 This file is part of the software library CADLIB written by Conrad Ziesler
3 Copyright 2003, Conrad Ziesler, all rights reserved.
5 *************************
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 /* bitlist.h, declarations for bitlist functions
29 /*** bitlist: 1-d array of bits ******/
30 typedef struct bitlist_st
34 unsigned char data
[4];
37 #define SCAN_FORWARD 1
38 #define SCAN_REVERSE 0
42 bitlist_t
* bitlist_new(int qty
);
43 void bitlist_free(bitlist_t
*b
);
44 int bitlist_set(bitlist_t
*bl
, int index
);
45 int bitlist_test(bitlist_t
*bl
, int index
);
46 int bitlist_clear(bitlist_t
*bl
, int index
);
47 bitlist_t
*bitlist_resize(bitlist_t
*bl
,int qty
);
48 int bitlist_scan(bitlist_t
*bl
, int flags
);
49 int bitlist_copyhead(bitlist_t
*dest
, bitlist_t
*src
, int length
);
50 void bitlist_clearall(bitlist_t
*bl
);
51 void bitlist_setall(bitlist_t
*bl
);