summaryrefslogtreecommitdiffstats
path: root/src/H5HFhuge.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /src/H5HFhuge.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'src/H5HFhuge.c')
-rw-r--r--src/H5HFhuge.c84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/H5HFhuge.c b/src/H5HFhuge.c
index d4bfb21..84eb120 100644
--- a/src/H5HFhuge.c
+++ b/src/H5HFhuge.c
@@ -98,7 +98,7 @@ H5HF__huge_bt2_create(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Compute the size of 'raw' records on disk */
/* (Note: the size for huge IDs could be set to 'huge_id_size', instead
@@ -176,7 +176,7 @@ H5HF__huge_init(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Compute information about 'huge' objects for the heap */
@@ -248,7 +248,7 @@ H5HF__huge_new_id(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Check for wrapping around 'huge' object ID space */
if (hdr->huge_ids_wrapped)
@@ -298,10 +298,10 @@ H5HF__huge_insert(H5HF_hdr_t *hdr, size_t obj_size, void *obj, void *_id)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(obj_size > hdr->max_man_size);
- HDassert(obj);
- HDassert(id);
+ assert(hdr);
+ assert(obj_size > hdr->max_man_size);
+ assert(obj);
+ assert(id);
/* Check if the v2 B-tree for tracking 'huge' heap objects has been created yet */
if (!H5_addr_defined(hdr->huge_bt2_addr)) {
@@ -319,7 +319,7 @@ H5HF__huge_insert(H5HF_hdr_t *hdr, size_t obj_size, void *obj, void *_id)
"unable to open v2 B-tree for tracking 'huge' heap objects")
} /* end if */
} /* end else */
- HDassert(hdr->huge_bt2);
+ assert(hdr->huge_bt2);
/* Check for I/O pipeline filter on heap */
if (hdr->filter_len > 0) {
@@ -360,7 +360,7 @@ H5HF__huge_insert(H5HF_hdr_t *hdr, size_t obj_size, void *obj, void *_id)
/* Release buffer for writing, if we had one */
if (write_buf != obj) {
- HDassert(hdr->filter_len > 0);
+ assert(hdr->filter_len > 0);
H5MM_xfree(write_buf);
} /* end if */
@@ -479,10 +479,10 @@ H5HF__huge_get_obj_len(H5HF_hdr_t *hdr, const uint8_t *id, size_t *obj_len_p)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
- HDassert(id);
- HDassert(obj_len_p);
+ assert(hdr);
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(id);
+ assert(obj_len_p);
/* Skip over the flag byte */
id++;
@@ -577,10 +577,10 @@ H5HF__huge_get_obj_off(H5HF_hdr_t *hdr, const uint8_t *id, hsize_t *obj_off_p)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
- HDassert(id);
- HDassert(obj_off_p);
+ assert(hdr);
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(id);
+ assert(obj_off_p);
/* Skip over the flag byte */
id++;
@@ -594,7 +594,7 @@ H5HF__huge_get_obj_off(H5HF_hdr_t *hdr, const uint8_t *id, hsize_t *obj_off_p)
hbool_t found = FALSE; /* Whether entry was found */
/* Sanity check */
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
/* Check if v2 B-tree is open yet */
if (NULL == hdr->huge_bt2) {
@@ -672,9 +672,9 @@ H5HF__huge_op_real(H5HF_hdr_t *hdr, const uint8_t *id, hbool_t is_read, H5HF_ope
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(id);
- HDassert(is_read || op);
+ assert(hdr);
+ assert(id);
+ assert(is_read || op);
/* Skip over the flag byte */
id++;
@@ -693,7 +693,7 @@ H5HF__huge_op_real(H5HF_hdr_t *hdr, const uint8_t *id, hbool_t is_read, H5HF_ope
hbool_t found = FALSE; /* Whether entry was found */
/* Sanity check */
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
/* Check if v2 B-tree is open yet */
if (NULL == hdr->huge_bt2) {
@@ -821,9 +821,9 @@ H5HF__huge_write(H5HF_hdr_t *hdr, const uint8_t *id, const void *obj)
FUNC_ENTER_PACKAGE
- HDassert(hdr);
- HDassert(id);
- HDassert(obj);
+ assert(hdr);
+ assert(id);
+ assert(obj);
/* Check for filters on the heap */
if (hdr->filter_len > 0)
@@ -844,7 +844,7 @@ H5HF__huge_write(H5HF_hdr_t *hdr, const uint8_t *id, const void *obj)
hbool_t found = FALSE; /* Whether entry was found */
/* Sanity check */
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
/* Check if v2 B-tree is open yet */
if (NULL == hdr->huge_bt2) {
@@ -899,9 +899,9 @@ H5HF__huge_read(H5HF_hdr_t *hdr, const uint8_t *id, void *obj)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(id);
- HDassert(obj);
+ assert(hdr);
+ assert(id);
+ assert(obj);
/* Call the internal 'op' routine */
if (H5HF__huge_op_real(hdr, id, TRUE, NULL, obj) < 0)
@@ -933,9 +933,9 @@ H5HF__huge_op(H5HF_hdr_t *hdr, const uint8_t *id, H5HF_operator_t op, void *op_d
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(id);
- HDassert(op);
+ assert(hdr);
+ assert(id);
+ assert(op);
/* Call the internal 'op' routine routine */
if (H5HF__huge_op_real(hdr, id, FALSE, op, op_data) < 0)
@@ -968,9 +968,9 @@ H5HF__huge_remove(H5HF_hdr_t *hdr, const uint8_t *id)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
- HDassert(id);
+ assert(hdr);
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(id);
/* Check if v2 B-tree is open yet */
if (NULL == hdr->huge_bt2) {
@@ -1074,12 +1074,12 @@ H5HF__huge_term(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
+ assert(hdr);
/* Check if v2 B-tree index is open */
if (hdr->huge_bt2) {
/* Sanity check */
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
/* Close v2 B-tree index */
if (H5B2_close(hdr->huge_bt2) < 0)
@@ -1092,7 +1092,7 @@ H5HF__huge_term(H5HF_hdr_t *hdr)
*/
if (H5_addr_defined(hdr->huge_bt2_addr) && hdr->huge_nobjs == 0) {
/* Sanity check */
- HDassert(hdr->huge_size == 0);
+ assert(hdr->huge_size == 0);
/* Delete the v2 B-tree */
/* (any v2 B-tree class will work here) */
@@ -1138,10 +1138,10 @@ H5HF__huge_delete(H5HF_hdr_t *hdr)
/*
* Check arguments.
*/
- HDassert(hdr);
- HDassert(H5_addr_defined(hdr->huge_bt2_addr));
- HDassert(hdr->huge_nobjs);
- HDassert(hdr->huge_size);
+ assert(hdr);
+ assert(H5_addr_defined(hdr->huge_bt2_addr));
+ assert(hdr->huge_nobjs);
+ assert(hdr->huge_size);
/* Set up the callback info */
udata.hdr = hdr;