ext/iodine/fiobj_hash.c
/**
 * Removes a key-value pair from the Hash, if it exists, returning the old
 * object (instead of freeing it).
 */
Removes a key-value pair from the Hash, if it exists, returning the old
object (instead of freeing it).
Removes a key - value pair from the Hash if it exists returning the old object ( instead of freeing it ) .
FIOBJ fiobj_hash_remove2(FIOBJ hash, uint64_t hash_value) {
  assert(hash && FIOBJ_TYPE_IS(hash, FIOBJ_T_HASH));
  FIOBJ old = FIOBJ_INVALID;
  fio_hash___remove(&obj2hash(hash)->hash, hash_value, -1, &old);
  return old;
}
FIOBJ fiobj_hash_remove2 ( FIOBJ hash , uint64_t hash_value ) { assert ( hash && FIOBJ_TYPE_IS ( hash , FIOBJ_T_HASH ) ) ; FIOBJ old = FIOBJ_INVALID ; fio_hash___remove ( & obj2hash ( hash ) -> hash , hash_value , -1 , & old ) ; return old ; }
Removes a key-value pair from the Hash, if it exists, returning the old
 object (instead of freeing it).
Removes a key - value pair from the Hash if it exists returning the old object ( instead of freeing it ) .