File: intset.h

package info (click to toggle)
wcd 3.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 804 kB
  • ctags: 640
  • sloc: ansic: 8,260; makefile: 43; sh: 6; csh: 1
file content (49 lines) | stat: -rw-r--r-- 1,984 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef INTSET_INCLUDED
#define INTSET_INCLUDED
   /*
Copyright (C) 1997-2000 Ondrej Popp
This code is generated with Ondrej Popp's C3PO.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
   extern intset intsetNew(void);
   extern intset copyIntset(intset src);
   extern int* intsetGetArray(intset i);
   extern c3po_bool intsetHasArray(intset i);
   extern int getSizeOfIntset(intset i);
   extern void setSizeOfIntset(intset i,
                               int size);
   extern c3po_bool isEmptyIntset(intset i);
   extern void addToIntset(int i,
                           intset set);
   extern void putElementAtIntset(int i,
                                  int position,
                                  intset set);
   extern void insertElementAtIntset(int i,
                                     int position,
                                     intset set);
   extern void removeElementAtIntset(int position,
                                     intset set);
   extern int elementAtIntset(int position,
                              intset set);
   extern void extendIntset(intset src,
                            intset dest);
   extern void printIntset(text Offset,
                           intset i,
                           FILE* fp,
                           c3po_bool showEmpty);
   extern void freeIntset(intset i);
#endif