Rev 1154 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1154 | Rev 1248 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /* |
29 | /** |
- | 30 | * @file hash_table.c |
|
- | 31 | * @brief Implementation of generic chained hash table. |
|
- | 32 | * |
|
30 | * This is an implementation of generic chained hash table. |
33 | * This file contains implementation of generic chained hash table. |
31 | */ |
34 | */ |
32 | 35 | ||
33 | #include <adt/hash_table.h> |
36 | #include <adt/hash_table.h> |
34 | #include <adt/list.h> |
37 | #include <adt/list.h> |
35 | #include <typedefs.h> |
38 | #include <typedefs.h> |
Line 123... | Line 126... | ||
123 | * |
126 | * |
124 | * For each removed item, h->remove_callback() is called. |
127 | * For each removed item, h->remove_callback() is called. |
125 | * |
128 | * |
126 | * @param h Hash table. |
129 | * @param h Hash table. |
127 | * @param key Array of keys that will be compared against items of the hash table. |
130 | * @param key Array of keys that will be compared against items of the hash table. |
128 | * @param keys Number of keys in the 'key' array. |
131 | * @param keys Number of keys in the key array. |
129 | */ |
132 | */ |
130 | void hash_table_remove(hash_table_t *h, __native key[], count_t keys) |
133 | void hash_table_remove(hash_table_t *h, __native key[], count_t keys) |
131 | { |
134 | { |
132 | index_t chain; |
135 | index_t chain; |
133 | link_t *cur; |
136 | link_t *cur; |