diff options
Diffstat (limited to 'src/H5Ptest.c')
-rw-r--r-- | src/H5Ptest.c | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/src/H5Ptest.c b/src/H5Ptest.c index 6bec415..9552fcf 100644 --- a/src/H5Ptest.c +++ b/src/H5Ptest.c @@ -17,22 +17,20 @@ * Purpose: Generic Property Testing Functions */ -#include "H5Pmodule.h" /* This source code file is part of the H5P module */ -#define H5P_TESTING /*suppress warning about H5P testing funcs*/ - +#include "H5Pmodule.h" /* This source code file is part of the H5P module */ +#define H5P_TESTING /*suppress warning about H5P testing funcs*/ /* Private header files */ -#include "H5private.h" /* Generic Functions */ -#include "H5Eprivate.h" /* Error handling */ -#include "H5Iprivate.h" /* IDs */ -#include "H5Ppkg.h" /* Property lists */ -#include "H5Dprivate.h" /* Dataset */ +#include "H5private.h" /* Generic Functions */ +#include "H5Eprivate.h" /* Error handling */ +#include "H5Iprivate.h" /* IDs */ +#include "H5Ppkg.h" /* Property lists */ +#include "H5Dprivate.h" /* Dataset */ /* Local variables */ /* Local typedefs */ - /*-------------------------------------------------------------------------- NAME H5P__get_class_path_test @@ -58,24 +56,23 @@ char * H5P__get_class_path_test(hid_t pclass_id) { - H5P_genclass_t *pclass; /* Property class to query */ - char *ret_value = NULL; /* Return value */ + H5P_genclass_t *pclass; /* Property class to query */ + char * ret_value = NULL; /* Return value */ FUNC_ENTER_PACKAGE /* Check arguments. */ - if(NULL == (pclass = (H5P_genclass_t *)H5I_object_verify(pclass_id, H5I_GENPROP_CLS))) + if (NULL == (pclass = (H5P_genclass_t *)H5I_object_verify(pclass_id, H5I_GENPROP_CLS))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a property class"); /* Get the property list class path */ - if(NULL == (ret_value = H5P__get_class_path(pclass))) + if (NULL == (ret_value = H5P__get_class_path(pclass))) HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "unable to query full path of class") done: FUNC_LEAVE_NOAPI(ret_value) -} /* H5P__get_class_path_test() */ +} /* H5P__get_class_path_test() */ - /*-------------------------------------------------------------------------- NAME H5P__open_class_path_test @@ -99,13 +96,13 @@ done: hid_t H5P__open_class_path_test(const char *path) { - H5P_genclass_t *pclass = NULL; /* Property class to query */ - hid_t ret_value = H5I_INVALID_HID; /* Return value */ + H5P_genclass_t *pclass = NULL; /* Property class to query */ + hid_t ret_value = H5I_INVALID_HID; /* Return value */ FUNC_ENTER_PACKAGE /* Check arguments. */ - if (NULL == path || *path=='\0') + if (NULL == path || *path == '\0') HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5I_INVALID_HID, "invalid class path"); /* Open the property list class */ @@ -121,5 +118,4 @@ done: H5P__close_class(pclass); FUNC_LEAVE_NOAPI(ret_value) -} /* H5P__open_class_path_test() */ - +} /* H5P__open_class_path_test() */ |