Changeset b014e9f in mainline
- Timestamp:
- 2009-04-06T15:44:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 415d272
- Parents:
- 37be841
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/hash_table.c
r37be841 rb014e9f 132 132 /** Remove all matching items from hash table. 133 133 * 134 * For each removed item, h->remove_callback() is called .134 * For each removed item, h->remove_callback() is called (if not NULL). 135 135 * 136 136 * @param h Hash table. … … 147 147 ASSERT(h->op->hash); 148 148 ASSERT(h->op->compare); 149 ASSERT(h->op->remove_callback);150 149 ASSERT(keys <= h->max_keys); 151 150 … … 159 158 if (cur) { 160 159 list_remove(cur); 161 h->op->remove_callback(cur); 160 if (h->op->remove_callback) 161 h->op->remove_callback(cur); 162 162 } 163 163 return; … … 177 177 178 178 list_remove(hlp); 179 h->op->remove_callback(hlp); 179 if (h->op->remove_callback) 180 h->op->remove_callback(hlp); 180 181 181 182 continue;
Note:
See TracChangeset
for help on using the changeset viewer.