Changeset 5b382774 in mainline
- Timestamp:
- 2012-07-24T14:19:58Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4a6da62
- Parents:
- 2696a76
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
r2696a76 r5b382774 131 131 }) 132 132 133 134 #ifndef member_to_inst 135 #define member_to_inst(ptr_member, type, member_identif) \ 136 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif)))) 137 #endif 138 139 133 140 #endif 134 141 -
uspace/lib/c/include/adt/list.h
r2696a76 r5b382774 102 102 iterator = next_iter, next_iter = iterator->next) 103 103 104 #ifndef member_to_inst105 #define member_to_inst(ptr_member, type, member_identif) \106 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif))))107 #endif108 109 110 104 #define assert_link_not_used(link) \ 111 105 assert(((link)->prev == NULL) && ((link)->next == NULL)) -
uspace/lib/c/include/macros.h
r2696a76 r5b382774 52 52 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 53 53 54 #ifndef member_to_inst 55 #define member_to_inst(ptr_member, type, member_identif) \ 56 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif)))) 57 #endif 58 59 54 60 #endif 55 61 -
uspace/lib/nic/src/nic_addr_db.c
r2696a76 r5b382774 35 35 * @brief Generic hash-set based database of addresses 36 36 */ 37 #include "nic_addr_db.h" 37 38 #include <assert.h> 38 39 #include <stdlib.h> … … 40 41 #include <errno.h> 41 42 #include <mem.h> 42 43 #include "nic_addr_db.h" 44 #include "adt/hash_table.h" 45 //#include "string.h" 43 #include <adt/hash_table.h> 44 #include <macros.h> 45 46 46 47 47
Note:
See TracChangeset
for help on using the changeset viewer.