summaryrefslogtreecommitdiffstats
path: root/src/H5Dint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r--src/H5Dint.c194
1 files changed, 97 insertions, 97 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 3c5dbe6..72986d1 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -266,7 +266,7 @@ H5D_term_package(void)
FUNC_ENTER_NOAPI_NOINIT_NOERR
/* Sanity checks */
- HDassert(0 == H5I_nmembers(H5I_DATASET));
+ assert(0 == H5I_nmembers(H5I_DATASET));
/* Destroy the dataset object id group */
n += (H5I_dec_type_ref(H5I_DATASET) > 0);
@@ -291,7 +291,7 @@ H5D__close_cb(H5VL_object_t *dset_vol_obj, void **request)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(dset_vol_obj);
+ assert(dset_vol_obj);
/* Close the dataset */
if (H5VL_dataset_close(dset_vol_obj, H5P_DATASET_XFER_DEFAULT, request) < 0)
@@ -326,13 +326,13 @@ H5D__create_named(const H5G_loc_t *loc, const char *name, hid_t type_id, const H
FUNC_ENTER_PACKAGE
/* Check arguments */
- HDassert(loc);
- HDassert(name && *name);
- HDassert(type_id != H5P_DEFAULT);
- HDassert(space);
- HDassert(lcpl_id != H5P_DEFAULT);
- HDassert(dcpl_id != H5P_DEFAULT);
- HDassert(dapl_id != H5P_DEFAULT);
+ assert(loc);
+ assert(name && *name);
+ assert(type_id != H5P_DEFAULT);
+ assert(space);
+ assert(lcpl_id != H5P_DEFAULT);
+ assert(dcpl_id != H5P_DEFAULT);
+ assert(dapl_id != H5P_DEFAULT);
/* Set up dataset creation info */
dcrt_info.type_id = type_id;
@@ -348,7 +348,7 @@ H5D__create_named(const H5G_loc_t *loc, const char *name, hid_t type_id, const H
/* Create the new dataset and link it to its parent group */
if (H5L_link_object(loc, name, &ocrt_info, lcpl_id) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to create and link to dataset")
- HDassert(ocrt_info.new_obj);
+ assert(ocrt_info.new_obj);
/* Set the return value */
ret_value = (H5D_t *)ocrt_info.new_obj;
@@ -374,7 +374,7 @@ H5D__get_space_status(const H5D_t *dset, H5D_space_status_t *allocation)
FUNC_ENTER_PACKAGE
- HDassert(dset);
+ assert(dset);
/* Check for chunked layout */
if (dset->shared->layout.type == H5D_CHUNKED) {
@@ -385,7 +385,7 @@ H5D__get_space_status(const H5D_t *dset, H5D_space_status_t *allocation)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL,
"unable to retrieve number of allocated chunks in dataset")
- HDassert(n_chunks_alloc <= n_chunks_total);
+ assert(n_chunks_alloc <= n_chunks_total);
if (n_chunks_alloc == 0)
*allocation = H5D_SPACE_STATUS_NOT_ALLOCATED;
@@ -498,9 +498,9 @@ H5D__init_type(H5F_t *file, const H5D_t *dset, hid_t type_id, H5T_t *type)
FUNC_ENTER_PACKAGE
/* Sanity checking */
- HDassert(file);
- HDassert(dset);
- HDassert(type);
+ assert(file);
+ assert(dset);
+ assert(type);
/* Check whether the datatype is relocatable */
if ((relocatable = H5T_is_relocatable(type)) < 0)
@@ -570,7 +570,7 @@ H5D__cache_dataspace_info(const H5D_t *dset)
FUNC_ENTER_PACKAGE
/* Sanity checking */
- HDassert(dset);
+ assert(dset);
/* Cache info for dataset's dataspace */
if ((sndims = H5S_get_simple_extent_dims(dset->shared->space, dset->shared->curr_dims,
@@ -609,9 +609,9 @@ H5D__init_space(H5F_t *file, const H5D_t *dset, const H5S_t *space)
FUNC_ENTER_PACKAGE
/* Sanity checking */
- HDassert(file);
- HDassert(dset);
- HDassert(space);
+ assert(file);
+ assert(dset);
+ assert(space);
/* Copy dataspace for dataset */
if (NULL == (dset->shared->space = H5S_copy(space, FALSE, TRUE)))
@@ -654,8 +654,8 @@ H5D__use_minimized_dset_headers(H5F_t *file, hbool_t *minimize)
FUNC_ENTER_PACKAGE
- HDassert(file);
- HDassert(minimize);
+ assert(file);
+ assert(minimize);
/* Get the dataset object header minimize flag for this call */
if (H5CX_get_dset_min_ohdr_flag(minimize) < 0)
@@ -695,9 +695,9 @@ H5D__calculate_minimum_header_size(H5F_t *file, H5D_t *dset, H5O_t *ohdr)
FUNC_ENTER_PACKAGE
- HDassert(file);
- HDassert(dset);
- HDassert(ohdr);
+ assert(file);
+ assert(dset);
+ assert(ohdr);
type = dset->shared->type;
fill_prop = &(dset->shared->dcpl_cache.fill);
@@ -775,7 +775,7 @@ H5D__calculate_minimum_header_size(H5F_t *file, H5D_t *dset, H5O_t *ohdr)
/* Modification Time message size */
if (H5O_HDR_STORE_TIMES & H5O_OH_GET_FLAGS(ohdr)) {
- HDassert(H5O_OH_GET_VERSION(ohdr) >= 1); /* 1 :: H5O_VERSION_1 (H5Opkg.h) */
+ assert(H5O_OH_GET_VERSION(ohdr) >= 1); /* 1 :: H5O_VERSION_1 (H5Opkg.h) */
if (H5O_OH_GET_VERSION(ohdr) == 1) {
/* v1 object headers store modification time as a message */
@@ -813,9 +813,9 @@ H5D__prepare_minimized_oh(H5F_t *file, H5D_t *dset, H5O_loc_t *oloc)
FUNC_ENTER_PACKAGE
- HDassert(file);
- HDassert(dset);
- HDassert(oloc);
+ assert(file);
+ assert(dset);
+ assert(oloc);
oh = H5O_create_ohdr(file, dset->shared->dcpl_id);
if (NULL == oh)
@@ -861,8 +861,8 @@ H5D__update_oh_info(H5F_t *file, H5D_t *dset, hid_t dapl_id)
FUNC_ENTER_PACKAGE
/* Sanity checking */
- HDassert(file);
- HDassert(dset);
+ assert(file);
+ assert(dset);
/* Set some local variables, for convenience */
oloc = &dset->oloc;
@@ -917,7 +917,7 @@ H5D__update_oh_info(H5F_t *file, H5D_t *dset, hid_t dapl_id)
H5P_genplist_t *dc_plist; /* Dataset's creation property list */
/* Get dataset's property list object */
- HDassert(dset->shared->dcpl_id != H5P_DATASET_CREATE_DEFAULT);
+ assert(dset->shared->dcpl_id != H5P_DATASET_CREATE_DEFAULT);
if (NULL == (dc_plist = (H5P_genplist_t *)H5I_object(dset->shared->dcpl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "can't get dataset creation property list")
@@ -945,7 +945,7 @@ H5D__update_oh_info(H5F_t *file, H5D_t *dset, hid_t dapl_id)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to create dataset object header")
} /* if using default/minimized object headers */
- HDassert(file == dset->oloc.file);
+ assert(file == dset->oloc.file);
/* Pin the object header */
if (NULL == (oh = H5O_pin(oloc)))
@@ -1063,10 +1063,10 @@ H5D__build_file_prefix(const H5D_t *dset, H5F_prefix_open_t prefix_type, char **
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(dset);
- HDassert(dset->oloc.file);
+ assert(dset);
+ assert(dset->oloc.file);
filepath = H5F_EXTPATH(dset->oloc.file);
- HDassert(filepath);
+ assert(filepath);
/* XXX: Future thread-safety note - getenv is not required
* to be reentrant.
@@ -1154,10 +1154,10 @@ H5D__create(H5F_t *file, hid_t type_id, const H5S_t *space, hid_t dcpl_id, hid_t
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(file);
- HDassert(H5I_DATATYPE == H5I_get_type(type_id));
- HDassert(space);
- HDassert(H5I_GENPROP_LST == H5I_get_type(dcpl_id));
+ assert(file);
+ assert(H5I_DATATYPE == H5I_get_type(type_id));
+ assert(space);
+ assert(H5I_GENPROP_LST == H5I_get_type(dcpl_id));
/* Get the dataset's datatype */
if (NULL == (dt = (H5T_t *)H5I_object(type_id)))
@@ -1411,8 +1411,8 @@ H5D__open_name(const H5G_loc_t *loc, const char *name, hid_t dapl_id)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(loc);
- HDassert(name);
+ assert(loc);
+ assert(name);
/* Set up dataset location to fill in */
dset_loc.oloc = &oloc;
@@ -1468,7 +1468,7 @@ H5D_open(const H5G_loc_t *loc, hid_t dapl_id)
FUNC_ENTER_NOAPI(NULL)
/* check args */
- HDassert(loc);
+ assert(loc);
/* Allocate the dataset structure */
if (NULL == (dataset = H5FL_CALLOC(H5D_t)))
@@ -1601,8 +1601,8 @@ H5D__append_flush_setup(H5D_t *dset, hid_t dapl_id)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(dset);
- HDassert(dset->shared);
+ assert(dset);
+ assert(dset->shared);
/* Set default append flush values */
HDmemset(&dset->shared->append_flush, 0, sizeof(dset->shared->append_flush));
@@ -1680,7 +1680,7 @@ H5D__open_oid(H5D_t *dataset, hid_t dapl_id)
FUNC_ENTER_PACKAGE_TAG(dataset->oloc.addr)
/* check args */
- HDassert(dataset);
+ assert(dataset);
/* (Set the 'vl_type' parameter to FALSE since it doesn't matter from here) */
if (NULL == (dataset->shared = H5D__new(H5P_DATASET_CREATE_DEFAULT, dapl_id, FALSE, FALSE)))
@@ -1733,7 +1733,7 @@ H5D__open_oid(H5D_t *dataset, hid_t dapl_id)
size_t dset_type_size = H5T_GET_SIZE(dataset->shared->type);
size_t dset_data_size = 0;
- HDassert(H5D_COMPACT == dataset->shared->layout.storage.type);
+ assert(H5D_COMPACT == dataset->shared->layout.storage.type);
if ((dset_nelemts = H5S_GET_EXTENT_NPOINTS(dataset->shared->space)) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't get number of elements in dataset's dataspace")
@@ -1871,8 +1871,8 @@ H5D_close(H5D_t *dataset)
FUNC_ENTER_NOAPI(FAIL)
/* check args */
- HDassert(dataset && dataset->oloc.file && dataset->shared);
- HDassert(dataset->shared->fo_count > 0);
+ assert(dataset && dataset->oloc.file && dataset->shared);
+ assert(dataset->shared->fo_count > 0);
/* Dump debugging info */
#ifdef H5D_CHUNK_DEBUG
@@ -1904,7 +1904,7 @@ H5D_close(H5D_t *dataset)
case H5D_CHUNKED:
/* Check for skip list for iterating over chunks during I/O to close */
if (dataset->shared->cache.chunk.sel_chunks) {
- HDassert(H5SL_count(dataset->shared->cache.chunk.sel_chunks) == 0);
+ assert(H5SL_count(dataset->shared->cache.chunk.sel_chunks) == 0);
H5SL_close(dataset->shared->cache.chunk.sel_chunks);
dataset->shared->cache.chunk.sel_chunks = NULL;
} /* end if */
@@ -1930,14 +1930,14 @@ H5D_close(H5D_t *dataset)
case H5D_VIRTUAL: {
size_t i, j;
- HDassert(dataset->shared->layout.storage.u.virt.list ||
- (dataset->shared->layout.storage.u.virt.list_nused == 0));
+ assert(dataset->shared->layout.storage.u.virt.list ||
+ (dataset->shared->layout.storage.u.virt.list_nused == 0));
/* Close source datasets */
for (i = 0; i < dataset->shared->layout.storage.u.virt.list_nused; i++) {
/* Close source dataset */
if (dataset->shared->layout.storage.u.virt.list[i].source_dset.dset) {
- HDassert(dataset->shared->layout.storage.u.virt.list[i].source_dset.dset != dataset);
+ assert(dataset->shared->layout.storage.u.virt.list[i].source_dset.dset != dataset);
if (H5D_close(dataset->shared->layout.storage.u.virt.list[i].source_dset.dset) < 0)
HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to close source dataset")
dataset->shared->layout.storage.u.virt.list[i].source_dset.dset = NULL;
@@ -1946,8 +1946,8 @@ H5D_close(H5D_t *dataset)
/* Close sub datasets */
for (j = 0; j < dataset->shared->layout.storage.u.virt.list[i].sub_dset_nused; j++)
if (dataset->shared->layout.storage.u.virt.list[i].sub_dset[j].dset) {
- HDassert(dataset->shared->layout.storage.u.virt.list[i].sub_dset[j].dset !=
- dataset);
+ assert(dataset->shared->layout.storage.u.virt.list[i].sub_dset[j].dset !=
+ dataset);
if (H5D_close(dataset->shared->layout.storage.u.virt.list[i].sub_dset[j].dset) <
0)
HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL,
@@ -1961,7 +1961,7 @@ H5D_close(H5D_t *dataset)
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert("not implemented yet" && 0);
+ assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout")
#endif /* NDEBUG */
@@ -2020,7 +2020,7 @@ H5D_close(H5D_t *dataset)
/*
* Free memory. Before freeing the memory set the file pointer to NULL.
* We always check for a null file pointer in other H5D functions to be
- * sure we're not accessing an already freed dataset (see the HDassert()
+ * sure we're not accessing an already freed dataset (see the assert()
* above).
*/
dataset->oloc.file = NULL;
@@ -2080,10 +2080,10 @@ H5D_mult_refresh_close(hid_t dset_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset")
/* check args */
- HDassert(dataset);
- HDassert(dataset->oloc.file);
- HDassert(dataset->shared);
- HDassert(dataset->shared->fo_count > 0);
+ assert(dataset);
+ assert(dataset->oloc.file);
+ assert(dataset->shared);
+ assert(dataset->shared->fo_count > 0);
if (dataset->shared->fo_count > 1) {
/* Free cached information for each kind of dataset */
@@ -2098,7 +2098,7 @@ H5D_mult_refresh_close(hid_t dset_id)
case H5D_CHUNKED:
/* Check for skip list for iterating over chunks during I/O to close */
if (dataset->shared->cache.chunk.sel_chunks) {
- HDassert(H5SL_count(dataset->shared->cache.chunk.sel_chunks) == 0);
+ assert(H5SL_count(dataset->shared->cache.chunk.sel_chunks) == 0);
H5SL_close(dataset->shared->cache.chunk.sel_chunks);
dataset->shared->cache.chunk.sel_chunks = NULL;
} /* end if */
@@ -2125,7 +2125,7 @@ H5D_mult_refresh_close(hid_t dset_id)
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert("not implemented yet" && 0);
+ assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout")
#endif /* NDEBUG */
@@ -2157,8 +2157,8 @@ H5D_mult_refresh_reopen(H5D_t *dataset)
FUNC_ENTER_NOAPI(FAIL)
/* check args */
- HDassert(dataset && dataset->oloc.file && dataset->shared);
- HDassert(dataset->shared->fo_count > 0);
+ assert(dataset && dataset->oloc.file && dataset->shared);
+ assert(dataset->shared->fo_count > 0);
if (dataset->shared->fo_count > 1) {
/* Release dataspace info */
@@ -2242,9 +2242,9 @@ H5D__alloc_storage(H5D_t *dset, H5D_time_alloc_t time_alloc, hbool_t full_overwr
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(dset);
+ assert(dset);
f = dset->oloc.file;
- HDassert(f);
+ assert(f);
/* If the data is stored in external files, don't set an address for the layout
* We assume that external storage is already
@@ -2334,7 +2334,7 @@ H5D__alloc_storage(H5D_t *dset, H5D_time_alloc_t time_alloc, hbool_t full_overwr
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert("not implemented yet" && 0);
+ assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout")
#endif /* NDEBUG */
@@ -2410,7 +2410,7 @@ H5D__init_storage(H5D_t *dset, hbool_t full_overwrite, hsize_t old_dim[])
FUNC_ENTER_PACKAGE
- HDassert(dset);
+ assert(dset);
switch (dset->shared->layout.type) {
case H5D_COMPACT:
@@ -2455,7 +2455,7 @@ H5D__init_storage(H5D_t *dset, hbool_t full_overwrite, hsize_t old_dim[])
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert("not implemented yet" && 0);
+ assert("not implemented yet" && 0);
#ifdef NDEBUG
HGOTO_ERROR(H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout")
#endif /* NDEBUG */
@@ -2539,7 +2539,7 @@ H5D__get_offset(const H5D_t *dset)
FUNC_ENTER_PACKAGE
- HDassert(dset);
+ assert(dset);
switch (dset->shared->layout.type) {
case H5D_VIRTUAL:
@@ -2625,9 +2625,9 @@ H5D__vlen_get_buf_size_cb(void H5_ATTR_UNUSED *elem, hid_t type_id, unsigned H5_
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(H5I_DATATYPE == H5I_get_type(type_id));
- HDassert(point);
- HDassert(op_data);
+ assert(H5I_DATATYPE == H5I_get_type(type_id));
+ assert(point);
+ assert(op_data);
/* Select point to read in */
if (H5S_select_elements(vlen_bufsize->fspace, H5S_SELECT_SET, (size_t)1, point) < 0)
@@ -2778,8 +2778,8 @@ H5D__vlen_get_buf_size_gen_cb(void H5_ATTR_UNUSED *elem, hid_t type_id, unsigned
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(point);
- HDassert(op_data);
+ assert(point);
+ assert(op_data);
/* Check args */
if (NULL == (dt = (H5T_t *)H5I_object(type_id)))
@@ -2939,7 +2939,7 @@ H5D__check_filters(H5D_t *dataset)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(dataset);
+ assert(dataset);
/* Check if the filters in the DCPL will need to encode, and if so, can they?
*
@@ -2992,8 +2992,8 @@ H5D__set_extent(H5D_t *dset, const hsize_t *size)
FUNC_ENTER_PACKAGE_TAG(dset->oloc.addr)
/* Check args */
- HDassert(dset);
- HDassert(size);
+ assert(dset);
+ assert(size);
/* Check if we are allowed to modify this file */
if (0 == (H5F_INTENT(dset->oloc.file) & H5F_ACC_RDWR))
@@ -3176,12 +3176,12 @@ H5D__flush_sieve_buf(H5D_t *dataset)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(dataset);
+ assert(dataset);
/* Flush the raw data buffer, if we have a dirty one */
if (dataset->shared->cache.contig.sieve_buf && dataset->shared->cache.contig.sieve_dirty) {
- HDassert(dataset->shared->layout.type !=
- H5D_COMPACT); /* We should never have a sieve buffer for compact storage */
+ assert(dataset->shared->layout.type !=
+ H5D_COMPACT); /* We should never have a sieve buffer for compact storage */
/* Write dirty data sieve buffer to file */
if (H5F_shared_block_write(
@@ -3214,8 +3214,8 @@ H5D__flush_real(H5D_t *dataset)
FUNC_ENTER_PACKAGE_TAG(dataset->oloc.addr)
/* Check args */
- HDassert(dataset);
- HDassert(dataset->shared);
+ assert(dataset);
+ assert(dataset->shared);
/* Avoid flushing the dataset (again) if it's closing */
if (!dataset->shared->closing)
@@ -3244,8 +3244,8 @@ H5D__flush(H5D_t *dset, hid_t dset_id)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(dset);
- HDassert(dset->shared);
+ assert(dset);
+ assert(dset->shared);
/* Currently, H5Oflush causes H5Fclose to trigger an assertion failure in metadata cache.
* Leave this situation for the future solution */
@@ -3288,11 +3288,11 @@ H5D__format_convert(H5D_t *dataset)
FUNC_ENTER_PACKAGE_TAG(dataset->oloc.addr)
/* Check args */
- HDassert(dataset);
+ assert(dataset);
switch (dataset->shared->layout.type) {
case H5D_CHUNKED:
- HDassert(dataset->shared->layout.u.chunk.idx_type != H5D_CHUNK_IDX_BTREE);
+ assert(dataset->shared->layout.u.chunk.idx_type != H5D_CHUNK_IDX_BTREE);
if (NULL == (newlayout = (H5O_layout_t *)H5MM_calloc(sizeof(H5O_layout_t))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "unable to allocate buffer")
@@ -3363,7 +3363,7 @@ H5D__format_convert(H5D_t *dataset)
case H5D_CONTIGUOUS:
case H5D_COMPACT:
- HDassert(dataset->shared->layout.version > H5O_LAYOUT_VERSION_DEFAULT);
+ assert(dataset->shared->layout.version > H5O_LAYOUT_VERSION_DEFAULT);
dataset->shared->layout.version = H5O_LAYOUT_VERSION_DEFAULT;
if (H5O_msg_write(&(dataset->oloc), H5O_LAYOUT_ID, 0, H5O_UPDATE_TIME,
&(dataset->shared->layout)) < 0)
@@ -3437,8 +3437,8 @@ H5D__mark(const H5D_t *dataset, unsigned flags)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(dataset);
- HDassert(!(flags & (unsigned)~(H5D_MARK_SPACE | H5D_MARK_LAYOUT)));
+ assert(dataset);
+ assert(!(flags & (unsigned)~(H5D_MARK_SPACE | H5D_MARK_LAYOUT)));
/* Mark aspects of the dataset as dirty */
if (flags) {
@@ -3467,7 +3467,7 @@ H5D__mark(const H5D_t *dataset, unsigned flags)
} /* end if */
/* _Somebody_ should have update the modification time! */
- HDassert(update_flags == 0);
+ assert(update_flags == 0);
} /* end if */
done:
@@ -3498,8 +3498,8 @@ H5D__flush_all_cb(void *_dataset, hid_t H5_ATTR_UNUSED id, void *_udata)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(dataset);
- HDassert(f);
+ assert(dataset);
+ assert(f);
/* Check for dataset in same file */
if (f == dataset->oloc.file)
@@ -3528,7 +3528,7 @@ H5D_flush_all(H5F_t *f)
FUNC_ENTER_NOAPI(FAIL)
/* Check args */
- HDassert(f);
+ assert(f);
/* Iterate over all the open datasets */
if (H5I_iterate(H5I_DATASET, H5D__flush_all_cb, f, FALSE) < 0)
@@ -3616,7 +3616,7 @@ H5D_get_create_plist(const H5D_t *dset)
case H5D_LAYOUT_ERROR:
case H5D_NLAYOUTS:
default:
- HDassert(0 && "Unknown layout type!");
+ assert(0 && "Unknown layout type!");
} /* end switch */
/* Set back the (possibly modified) layout property to property list */
@@ -3949,8 +3949,8 @@ H5D__refresh(H5D_t *dset, hid_t dset_id)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(dset);
- HDassert(dset->shared);
+ assert(dset);
+ assert(dset->shared);
/* If the layout is virtual... */
if (dset->shared->layout.type == H5D_VIRTUAL) {