Dfa-module header files.
[idzebra-moved-to-github.git] / include / set.h
1 /*
2  * Copyright (C) 1994, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: set.h,v $
7  * Revision 1.1  1994-09-26 10:17:44  adam
8  * Dfa-module header files.
9  *
10  */
11 #ifndef SET_H
12 #define SET_H
13
14 typedef struct SetElement_  {
15     struct SetElement_ *next;
16     int value;
17 } SetElement, *Set;
18
19 typedef struct {
20     Set  alloclist;
21     Set  freelist;
22     long used;
23     int  chunk;
24 } *SetType;
25
26 SetType  mk_SetType   (int chunk);
27 int      inf_SetType  (SetType st, long *used, long *allocated);
28 SetType  rm_SetType   (SetType st);
29 Set      mk_Set       (SetType st);
30 Set      add_Set      (SetType st, Set s, int value);
31 Set      merge_Set    (SetType st, Set s1, Set s2);
32 Set      union_Set    (SetType st, Set s1, Set s2);
33 Set      rm_Set       (SetType st, Set s);
34 Set      cp_Set       (SetType st, Set s);
35 void     pr_Set       (SetType st, Set s);
36 unsigned hash_Set     (SetType st, Set s);
37 int      eq_Set       (SetType s, Set s1, Set s2);
38
39 #endif
40