Ignore:
Timestamp:
2009-06-03T19:34:45Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/hash_table.h

    r69e68e3 r98000fb  
    4848         * @return Index into hash table.
    4949         */
    50         index_t (* hash)(unative_t key[]);
     50        size_t (* hash)(unative_t key[]);
    5151       
    5252        /** Hash table item comparison function.
     
    5757         * @return true if the keys match, false otherwise.
    5858         */
    59         bool (*compare)(unative_t key[], count_t keys, link_t *item);
     59        bool (*compare)(unative_t key[], size_t keys, link_t *item);
    6060
    6161        /** Hash table item removal callback.
     
    6969typedef struct {
    7070        link_t *entry;
    71         count_t entries;
    72         count_t max_keys;
     71        size_t entries;
     72        size_t max_keys;
    7373        hash_table_operations_t *op;
    7474} hash_table_t;
     
    7777        list_get_instance((item), type, member)
    7878
    79 extern void hash_table_create(hash_table_t *h, count_t m, count_t max_keys,
     79extern void hash_table_create(hash_table_t *h, size_t m, size_t max_keys,
    8080    hash_table_operations_t *op);
    8181extern void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item);
    8282extern link_t *hash_table_find(hash_table_t *h, unative_t key[]);
    83 extern void hash_table_remove(hash_table_t *h, unative_t key[], count_t keys);
     83extern void hash_table_remove(hash_table_t *h, unative_t key[], size_t keys);
    8484
    8585#endif
Note: See TracChangeset for help on using the changeset viewer.