summaryrefslogtreecommitdiffstats
path: root/src/H5HFspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5HFspace.c')
-rw-r--r--src/H5HFspace.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/H5HFspace.c b/src/H5HFspace.c
index 045b4e2..1c24f70 100644
--- a/src/H5HFspace.c
+++ b/src/H5HFspace.c
@@ -96,7 +96,7 @@ H5HF__space_start(H5HF_hdr_t *hdr, hbool_t may_create)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Check for creating free space info for the heap */
if (H5_addr_defined(hdr->fs_addr)) {
@@ -122,7 +122,7 @@ H5HF__space_start(H5HF_hdr_t *hdr, hbool_t may_create)
(hdr->fspace = H5FS_create(hdr->f, &hdr->fs_addr, &fs_create, NELMTS(classes), classes, hdr,
(hsize_t)H5HF_FSPACE_THRHD_DEF, (hsize_t)H5HF_FSPACE_ALIGN_DEF)))
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't initialize free space info")
- HDassert(H5_addr_defined(hdr->fs_addr));
+ assert(H5_addr_defined(hdr->fs_addr));
} /* end if */
} /* end else */
@@ -155,8 +155,8 @@ H5HF__space_add(H5HF_hdr_t *hdr, H5HF_free_section_t *node, unsigned flags)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(node);
+ assert(hdr);
+ assert(node);
/* Check if the free space for the heap has been initialized */
if (!hdr->fspace)
@@ -198,9 +198,9 @@ H5HF__space_find(H5HF_hdr_t *hdr, hsize_t request, H5HF_free_section_t **node)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(request);
- HDassert(node);
+ assert(hdr);
+ assert(request);
+ assert(node);
/* Check if the free space for the heap has been initialized */
if (!hdr->fspace)
@@ -245,12 +245,12 @@ H5HF__space_revert_root_cb(H5FS_section_info_t *_sect, void H5_ATTR_UNUSED *_uda
/*
* Check arguments.
*/
- HDassert(sect);
+ assert(sect);
/* Only modify "live" single blocks... */
if (sect->sect_info.type == H5HF_FSPACE_SECT_SINGLE && sect->sect_info.state == H5FS_SECT_LIVE) {
/* Release hold on previous indirect block (we must have one) */
- HDassert(sect->u.single.parent);
+ assert(sect->u.single.parent);
if (H5HF__iblock_decr(sect->u.single.parent) < 0)
HGOTO_ERROR(H5E_HEAP, H5E_CANTDEC, FAIL,
"can't decrement reference count on section's indirect block")
@@ -288,7 +288,7 @@ H5HF__space_revert_root(const H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Only need to scan the sections if the free space has been initialized */
if (hdr->fspace)
@@ -327,13 +327,13 @@ H5HF__space_create_root_cb(H5FS_section_info_t *_sect, void *_udata)
/*
* Check arguments.
*/
- HDassert(sect);
- HDassert(root_iblock);
+ assert(sect);
+ assert(root_iblock);
/* Sanity check sections */
/* (If we are switching from a direct block for the root block of the heap, */
/* there should only be 'single' type sections. -QAK) */
- HDassert(sect->sect_info.type == H5HF_FSPACE_SECT_SINGLE);
+ assert(sect->sect_info.type == H5HF_FSPACE_SECT_SINGLE);
/* Increment ref. count on new root indirect block */
if (H5HF__iblock_incr(root_iblock) < 0)
@@ -344,7 +344,7 @@ H5HF__space_create_root_cb(H5FS_section_info_t *_sect, void *_udata)
if (sect->sect_info.state == H5FS_SECT_SERIALIZED)
sect->sect_info.state = H5FS_SECT_LIVE; /* Mark "live" now */
else
- HDassert(!sect->u.single.parent);
+ assert(!sect->u.single.parent);
sect->u.single.parent = root_iblock;
sect->u.single.par_entry = 0;
@@ -377,8 +377,8 @@ H5HF__space_create_root(const H5HF_hdr_t *hdr, H5HF_indirect_t *root_iblock)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(root_iblock);
+ assert(hdr);
+ assert(root_iblock);
/* Only need to scan the sections if the free space has been initialized */
if (hdr->fspace)
@@ -414,8 +414,8 @@ H5HF__space_size(H5HF_hdr_t *hdr, hsize_t *fs_size)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(fs_size);
+ assert(hdr);
+ assert(fs_size);
/* Check if the free space for the heap has been initialized */
if (!hdr->fspace)
@@ -457,9 +457,9 @@ H5HF__space_remove(H5HF_hdr_t *hdr, H5HF_free_section_t *node)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(hdr->fspace);
- HDassert(node);
+ assert(hdr);
+ assert(hdr->fspace);
+ assert(node);
/* Remove from the free space for the heap */
if (H5FS_sect_remove(hdr->f, hdr->fspace, (H5FS_section_info_t *)node) < 0)
@@ -493,7 +493,7 @@ H5HF__space_close(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Check if the free space was ever opened */
if (hdr->fspace) {
@@ -543,7 +543,7 @@ H5HF__space_delete(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Delete the free space manager */
if (H5FS_delete(hdr->f, hdr->fs_addr) < 0)
@@ -577,9 +577,9 @@ H5HF__space_sect_change_class(H5HF_hdr_t *hdr, H5HF_free_section_t *sect, uint16
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(hdr->fspace);
- HDassert(sect);
+ assert(hdr);
+ assert(hdr->fspace);
+ assert(sect);
/* Notify the free space manager that a section has changed class */
if (H5FS_sect_change_class(hdr->f, hdr->fspace, (H5FS_section_info_t *)sect, new_class) < 0)