3 * $Id: set.h,v 1.2 1997/08/04 10:24:25 mdw Exp $
5 * Management of sets (for the use of the class expression handler)
10 /*----- Licensing notice --------------------------------------------------*
12 * This file is part of `become'
14 * `Become' is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * `Become' is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with `become'; if not, write to the Free Software Foundation,
26 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 /*----- Revision history --------------------------------------------------*
32 * Revision 1.2 1997/08/04 10:24:25 mdw
33 * Sources placed under CVS control.
35 * Revision 1.1 1997/07/21 13:47:44 mdw
47 /*----- Required headers --------------------------------------------------*/
53 /*----- Functions provided ------------------------------------------------*/
55 /* --- @set_subtract@ --- *
57 * Arguments: @sym_table *a@ = pointer to table @A@
58 * @sym_table *b@ = pointer to table @B@
60 * Returns: A symbol table containing all the elements in @A@ which don't
63 * Use: Subtracts a symbol table from another symbol table. Assumes
64 * that there's no data following the actual @sym_base@ block
65 * for each item in the table.
68 extern sym_table *set_subtract(sym_table */*a*/, sym_table */*b*/);
70 /* --- @set_intersect@ --- *
72 * Arguments: @sym_table *a@ = pointer to table @A@
73 * @sym_table *b@ = pointer to table @B@
75 * Returns: A symbol table containing all the elements in @A@ which also
78 * Use: Constructs the intersection of two symbol tables. Assumes
79 * that there's no data following the actual @sym_base@ block
80 * for each item in the table.
83 sym_table *set_intersect(sym_table */*a*/, sym_table */*b*/);
85 /* --- @set_union@ --- *
87 * Arguments: @sym_table *a@ = pointer to table @A@
88 * @sym_table *b@ = pointer to table @B@
90 * Returns: A symbol table containing all the elements in @A@ and those
93 * Use: Constructs the union of two symbol tables. Assumes that
94 * there's no data following the actual @sym_base@ block for
95 * each item in the table.
98 sym_table *set_union(sym_table */*a*/, sym_table */*b*/);
100 /* --- @set_copy@ --- *
102 * Arguments: @sym_table *a@ = pointer to table
104 * Returns: A copy of the symbol table.
106 * Use: Copies a symbol table. Same assumptions again...
109 sym_table *set_copy(sym_table */*a*/);
111 /*----- That's all, folks -------------------------------------------------*/