summaryrefslogtreecommitdiffstats
path: root/src/H5Stest.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-02-27 03:30:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-02-27 03:30:22 (GMT)
commit3e8948df52ce165edd3238a7e2ae3b047eac7836 (patch)
tree26cca419d73ec343bc6fefc3851949e60b07bebb /src/H5Stest.c
parentb2d288804d3f17e824383436d038976c159d0eda (diff)
downloadhdf5-3e8948df52ce165edd3238a7e2ae3b047eac7836.zip
hdf5-3e8948df52ce165edd3238a7e2ae3b047eac7836.tar.gz
hdf5-3e8948df52ce165edd3238a7e2ae3b047eac7836.tar.bz2
[svn-r11966] Purpose:
Code cleanup Description: Style fixes for consistency & other minor cleanups Platforms tested: FreeBSD 4.11 (sleipnir) Mac OSX (amazon) Linux 2.4
Diffstat (limited to 'src/H5Stest.c')
-rw-r--r--src/H5Stest.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/H5Stest.c b/src/H5Stest.c
index 6df626c..5a1d2b0 100644
--- a/src/H5Stest.c
+++ b/src/H5Stest.c
@@ -44,39 +44,39 @@
dimensionality and shape.
GLOBAL VARIABLES
COMMENTS, BUGS, ASSUMPTIONS
- DO NOT USE THIS FUNCTION FOR ANYTHING EXCEPT TESTING H5P_get_class_path()
+ DO NOT USE THIS FUNCTION FOR ANYTHING EXCEPT TESTING
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
htri_t
H5S_select_shape_same_test(hid_t sid1, hid_t sid2)
{
- H5S_t *space1 = NULL; /* Pointer to 1st dataspace */
- H5S_t *space2 = NULL; /* Pointer to 2nd dataspace */
- htri_t ret_value; /* return value */
+ H5S_t *space1 = NULL; /* Pointer to 1st dataspace */
+ H5S_t *space2 = NULL; /* Pointer to 2nd dataspace */
+ htri_t ret_value; /* Return value */
- FUNC_ENTER_NOAPI(H5S_select_shape_same_test, FAIL);
+ FUNC_ENTER_NOAPI(H5S_select_shape_same_test, FAIL)
/* Get dataspace structures */
- if (NULL == (space1=H5I_object_verify(sid1, H5I_DATASPACE)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace");
- if (NULL == (space2=H5I_object_verify(sid2, H5I_DATASPACE)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace");
+ if(NULL == (space1 = H5I_object_verify(sid1, H5I_DATASPACE)))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
+ if(NULL == (space2 = H5I_object_verify(sid2, H5I_DATASPACE)))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
/* Check if the dataspace selections are the same shape */
- if ((ret_value=H5S_select_shape_same(space1,space2))<0)
- HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOMPARE, FAIL, "unable to compare dataspace selections");
+ if((ret_value = H5S_select_shape_same(space1, space2)) < 0)
+ HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOMPARE, FAIL, "unable to compare dataspace selections")
done:
- FUNC_LEAVE_NOAPI(ret_value);
-} /* H5S_select_shape_same_test() */
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* H5S_select_shape_same_test() */
/*--------------------------------------------------------------------------
NAME
- H5S_inquiry_rebuild_status
+ H5S_get_rebuild_status_test
PURPOSE
- Determine the status of rebuild
+ Determine the status of hyperslab rebuild
USAGE
htri_t H5S_inquiry_rebuild_status(hid_t space_id)
hid_t space_id; IN: dataspace id
@@ -86,24 +86,25 @@ done:
Query the status of rebuilding the hyperslab
GLOBAL VARIABLES
COMMENTS, BUGS, ASSUMPTIONS
- DO NOT USE THIS FUNCTION FOR ANYTHING EXCEPT TESTING H5P_get_class_path()
+ DO NOT USE THIS FUNCTION FOR ANYTHING EXCEPT TESTING
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
htri_t
-H5S_inquiry_rebuild_status(hid_t space_id)
+H5S_get_rebuild_status_test(hid_t space_id)
{
- static htri_t ret_value = FAIL; /* return value */
+ H5S_t *space = NULL; /* Pointer to 1st dataspace */
+ htri_t ret_value; /* Return value */
- H5S_t *space1 = NULL; /* Pointer to 1st dataspace */
+ FUNC_ENTER_NOAPI(H5S_get_rebuild_status_test, FAIL)
- FUNC_ENTER_NOAPI(H5S_inquiry_rebuild_status, FAIL);
/* Get dataspace structures */
-if (NULL == (space1=H5I_object_verify(space_id, H5I_DATASPACE)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace");
+ if(NULL == (space = H5I_object_verify(space_id, H5I_DATASPACE)))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
- ret_value= space1->select.sel_info.hslab->diminfo_valid;
+ ret_value = space->select.sel_info.hslab->diminfo_valid;
done:
- FUNC_LEAVE_NOAPI(ret_value);
-} /* H5S_inquiry_rebuild_status() */
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* H5S_get_rebuild_status_test() */
+