2 * This file is part of cparser.
3 * Copyright (C) 2007-2009 Matthias Braun <matze@braunis.de>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 #include "hash_string.h"
26 #define HashSet strset_t
27 #define HashSetIterator strset_iterator_t
28 #define HashSetEntry strset_entry_t
29 #define ValueType const char*
30 #define ConstKeyType const char*
31 #define NullValue NULL
32 #define DeletedValue ((void*)-1)
33 #define Hash(this, value) hash_string(value)
34 #define KeysEqual(this,key1,key2) (streq(key1, key2))
35 #define SetRangeEmpty(ptr,size) memset(ptr, 0, (size) * sizeof(strset_entry_t))
38 #define hashset_init strset_init
39 #define hashset_init_size strset_init_size
40 #define hashset_destroy strset_destroy
41 #define hashset_insert strset_insert
42 #define hashset_remove strset_remove
43 #define hashset_find strset_find
44 #define hashset_size strset_size
45 #define hashset_iterator_init strset_iterator_init
46 #define hashset_iterator_next strset_iterator_next
47 #define hashset_remove_iterator strset_remove_iterator