summaryrefslogtreecommitdiffstats
path: root/src/H5Pint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Pint.c')
-rw-r--r--src/H5Pint.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/H5Pint.c b/src/H5Pint.c
index 6086b48..b7d3156 100644
--- a/src/H5Pint.c
+++ b/src/H5Pint.c
@@ -46,25 +46,25 @@
/* Typedef for checking for duplicate class names in parent class */
typedef struct {
const H5P_genclass_t *parent; /* Pointer to parent class */
- const char * name; /* Pointer to name to check */
- H5P_genclass_t * new_class; /* Pointer to class during path traversal */
+ const char *name; /* Pointer to name to check */
+ H5P_genclass_t *new_class; /* Pointer to class during path traversal */
} H5P_check_class_t;
/* Typedef for property list iterator callback */
typedef struct {
H5P_iterate_int_t cb_func; /* Iterator callback */
- void * udata; /* Iterator callback pointer */
+ void *udata; /* Iterator callback pointer */
const H5P_genplist_t *plist; /* Property list pointer */
- H5SL_t * seen; /* Skip list to hold names of properties already seen */
- int * curr_idx_ptr; /* Pointer to current iteration index */
+ H5SL_t *seen; /* Skip list to hold names of properties already seen */
+ int *curr_idx_ptr; /* Pointer to current iteration index */
int prev_idx; /* Previous iteration index */
} H5P_iter_plist_ud_t;
/* Typedef for property list class iterator callback */
typedef struct {
H5P_iterate_int_t cb_func; /* Iterator callback */
- void * udata; /* Iterator callback pointer */
- int * curr_idx_ptr; /* Pointer to current iteration index */
+ void *udata; /* Iterator callback pointer */
+ int *curr_idx_ptr; /* Pointer to current iteration index */
int prev_idx; /* Previous iteration index */
} H5P_iter_pclass_ud_t;
@@ -325,7 +325,7 @@ static const H5I_class_t H5I_GENPROPLST_CLS[1] = {{
static herr_t
H5P_do_prop_cb1(H5SL_t *slist, H5P_genprop_t *prop, H5P_prp_cb1_t cb)
{
- void * tmp_value = NULL; /* Temporary value buffer */
+ void *tmp_value = NULL; /* Temporary value buffer */
H5P_genprop_t *pcopy = NULL; /* Copy of property to insert into skip list */
herr_t ret_value = SUCCEED; /* Return value */
@@ -602,7 +602,7 @@ H5P_genclass_t *
H5P_copy_pclass(H5P_genclass_t *pclass)
{
H5P_genclass_t *new_pclass = NULL; /* Property list class copied */
- H5P_genprop_t * pcopy; /* Copy of property to insert into class */
+ H5P_genprop_t *pcopy; /* Copy of property to insert into class */
H5P_genclass_t *ret_value = NULL; /* return value */
FUNC_ENTER_NOAPI_NOINIT
@@ -678,11 +678,11 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
{
H5P_genclass_t *tclass; /* Temporary class pointer */
H5P_genplist_t *new_plist = NULL; /* New property list generated from copy */
- H5P_genprop_t * tmp; /* Temporary pointer to properties */
- H5P_genprop_t * new_prop; /* New property created for copy */
+ H5P_genprop_t *tmp; /* Temporary pointer to properties */
+ H5P_genprop_t *new_prop; /* New property created for copy */
hid_t new_plist_id; /* Property list ID of new list created */
- H5SL_node_t * curr_node; /* Current node in skip list */
- H5SL_t * seen = NULL; /* Skip list containing properties already seen */
+ H5SL_node_t *curr_node; /* Current node in skip list */
+ H5SL_t *seen = NULL; /* Skip list containing properties already seen */
size_t nseen; /* Number of items 'seen' */
hbool_t has_parent_class; /* Flag to indicate that this property list's class has a parent */
hid_t ret_value = H5I_INVALID_HID; /* return value */
@@ -1430,7 +1430,7 @@ H5P_access_class(H5P_genclass_t *pclass, H5P_class_mod_t mod)
static int
H5P_open_class_path_cb(void *_obj, hid_t H5_ATTR_UNUSED id, void *_key)
{
- H5P_genclass_t * obj = (H5P_genclass_t *)_obj; /* Pointer to the class for this ID */
+ H5P_genclass_t *obj = (H5P_genclass_t *)_obj; /* Pointer to the class for this ID */
H5P_check_class_t *key = (H5P_check_class_t *)_key; /* Pointer to key information for comparison */
int ret_value = 0; /* Return value */
@@ -1585,8 +1585,8 @@ H5P_create(H5P_genclass_t *pclass)
{
H5P_genclass_t *tclass; /* Temporary class pointer */
H5P_genplist_t *plist = NULL; /* New property list created */
- H5P_genprop_t * tmp; /* Temporary pointer to parent class properties */
- H5SL_t * seen = NULL; /* Skip list to hold names of properties already seen */
+ H5P_genprop_t *tmp; /* Temporary pointer to parent class properties */
+ H5SL_t *seen = NULL; /* Skip list to hold names of properties already seen */
H5P_genplist_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT
@@ -2440,7 +2440,7 @@ herr_t
H5P_set(H5P_genplist_t *plist, const char *name, const void *value)
{
H5P_genclass_t *tclass; /* Temporary class pointer */
- H5P_genprop_t * prop; /* Temporary property pointer */
+ H5P_genprop_t *prop; /* Temporary property pointer */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -3401,8 +3401,8 @@ property list.
static int
H5P__iterate_plist_cb(void *_item, void *_key, void *_udata)
{
- H5P_genprop_t * item = (H5P_genprop_t *)_item; /* Pointer to the property */
- char * key = (char *)_key; /* Pointer to the property's name */
+ H5P_genprop_t *item = (H5P_genprop_t *)_item; /* Pointer to the property */
+ char *key = (char *)_key; /* Pointer to the property's name */
H5P_iter_plist_ud_t *udata = (H5P_iter_plist_ud_t *)_udata; /* Pointer to user data */
int ret_value = H5_ITER_CONT; /* Return value */
@@ -3454,8 +3454,8 @@ deleted, and then chains to the property list callback.
static int
H5P__iterate_plist_pclass_cb(void *_item, void *_key, void *_udata)
{
- H5P_genprop_t * item = (H5P_genprop_t *)_item; /* Pointer to the property */
- char * key = (char *)_key; /* Pointer to the property's name */
+ H5P_genprop_t *item = (H5P_genprop_t *)_item; /* Pointer to the property */
+ char *key = (char *)_key; /* Pointer to the property's name */
H5P_iter_plist_ud_t *udata = (H5P_iter_plist_ud_t *)_udata; /* Pointer to user data */
int ret_value = H5_ITER_CONT; /* Return value */
@@ -3532,9 +3532,9 @@ int
H5P_iterate_plist(const H5P_genplist_t *plist, hbool_t iter_all_prop, int *idx, H5P_iterate_int_t cb_func,
void *udata)
{
- H5P_genclass_t * tclass; /* Temporary class pointer */
+ H5P_genclass_t *tclass; /* Temporary class pointer */
H5P_iter_plist_ud_t udata_int; /* User data for skip list iterator */
- H5SL_t * seen = NULL; /* Skip list to hold names of properties already seen */
+ H5SL_t *seen = NULL; /* Skip list to hold names of properties already seen */
int curr_idx = 0; /* Current iteration index */
int ret_value = 0; /* Return value */
@@ -3613,8 +3613,8 @@ property list class.
static int
H5P__iterate_pclass_cb(void *_item, void *_key, void *_udata)
{
- H5P_genprop_t * item = (H5P_genprop_t *)_item; /* Pointer to the property */
- char * key = (char *)_key; /* Pointer to the property's name */
+ H5P_genprop_t *item = (H5P_genprop_t *)_item; /* Pointer to the property */
+ char *key = (char *)_key; /* Pointer to the property's name */
H5P_iter_pclass_ud_t *udata = (H5P_iter_pclass_ud_t *)_udata; /* Pointer to user data */
int ret_value = 0; /* Return value */
@@ -3930,7 +3930,7 @@ herr_t
H5P_get(const H5P_genplist_t *plist, const char *name, void *value)
{
H5P_genclass_t *tclass; /* Temporary class pointer */
- H5P_genprop_t * prop; /* Temporary property pointer */
+ H5P_genprop_t *prop; /* Temporary property pointer */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -4079,8 +4079,8 @@ herr_t
H5P_remove(hid_t plist_id, H5P_genplist_t *plist, const char *name)
{
H5P_genclass_t *tclass; /* Temporary class pointer */
- H5P_genprop_t * prop; /* Temporary property pointer */
- char * del_name; /* Pointer to deleted name */
+ H5P_genprop_t *prop; /* Temporary property pointer */
+ char *del_name; /* Pointer to deleted name */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -4218,8 +4218,8 @@ H5P_copy_prop_plist(hid_t dst_id, hid_t src_id, const char *name)
{
H5P_genplist_t *dst_plist; /* Pointer to destination property list */
H5P_genplist_t *src_plist; /* Pointer to source property list */
- H5P_genprop_t * prop; /* Temporary property pointer */
- H5P_genprop_t * new_prop = NULL; /* Pointer to new property */
+ H5P_genprop_t *prop; /* Temporary property pointer */
+ H5P_genprop_t *new_prop = NULL; /* Pointer to new property */
herr_t ret_value = SUCCEED; /* return value */
FUNC_ENTER_NOAPI_NOINIT
@@ -4327,7 +4327,7 @@ H5P_copy_prop_pclass(hid_t dst_id, hid_t src_id, const char *name)
H5P_genclass_t *src_pclass; /* Source property class, containing property to copy */
H5P_genclass_t *dst_pclass; /* Destination property class */
H5P_genclass_t *orig_dst_pclass; /* Original destination property class */
- H5P_genprop_t * prop; /* Temporary property pointer */
+ H5P_genprop_t *prop; /* Temporary property pointer */
herr_t ret_value = SUCCEED; /* return value */
FUNC_ENTER_NOAPI_NOINIT
@@ -4461,12 +4461,12 @@ H5P_close(void *_plist)
{
H5P_genclass_t *tclass; /* Temporary class pointer */
H5P_genplist_t *plist = (H5P_genplist_t *)_plist;
- H5SL_t * seen = NULL; /* Skip list to hold names of properties already seen */
+ H5SL_t *seen = NULL; /* Skip list to hold names of properties already seen */
size_t nseen; /* Number of items 'seen' */
hbool_t has_parent_class; /* Flag to indicate that this property list's class has a parent */
size_t ndel; /* Number of items deleted */
- H5SL_node_t * curr_node; /* Current node in skip list */
- H5P_genprop_t * tmp; /* Temporary pointer to properties */
+ H5SL_node_t *curr_node; /* Current node in skip list */
+ H5P_genprop_t *tmp; /* Temporary pointer to properties */
unsigned make_cb = 0; /* Operator data for property free callback */
herr_t ret_value = SUCCEED; /* return value */
@@ -4725,12 +4725,12 @@ done:
H5P_genclass_t *
H5P_open_class_path(const char *path)
{
- char * tmp_path = NULL; /* Temporary copy of the path */
- char * curr_name; /* Pointer to current component of path name */
- char * delimit; /* Pointer to path delimiter during traversal */
- H5P_genclass_t * curr_class; /* Pointer to class during path traversal */
+ char *tmp_path = NULL; /* Temporary copy of the path */
+ char *curr_name; /* Pointer to current component of path name */
+ char *delimit; /* Pointer to path delimiter during traversal */
+ H5P_genclass_t *curr_class; /* Pointer to class during path traversal */
H5P_check_class_t check_info; /* Structure to hold the information for checking duplicate names */
- H5P_genclass_t * ret_value = NULL; /* Return value */
+ H5P_genclass_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT