| 125 | */ |
| 126 | |
| 127 | static inline void my_hash_free_elements(HASH *hash) |
| 128 | { |
| 129 | if (hash->free) |
| 130 | { |
| 131 | HASH_LINK *data=dynamic_element(&hash->array,0,HASH_LINK*); |
| 132 | HASH_LINK *end= data + hash->records; |
| 133 | while (data < end) |
| 134 | (*hash->free)((data++)->data); |
| 135 | } |
| 136 | hash->records=0; |
| 137 | } |
| 138 | |
| 139 | |
| 140 | /* |
no outgoing calls
no test coverage detected