Ignore:
Timestamp:
2007-02-03T13:22:24Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f619ec11
Parents:
fa8e7d2
Message:

Merge as_t structure into one and leave the differring parts in as_genarch_t.

Indentation and formatting changes in header files.

File:
1 edited

Legend:

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

    rfa8e7d2 r80bcaed  
    4343        /** Hash function.
    4444         *
    45          * @param key Array of keys needed to compute hash index. All keys must be passed.
     45         * @param key   Array of keys needed to compute hash index. All keys must
     46         *              be passed.
    4647         *
    4748         * @return Index into hash table.
     
    5152        /** Hash table item comparison function.
    5253         *
    53          * @param key Array of keys that will be compared with item. It is not necessary to pass all keys.
     54         * @param key   Array of keys that will be compared with item. It is not
     55         *              necessary to pass all keys.
    5456         *
    5557         * @return true if the keys match, false otherwise.
     
    7274} hash_table_t;
    7375
    74 #define hash_table_get_instance(item, type, member)     list_get_instance((item), type, member)
     76#define hash_table_get_instance(item, type, member) \
     77        list_get_instance((item), type, member)
    7578
    76 extern void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, hash_table_operations_t *op);
     79extern void hash_table_create(hash_table_t *h, count_t m, count_t max_keys,
     80    hash_table_operations_t *op);
    7781extern void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item);
    7882extern link_t *hash_table_find(hash_table_t *h, unative_t key[]);
Note: See TracChangeset for help on using the changeset viewer.