summaryrefslogtreecommitdiffstats
path: root/src/H5Stest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Stest.c')
-rw-r--r--src/H5Stest.c36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/H5Stest.c b/src/H5Stest.c
index 26515ff..860534c 100644
--- a/src/H5Stest.c
+++ b/src/H5Stest.c
@@ -17,16 +17,14 @@
* Purpose: Dataspace selection testing functions.
*/
-#define H5S_PACKAGE /*suppress error about including H5Spkg */
-#define H5S_TESTING /*suppress warning about H5S testing funcs*/
+#define H5S_PACKAGE /*suppress error about including H5Spkg */
+#define H5S_TESTING /*suppress warning about H5S testing funcs*/
+#include "H5private.h" /* Generic Functions */
+#include "H5Eprivate.h" /* Error handling */
+#include "H5Iprivate.h" /* IDs */
+#include "H5Spkg.h" /* Dataspaces */
-#include "H5private.h" /* Generic Functions */
-#include "H5Eprivate.h" /* Error handling */
-#include "H5Iprivate.h" /* IDs */
-#include "H5Spkg.h" /* Dataspaces */
-
-
/*--------------------------------------------------------------------------
NAME
H5S_select_shape_same_test
@@ -50,27 +48,26 @@
htri_t
H5S_select_shape_same_test(hid_t sid1, hid_t sid2)
{
- H5S_t *space1; /* Pointer to 1st dataspace */
- H5S_t *space2; /* Pointer to 2nd dataspace */
- htri_t ret_value; /* Return value */
+ H5S_t *space1; /* Pointer to 1st dataspace */
+ H5S_t *space2; /* Pointer to 2nd dataspace */
+ htri_t ret_value; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
/* Get dataspace structures */
- if(NULL == (space1 = (H5S_t *)H5I_object_verify(sid1, H5I_DATASPACE)))
+ if (NULL == (space1 = (H5S_t *)H5I_object_verify(sid1, H5I_DATASPACE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
- if(NULL == (space2 = (H5S_t *)H5I_object_verify(sid2, H5I_DATASPACE)))
+ if (NULL == (space2 = (H5S_t *)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)
+ 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() */
-
/*--------------------------------------------------------------------------
NAME
H5S_get_rebuild_status_test
@@ -92,13 +89,13 @@ done:
htri_t
H5S_get_rebuild_status_test(hid_t space_id)
{
- H5S_t *space; /* Pointer to 1st dataspace */
- htri_t ret_value; /* Return value */
+ H5S_t *space; /* Pointer to 1st dataspace */
+ htri_t ret_value; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
- /* Get dataspace structures */
- if(NULL == (space = (H5S_t *)H5I_object_verify(space_id, H5I_DATASPACE)))
+ /* Get dataspace structures */
+ if (NULL == (space = (H5S_t *)H5I_object_verify(space_id, H5I_DATASPACE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace")
ret_value = (htri_t)space->select.sel_info.hslab->diminfo_valid;
@@ -106,4 +103,3 @@ H5S_get_rebuild_status_test(hid_t space_id)
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* H5S_get_rebuild_status_test() */
-