Changeset 7f1c620 in mainline for generic/src/adt/hash_table.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/adt/hash_table.c

    r991779c5 r7f1c620  
    6565                panic("cannot allocate memory for hash table\n");
    6666        }
    67         memsetb((__address) h->entry, m * sizeof(link_t), 0);
     67        memsetb((uintptr_t) h->entry, m * sizeof(link_t), 0);
    6868       
    6969        for (i = 0; i < m; i++)
     
    8181 * @param item Item to be inserted into the hash table.
    8282 */
    83 void hash_table_insert(hash_table_t *h, __native key[], link_t *item)
     83void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item)
    8484{
    8585        index_t chain;
     
    101101 * @return Matching item on success, NULL if there is no such item.
    102102 */
    103 link_t *hash_table_find(hash_table_t *h, __native key[])
     103link_t *hash_table_find(hash_table_t *h, unative_t key[])
    104104{
    105105        link_t *cur;
     
    131131 * @param keys Number of keys in the key array.
    132132 */
    133 void hash_table_remove(hash_table_t *h, __native key[], count_t keys)
     133void hash_table_remove(hash_table_t *h, unative_t key[], count_t keys)
    134134{
    135135        index_t chain;
Note: See TracChangeset for help on using the changeset viewer.