librnr/hash.c
void hash_table_destroy(hash_t *hash)
{
  hscan_t  hs;
  hnode_t *node;

  LOGDIAG4CALL(_TPTR(hash));

  hash_scan_begin(&hs, hash);
  while((node = hash_scan_next(&hs)))
  {
    hash_node_fast_unlink(hash, node);
    hnode_destroy(node, hash->freenodedata);
  }
  hash_table_delete(hash);
}
/*!
 * \brief Delete the hash table, all of its entries, and all of the user data.
 *
 * \param hash  Hash table.
 */
\brief Delete the hash table, all of its entries, and all of the user data.
\param hash  Hash table.
\ brief Delete the hash table all of its entries and all of the user data . \ param hash Hash table .
void hash_table_destroy(hash_t *hash)
{
  hscan_t  hs;
  hnode_t *node;
  LOGDIAG4CALL(_TPTR(hash));
  hash_scan_begin(&hs, hash);
  while((node = hash_scan_next(&hs)))
  {
    hash_node_fast_unlink(hash, node);
    hnode_destroy(node, hash->freenodedata);
  }
  hash_table_delete(hash);
}
void hash_table_destroy ( hash_t * hash ) { hscan_t hs ; hnode_t * node ; LOGDIAG4CALL ( _TPTR ( hash ) ) ; hash_scan_begin ( & hs , hash ) ; while ( ( node = hash_scan_next ( & hs ) ) ) { hash_node_fast_unlink ( hash , node ) ; hnode_destroy ( node , hash -> freenodedata ) ; } hash_table_delete ( hash ) ; }
\brief Delete the hash table, all of its entries, and all of the user data.
\ brief Delete the hash table all of its entries and all of the user data .