summaryrefslogtreecommitdiffstats
path: root/src/H5Sall.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-31 20:33:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-31 20:33:19 (GMT)
commit5279ef2f48eeccfd5d282670859d80d3fd782573 (patch)
treec3a01a0f98451ea453f15ff206f00cae44d01d3a /src/H5Sall.c
parent5aacf74f24c5c63ee25558b6c8be08009d7e245e (diff)
downloadhdf5-5279ef2f48eeccfd5d282670859d80d3fd782573.zip
hdf5-5279ef2f48eeccfd5d282670859d80d3fd782573.tar.gz
hdf5-5279ef2f48eeccfd5d282670859d80d3fd782573.tar.bz2
[svn-r13825] Description:
Incremental step forward in fixing problems with fill values that have a variable-length daattype. This set of changes fixes problems with the copying the property list values. tested Tn: Mac OS X/32 10.4.9 (amazon)
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r--src/H5Sall.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c
index 962a5f4..c216323 100644
--- a/src/H5Sall.c
+++ b/src/H5Sall.c
@@ -547,8 +547,8 @@ H5S_all_deserialize (H5S_t *space, const uint8_t UNUSED *buf)
assert(space);
/* Change to "all" selection */
- if((ret_value=H5S_select_all(space,1))<0)
- HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection");
+ if((ret_value = H5S_select_all(space, TRUE)) < 0)
+ HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection")
done:
FUNC_LEAVE_NOAPI(ret_value);
@@ -702,7 +702,7 @@ H5S_all_is_regular(const H5S_t UNUSED *space)
USAGE
herr_t H5S_select_all(dsid)
hid_t dsid; IN: Dataspace ID of selection to modify
- unsigned rel_prev; IN: Flag whether to release previous selection or not
+ hbool_t rel_prev; IN: Flag whether to release previous selection or not
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -713,28 +713,28 @@ H5S_all_is_regular(const H5S_t UNUSED *space)
REVISION LOG
--------------------------------------------------------------------------*/
herr_t
-H5S_select_all (H5S_t *space, unsigned rel_prev)
+H5S_select_all(H5S_t *space, hbool_t rel_prev)
{
- herr_t ret_value=SUCCEED; /* return value */
+ herr_t ret_value = SUCCEED; /* return value */
- FUNC_ENTER_NOAPI(H5S_select_all, FAIL);
+ FUNC_ENTER_NOAPI(H5S_select_all, FAIL)
/* Check args */
- assert(space);
+ HDassert(space);
/* Remove current selection first */
if(rel_prev)
- if(H5S_SELECT_RELEASE(space)<0)
- HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't release selection");
+ if(H5S_SELECT_RELEASE(space) < 0)
+ HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't release selection")
/* Set number of elements in selection */
- space->select.num_elem=(hsize_t)H5S_GET_EXTENT_NPOINTS(space);
+ space->select.num_elem = (hsize_t)H5S_GET_EXTENT_NPOINTS(space);
/* Set selection type */
- space->select.type=H5S_sel_all;
+ space->select.type = H5S_sel_all;
done:
- FUNC_LEAVE_NOAPI(ret_value);
+ FUNC_LEAVE_NOAPI(ret_value)
} /* H5S_select_all() */
@@ -767,8 +767,8 @@ herr_t H5Sselect_all (hid_t spaceid)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space");
/* Call internal routine to do the work */
- if((ret_value=H5S_select_all(space,1))<0)
- HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection");
+ if((ret_value = H5S_select_all(space, TRUE)) < 0)
+ HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't change selection")
done:
FUNC_LEAVE_API(ret_value);