Changeset 4f34b6a in mainline for libadt/include/hash_table.h


Ignore:
Timestamp:
2006-03-14T22:55:01Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
936351c1
Parents:
ee7736e
Message:

Hash_table conversion done.
Simple assert function converted from kernel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libadt/include/hash_table.h

    ree7736e r4f34b6a  
    5454         * @return Index into hash table.
    5555         */
    56         hash_index_t (* hash)(int key[]);
     56        hash_index_t (* hash)(unsigned long key[]);
    5757       
    5858        /** Hash table item comparison function.
     
    6262         * @return true if the keys match, false otherwise.
    6363         */
    64         int (*compare)(int key[], hash_count_t keys, link_t *item);
     64        int (*compare)(unsigned long key[], hash_count_t keys, link_t *item);
    6565
    6666        /** Hash table item removal callback.
     
    7373#define hash_table_get_instance(item, type, member)     list_get_instance((item), type, member)
    7474
    75 extern void hash_table_create(hash_table_t *h, hash_count_t m, hash_count_t max_keys, hash_table_operations_t *op);
    76 extern void hash_table_insert(hash_table_t *h, int key[], link_t *item);
    77 extern link_t *hash_table_find(hash_table_t *h, int key[]);
    78 extern void hash_table_remove(hash_table_t *h, int key[], hash_count_t keys);
     75extern int hash_table_create(hash_table_t *h, hash_count_t m, hash_count_t max_keys, hash_table_operations_t *op);
     76extern void hash_table_insert(hash_table_t *h, unsigned long key[], link_t *item);
     77extern link_t *hash_table_find(hash_table_t *h, unsigned long key[]);
     78extern void hash_table_remove(hash_table_t *h, unsigned long key[], hash_count_t keys);
    7979
    8080#endif
Note: See TracChangeset for help on using the changeset viewer.