summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c118
1 files changed, 59 insertions, 59 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index 3087df3..13440cd 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -101,7 +101,7 @@ H5S_select_offset(H5S_t *space, const hssize_t *offset)
H5MM_memcpy(space->select.offset, offset, sizeof(hssize_t) * space->extent.rank);
/* Indicate that the offset was changed */
- space->select.offset_changed = TRUE;
+ space->select.offset_changed = true;
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5S_select_offset() */
@@ -186,7 +186,7 @@ H5Sselect_copy(hid_t dst_id, hid_t src_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace");
/* Copy */
- if (H5S_select_copy(dst, src, FALSE) < 0)
+ if (H5S_select_copy(dst, src, false) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "can't copy selection");
done:
@@ -202,7 +202,7 @@ done:
herr_t H5S_select_copy(dst, src, share_selection)
H5S_t *dst; OUT: Pointer to the destination dataspace
H5S_t *src; IN: Pointer to the source dataspace
- hbool_t; IN: Whether to share the selection between the dataspaces
+ bool; IN: Whether to share the selection between the dataspaces
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -219,7 +219,7 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
herr_t
-H5S_select_copy(H5S_t *dst, const H5S_t *src, hbool_t share_selection)
+H5S_select_copy(H5S_t *dst, const H5S_t *src, bool share_selection)
{
herr_t ret_value = FAIL; /* Return value */
@@ -420,7 +420,7 @@ H5S_get_select_npoints(const H5S_t *space)
htri_t H5Sselect_void(dsid)
hid_t dsid; IN: Dataspace ID to query
RETURNS
- TRUE if the selection fits within the extent, FALSE if it does not and
+ true if the selection fits within the extent, false if it does not and
Negative on an error.
DESCRIPTION
Determines if the current selection at the current offset fits within the
@@ -459,7 +459,7 @@ done:
htri_t H5S_select_void(space)
H5S_t *space; IN: Dataspace to query
RETURNS
- TRUE if the selection fits within the extent, FALSE if it does not and
+ true if the selection fits within the extent, false if it does not and
Negative on an error.
DESCRIPTION
Determines if the current selection at the current offset fits within the
@@ -518,7 +518,7 @@ H5S_select_deserialize(H5S_t **space, const uint8_t **p, const size_t p_size)
uint32_t sel_type; /* Pointer to the selection type */
herr_t ret_value = FAIL; /* Return value */
const uint8_t *p_end = *p + p_size - 1; /* Pointer to last valid byte in buffer */
- hbool_t skip = (p_size == SIZE_MAX ? TRUE : FALSE); /* If p_size is unknown, skip buffer checks */
+ bool skip = (p_size == SIZE_MAX ? true : false); /* If p_size is unknown, skip buffer checks */
FUNC_ENTER_NOAPI(FAIL)
assert(space);
@@ -784,7 +784,7 @@ done:
htri_t H5S_select_is_contiguous(space)
const H5S_t *space; IN: Dataspace of selection to query
RETURNS
- Non-negative (TRUE/FALSE) on success, negative on failure
+ Non-negative (true/false) on success, negative on failure
DESCRIPTION
Checks the selection to determine if the points to iterated over will be
contiguous in the particular dataspace.
@@ -820,7 +820,7 @@ H5S_select_is_contiguous(const H5S_t *space)
htri_t H5S_select_is_single(space)
const H5S_t *space; IN: Dataspace of selection to query
RETURNS
- Non-negative (TRUE/FALSE) on success, negative on failure
+ Non-negative (true/false) on success, negative on failure
DESCRIPTION
Checks the selection to determine if it occupies a single block in the
particular dataspace.
@@ -856,7 +856,7 @@ H5S_select_is_single(const H5S_t *space)
htri_t H5S_select_is_regular(space)
const H5S_t *space; IN: Dataspace of selection to query
RETURNS
- Non-negative (TRUE/FALSE) on success, negative on failure
+ Non-negative (true/false) on success, negative on failure
DESCRIPTION
Checks the selection to determine if it is "regular" (i.e. a single
block or a strided pattern) in the particular dataspace.
@@ -1360,7 +1360,7 @@ herr_t
H5S_select_iterate(void *buf, const H5T_t *type, H5S_t *space, const H5S_sel_iter_op_t *op, void *op_data)
{
H5S_sel_iter_t *iter = NULL; /* Selection iteration info */
- hbool_t iter_init = FALSE; /* Selection iteration info has been initialized */
+ bool iter_init = false; /* Selection iteration info has been initialized */
hsize_t *off = NULL; /* Array to store sequence offsets */
size_t *len = NULL; /* Array to store sequence lengths */
hssize_t nelmts; /* Number of elements in selection */
@@ -1390,7 +1390,7 @@ H5S_select_iterate(void *buf, const H5T_t *type, H5S_t *space, const H5S_sel_ite
/* Initialize iterator */
if (H5S_select_iter_init(iter, space, elmt_size, 0) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize selection iterator");
- iter_init = TRUE; /* Selection iteration info has been initialized */
+ iter_init = true; /* Selection iteration info has been initialized */
/* Get the number of elements in selection */
if ((nelmts = (hssize_t)H5S_GET_SELECT_NPOINTS(space)) < 0)
@@ -1584,7 +1584,7 @@ H5S_get_select_type(const H5S_t *space)
const H5S_t *space1; IN: 1st Dataspace pointer to compare
const H5S_t *space2; IN: 2nd Dataspace pointer to compare
RETURNS
- TRUE/FALSE/FAIL
+ true/false/FAIL
DESCRIPTION
Checks to see if the current selection in the dataspaces are the same
dimensionality and shape.
@@ -1602,9 +1602,9 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
{
H5S_sel_iter_t *iter_a = NULL; /* Selection a iteration info */
H5S_sel_iter_t *iter_b = NULL; /* Selection b iteration info */
- hbool_t iter_a_init = FALSE; /* Selection a iteration info has been initialized */
- hbool_t iter_b_init = FALSE; /* Selection b iteration info has been initialized */
- htri_t ret_value = TRUE; /* Return value */
+ bool iter_a_init = false; /* Selection a iteration info has been initialized */
+ bool iter_b_init = false; /* Selection b iteration info has been initialized */
+ htri_t ret_value = true; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -1614,7 +1614,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
/* Check for different number of elements selected */
if (H5S_GET_SELECT_NPOINTS(space1) != H5S_GET_SELECT_NPOINTS(space2))
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
/* Check special cases if both dataspaces aren't scalar */
/* (If only one is, the number of selected points check is sufficient) */
@@ -1684,7 +1684,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
/* Verify that the ranges are the same */
if ((high_a[space_a_dim] - low_a[space_a_dim]) != (high_b[space_b_dim] - low_b[space_b_dim]))
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
/* Go to next dimension */
space_a_dim--;
@@ -1698,7 +1698,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
/* This range should be flat to be the same in a lower dimension */
if (low_a[space_a_dim] != high_a[space_a_dim])
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
space_a_dim--;
} /* end while */
@@ -1709,7 +1709,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
* the same, then the selections are the same, even if the
* selection types are different.
*/
- HGOTO_DONE(TRUE);
+ HGOTO_DONE(true);
} /* end if */
} /* end if */
@@ -1725,7 +1725,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
hsize_t end_a[H5S_MAX_RANK]; /* End point of selection block in dataspace a */
hsize_t end_b[H5S_MAX_RANK]; /* End point of selection block in dataspace b */
hssize_t offset[H5S_MAX_RANK]; /* Offset of selection b blocks relative to selection a blocks */
- hbool_t first_block = TRUE; /* Flag to indicate the first block */
+ bool first_block = true; /* Flag to indicate the first block */
/* Allocate the selection iterators */
if (NULL == (iter_a = H5FL_MALLOC(H5S_sel_iter_t)))
@@ -1740,10 +1740,10 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
*/
if (H5S_select_iter_init(iter_a, space_a, (size_t)0, 0) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize selection iterator a");
- iter_a_init = TRUE;
+ iter_a_init = true;
if (H5S_select_iter_init(iter_b, space_b, (size_t)0, 0) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize selection iterator b");
- iter_b_init = TRUE;
+ iter_b_init = true;
/* Iterate over all the blocks in each selection */
while (1) {
@@ -1768,7 +1768,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
while (space_b_dim >= 0) {
if ((end_a[space_a_dim] - start_a[space_a_dim]) !=
(end_b[space_b_dim] - start_b[space_b_dim]))
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
/* Set the relative locations of the selections */
offset[space_a_dim] = (hssize_t)start_b[space_b_dim] - (hssize_t)start_a[space_a_dim];
@@ -1782,13 +1782,13 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
*/
while (space_a_dim >= 0) {
if (start_a[space_a_dim] != end_a[space_a_dim])
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
space_a_dim--;
} /* end while */
/* Reset "first block" flag */
- first_block = FALSE;
+ first_block = false;
} /* end if */
/* Check over the blocks for each selection */
else {
@@ -1797,12 +1797,12 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
/* Check if the blocks are in the same relative location */
if ((hsize_t)((hssize_t)start_a[space_a_dim] + offset[space_a_dim]) !=
start_b[space_b_dim])
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
/* If the block sizes from each selection doesn't match, get out */
if ((end_a[space_a_dim] - start_a[space_a_dim]) !=
(end_b[space_b_dim] - start_b[space_b_dim]))
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
space_a_dim--;
space_b_dim--;
@@ -1812,7 +1812,7 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
while (space_a_dim >= 0) {
/* If the block size isn't 1, get out */
if (start_a[space_a_dim] != end_a[space_a_dim])
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
space_a_dim--;
} /* end while */
@@ -1826,10 +1826,10 @@ H5S_select_shape_same(H5S_t *space1, H5S_t *space2)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTNEXT, FAIL, "unable to check iterator block b");
/* Did we run out of blocks at the same time? */
- if ((status_a == FALSE) && (status_b == FALSE))
+ if ((status_a == false) && (status_b == false))
break;
else if (status_a != status_b)
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
else {
/* Advance to next block in selection iterators */
if (H5S_SELECT_ITER_NEXT_BLOCK(iter_a) < 0)
@@ -1867,7 +1867,7 @@ done:
hid_t space1_id; IN: ID of 1st Dataspace pointer to compare
hid_t space2_id; IN: ID of 2nd Dataspace pointer to compare
RETURNS
- TRUE/FALSE/FAIL
+ true/false/FAIL
DESCRIPTION
Checks to see if the current selection in the dataspaces are the same
dimensionality and shape.
@@ -1909,7 +1909,7 @@ done:
const hsize_t *start; IN: Starting coordinate of block
const hsize_t *end; IN: Opposite ("ending") coordinate of block
RETURNS
- TRUE / FALSE / FAIL
+ true / false / FAIL
DESCRIPTION
Checks to see if the current selection in the dataspace intersects with
the block given.
@@ -1924,7 +1924,7 @@ done:
htri_t
H5S_select_intersect_block(H5S_t *space, const hsize_t *start, const hsize_t *end)
{
- htri_t ret_value = TRUE; /* Return value */
+ htri_t ret_value = true; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -1947,7 +1947,7 @@ H5S_select_intersect_block(H5S_t *space, const hsize_t *start, const hsize_t *en
for (u = 0; u < space->extent.rank; u++)
/* If selection bounds & block don't overlap, can leave now */
if (!H5S_RANGE_OVERLAP(low[u], high[u], start[u], end[u]))
- HGOTO_DONE(FALSE);
+ HGOTO_DONE(false);
} /* end if */
/* Call selection type's intersect routine */
@@ -1969,7 +1969,7 @@ done:
const hsize_t *start; IN: Starting coordinate of block
const hsize_t *end; IN: Opposite ("ending") coordinate of block
RETURNS
- TRUE / FALSE / FAIL
+ true / false / FAIL
DESCRIPTION
Checks to see if the current selection in the dataspace intersects with
the block given.
@@ -2237,14 +2237,14 @@ H5S_select_construct_projection(H5S_t *base_space, H5S_t **new_space_ptr, unsign
sizeof(new_space->select.offset[0]) * new_space_rank);
/* Propagate the offset changed flag into the new dataspace. */
- new_space->select.offset_changed = TRUE;
+ new_space->select.offset_changed = true;
} /* end if */
} /* end else */
/* If we have done the projection correctly, the following assertion
* should hold.
*/
- assert(TRUE == H5S_select_shape_same(base_space, new_space));
+ assert(true == H5S_select_shape_same(base_space, new_space));
/* load the address of the new space into *new_space_ptr */
*new_space_ptr = new_space;
@@ -2296,7 +2296,7 @@ herr_t
H5S_select_fill(const void *fill, size_t fill_size, H5S_t *space, void *_buf)
{
H5S_sel_iter_t *iter = NULL; /* Selection iteration info */
- hbool_t iter_init = FALSE; /* Selection iteration info has been initialized */
+ bool iter_init = false; /* Selection iteration info has been initialized */
hsize_t *off = NULL; /* Array to store sequence offsets */
size_t *len = NULL; /* Array to store sequence lengths */
hssize_t nelmts; /* Number of elements in selection */
@@ -2318,7 +2318,7 @@ H5S_select_fill(const void *fill, size_t fill_size, H5S_t *space, void *_buf)
/* Initialize iterator */
if (H5S_select_iter_init(iter, space, fill_size, 0) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize selection iterator");
- iter_init = TRUE; /* Selection iteration info has been initialized */
+ iter_init = true; /* Selection iteration info has been initialized */
/* Get the number of elements in selection */
if ((nelmts = (hssize_t)H5S_GET_SELECT_NPOINTS(space)) < 0)
@@ -2391,7 +2391,7 @@ done:
src_intersect_space H5S_t *dst_space; IN: Selection that is mapped to src_space H5S_t
*src_intersect_space; IN: Selection whose intersection with src_space is projected to dst_space to obtain the
result H5S_t **new_space_ptr; OUT: Will contain the result (intersection of src_intersect_space and src_space
-projected from src_space to dst_space) after the operation hbool_t share_selection; IN: Whether we are allowed
+projected from src_space to dst_space) after the operation bool share_selection; IN: Whether we are allowed
to share structures inside dst_space with proj_space
RETURNS
@@ -2410,14 +2410,14 @@ to share structures inside dst_space with proj_space
--------------------------------------------------------------------------*/
herr_t
H5S_select_project_intersection(H5S_t *src_space, H5S_t *dst_space, H5S_t *src_intersect_space,
- H5S_t **new_space_ptr, hbool_t share_selection)
+ H5S_t **new_space_ptr, bool share_selection)
{
H5S_t *new_space = NULL; /* New dataspace constructed */
H5S_t *tmp_src_intersect_space = NULL; /* Temporary SIS converted from points->hyperslabs */
H5S_sel_iter_t *ss_iter = NULL; /* Selection iterator for src_space */
- hbool_t ss_iter_init = FALSE; /* Whether ss_iter has been initialized */
+ bool ss_iter_init = false; /* Whether ss_iter has been initialized */
H5S_sel_iter_t *ds_iter = NULL; /* Selection iterator for dst_space */
- hbool_t ds_iter_init = FALSE; /* Whether ds_iter has been initialized */
+ bool ds_iter_init = false; /* Whether ds_iter has been initialized */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -2438,14 +2438,14 @@ H5S_select_project_intersection(H5S_t *src_space, H5S_t *dst_space, H5S_t *src_i
/* Create new space, using dst extent. Start with "all" selection. */
if (NULL == (new_space = H5S_create(H5S_SIMPLE)))
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCREATE, FAIL, "unable to create output dataspace");
- if (H5S__extent_copy_real(&new_space->extent, &dst_space->extent, TRUE) < 0)
+ if (H5S__extent_copy_real(&new_space->extent, &dst_space->extent, true) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "unable to copy destination space extent");
/* If the intersecting space is "all", the intersection must be equal to the
* source space and the projection must be equal to the destination space */
if (H5S_GET_SELECT_TYPE(src_intersect_space) == H5S_SEL_ALL) {
/* Copy the destination selection. */
- if (H5S_select_copy(new_space, dst_space, FALSE) < 0)
+ if (H5S_select_copy(new_space, dst_space, false) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "can't copy destination space selection");
} /* end if */
/* If any of the selections contain no elements, the projection must be
@@ -2486,7 +2486,7 @@ H5S_select_project_intersection(H5S_t *src_space, H5S_t *dst_space, H5S_t *src_i
/* Select all or none as appropriate */
if (intersect) {
- if (H5S_select_all(new_space, TRUE) < 0)
+ if (H5S_select_all(new_space, true) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSET, FAIL, "can't select all");
} /* end if */
else if (H5S_select_none(new_space) < 0)
@@ -2507,7 +2507,7 @@ H5S_select_project_intersection(H5S_t *src_space, H5S_t *dst_space, H5S_t *src_i
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCREATE, FAIL,
"unable to create temporary source intersect dataspace");
if (H5S__extent_copy_real(&tmp_src_intersect_space->extent, &src_intersect_space->extent,
- FALSE) < 0)
+ false) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL,
"unable to copy source intersect space extent");
@@ -2543,11 +2543,11 @@ H5S_select_project_intersection(H5S_t *src_space, H5S_t *dst_space, H5S_t *src_i
if (H5S_select_iter_init(ss_iter, src_space, 1, H5S_SEL_ITER_SHARE_WITH_DATASPACE) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL,
"can't initialize source space selection iterator");
- ss_iter_init = TRUE;
+ ss_iter_init = true;
if (H5S_select_iter_init(ds_iter, dst_space, 1, H5S_SEL_ITER_SHARE_WITH_DATASPACE) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL,
"can't initialize destination space selection iterator");
- ds_iter_init = TRUE;
+ ds_iter_init = true;
/* Iterate over points */
do {
@@ -2688,11 +2688,11 @@ H5Sselect_project_intersection(hid_t src_space_id, hid_t dst_space_id, hid_t src
"rank of source space does not match rank of source intersect space");
/* Perform operation */
- if (H5S_select_project_intersection(src_space, dst_space, src_intersect_space, &proj_space, FALSE) < 0)
+ if (H5S_select_project_intersection(src_space, dst_space, src_intersect_space, &proj_space, false) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTCLIP, FAIL, "can't project dataspace intersection");
/* Register */
- if ((ret_value = H5I_register(H5I_DATASPACE, proj_space, TRUE)) < 0)
+ if ((ret_value = H5I_register(H5I_DATASPACE, proj_space, true)) < 0)
HGOTO_ERROR(H5E_ID, H5E_CANTREGISTER, FAIL, "unable to register dataspace ID");
done:
@@ -2840,7 +2840,7 @@ H5Ssel_iter_create(hid_t space_id, size_t elmt_size, unsigned flags)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, H5I_INVALID_HID, "unable to initialize selection iterator");
/* Register */
- if ((ret_value = H5I_register(H5I_SPACE_SEL_ITER, sel_iter, TRUE)) < 0)
+ if ((ret_value = H5I_register(H5I_SPACE_SEL_ITER, sel_iter, true)) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTREGISTER, H5I_INVALID_HID,
"unable to register dataspace selection iterator ID");
@@ -2938,7 +2938,7 @@ done:
USAGE
herr_t H5S_select_contig_block(space, is_contig, off, len)
H5S_t *space; IN: Selection to check
- hbool_t *is_contig; OUT: Whether the selection is contiguous
+ bool *is_contig; OUT: Whether the selection is contiguous
hsize_t *off; OUT: Offset of selection
size_t *len; OUT: Length of selection
@@ -2955,10 +2955,10 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
herr_t
-H5S_select_contig_block(H5S_t *space, hbool_t *is_contig, hsize_t *off, size_t *len)
+H5S_select_contig_block(H5S_t *space, bool *is_contig, hsize_t *off, size_t *len)
{
H5S_sel_iter_t *iter = NULL; /* Selection iterator */
- hbool_t iter_init = FALSE; /* Selection iteration info has been initialized */
+ bool iter_init = false; /* Selection iteration info has been initialized */
size_t nseq_tmp;
size_t nelem_tmp;
hsize_t sel_off;
@@ -2975,7 +2975,7 @@ H5S_select_contig_block(H5S_t *space, hbool_t *is_contig, hsize_t *off, size_t *
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTALLOC, FAIL, "can't allocate iterator");
if (H5S_select_iter_init(iter, space, 1, 0) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize memory selection information");
- iter_init = TRUE;
+ iter_init = true;
/* Get list of sequences for selection, to check if it is contiguous */
if (H5S_SELECT_ITER_GET_SEQ_LIST(iter, (size_t)1, (size_t)-1, &nseq_tmp, &nelem_tmp, &sel_off, &sel_len) <
@@ -2986,14 +2986,14 @@ H5S_select_contig_block(H5S_t *space, hbool_t *is_contig, hsize_t *off, size_t *
H5_CHECK_OVERFLOW(space->select.num_elem, hsize_t, size_t);
if (sel_len == (size_t)space->select.num_elem) {
if (is_contig)
- *is_contig = TRUE;
+ *is_contig = true;
if (off)
*off = sel_off;
if (len)
*len = sel_len;
}
else if (is_contig)
- *is_contig = FALSE;
+ *is_contig = false;
done:
if (iter_init && H5S_SELECT_ITER_RELEASE(iter) < 0)