summaryrefslogtreecommitdiffstats
path: root/src/H5Pint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Pint.c')
-rw-r--r--src/H5Pint.c292
1 files changed, 146 insertions, 146 deletions
diff --git a/src/H5Pint.c b/src/H5Pint.c
index 40d90bc..b9db915 100644
--- a/src/H5Pint.c
+++ b/src/H5Pint.c
@@ -439,9 +439,9 @@ H5P_init_phase1(void)
* Initialize the Generic Property class & object groups.
*/
if (H5I_register_type(H5I_GENPROPCLS_CLS) < 0)
- HGOTO_ERROR(H5E_ID, H5E_CANTINIT, FAIL, "unable to initialize ID group")
+ HGOTO_ERROR(H5E_ID, H5E_CANTINIT, FAIL, "unable to initialize ID group");
if (H5I_register_type(H5I_GENPROPLST_CLS) < 0)
- HGOTO_ERROR(H5E_ID, H5E_CANTINIT, FAIL, "unable to initialize ID group")
+ HGOTO_ERROR(H5E_ID, H5E_CANTINIT, FAIL, "unable to initialize ID group");
/* Repeatedly pass over the list of property list classes for the library,
* initializing each class if its parent class is initialized, until no
@@ -469,22 +469,22 @@ H5P_init_phase1(void)
lib_class->type, lib_class->create_func, lib_class->create_data,
lib_class->copy_func, lib_class->copy_data, lib_class->close_func,
lib_class->close_data)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "class initialization failed")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "class initialization failed");
/* Call routine to register properties for class */
if (lib_class->reg_prop_func && (*lib_class->reg_prop_func)(*lib_class->pclass) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "can't register properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "can't register properties");
/* Register the new class */
if ((*lib_class->class_id = H5I_register(H5I_GENPROP_CLS, *lib_class->pclass, FALSE)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "can't register property list class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "can't register property list class");
/* Only register the default property list if it hasn't been created yet */
if (lib_class->def_plist_id && *lib_class->def_plist_id == (-1)) {
/* Register the default property list for the new class*/
if ((*lib_class->def_plist_id = H5P_create_id(*lib_class->pclass, FALSE)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL,
- "can't register default property list for class")
+ "can't register default property list for class");
} /* end if */
/* Increment class initialization counters */
@@ -546,7 +546,7 @@ H5P_init_phase2(void)
/* Set up the default VFL driver */
if (H5P__facc_set_def_driver() < 0)
- HGOTO_ERROR(H5E_VFL, H5E_CANTSET, FAIL, "unable to set default VFL driver")
+ HGOTO_ERROR(H5E_VFL, H5E_CANTSET, FAIL, "unable to set default VFL driver");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -776,23 +776,23 @@ H5P__do_prop_cb1(H5SL_t *slist, H5P_genprop_t *prop, H5P_prp_cb1_t cb)
/* Allocate space for a temporary copy of the property value */
if (NULL == (tmp_value = H5MM_malloc(prop->size)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed for temporary property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed for temporary property value");
H5MM_memcpy(tmp_value, prop->value, prop->size);
/* Call "type 1" callback ('create', 'copy' or 'close') */
if (cb(prop->name, prop->size, tmp_value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "Property callback failed")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "Property callback failed");
/* Make a copy of the class's property */
if (NULL == (pcopy = H5P__dup_prop(prop, H5P_PROP_WITHIN_LIST)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property");
/* Copy the changed value into the new property */
H5MM_memcpy(pcopy->value, tmp_value, prop->size);
/* Insert the changed property into the property list */
if (H5P__add_prop(slist, pcopy) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into skip list");
done:
/* Release the temporary value buffer */
@@ -846,7 +846,7 @@ H5P__copy_pclass(H5P_genclass_t *pclass)
if (NULL == (new_pclass = H5P__create_class(pclass->parent, pclass->name, pclass->type,
pclass->create_func, pclass->create_data, pclass->copy_func,
pclass->copy_data, pclass->close_func, pclass->close_data)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "unable to create property list class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "unable to create property list class");
/* Copy the properties registered for this class */
if (pclass->nprops > 0) {
@@ -857,11 +857,11 @@ H5P__copy_pclass(H5P_genclass_t *pclass)
while (curr_node != NULL) {
/* Make a copy of the class's property */
if (NULL == (pcopy = H5P__dup_prop((H5P_genprop_t *)H5SL_item(curr_node), H5P_PROP_WITHIN_CLASS)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, NULL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, NULL, "Can't copy property");
/* Insert the initialized property into the property list */
if (H5P__add_prop(new_pclass->props, pcopy) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, NULL, "Can't insert property into class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, NULL, "Can't insert property into class");
/* Increment property count for class */
new_pclass->nprops++;
@@ -926,7 +926,7 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
/* Allocate room for the property list */
if (NULL == (new_plist = H5FL_CALLOC(H5P_genplist_t)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, H5I_INVALID_HID, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, H5I_INVALID_HID, "memory allocation failed");
/* Set class state */
new_plist->pclass = old_plist->pclass;
@@ -936,12 +936,12 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
/* Initialize the skip list to hold the changed properties */
if ((new_plist->props = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID,
- "can't create skip list for changed properties")
+ "can't create skip list for changed properties");
/* Create the skip list for deleted properties */
if ((new_plist->del = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID,
- "can't create skip list for deleted properties")
+ "can't create skip list for deleted properties");
/* Create the skip list to hold names of properties already seen
* (This prevents a property in the class hierarchy from having it's
@@ -949,7 +949,7 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
* already been seen)
*/
if ((seen = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID, "can't create skip list for seen properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID, "can't create skip list for seen properties");
nseen = 0;
/* Cycle through the deleted properties & copy them into the new list's deleted section */
@@ -960,17 +960,17 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
/* Duplicate string for insertion into new deleted property skip list */
if ((new_name = H5MM_xstrdup((char *)H5SL_item(curr_node))) == NULL)
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, H5I_INVALID_HID, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, H5I_INVALID_HID, "memory allocation failed");
/* Insert property name into deleted list */
if (H5SL_insert(new_plist->del, new_name, new_name) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5I_INVALID_HID,
- "can't insert property into deleted skip list")
+ "can't insert property into deleted skip list");
/* Add property name to "seen" list */
if (H5SL_insert(seen, new_name, new_name) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5I_INVALID_HID,
- "can't insert property into seen skip list")
+ "can't insert property into seen skip list");
nseen++;
/* Get the next property node in the skip list */
@@ -987,26 +987,26 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
/* Make a copy of the list's property */
if (NULL == (new_prop = H5P__dup_prop(tmp, H5P_PROP_WITHIN_LIST)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, H5I_INVALID_HID, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, H5I_INVALID_HID, "Can't copy property");
/* Call property copy callback, if it exists */
if (new_prop->copy) {
if ((new_prop->copy)(new_prop->name, new_prop->size, new_prop->value) < 0) {
H5P__free_prop(new_prop);
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, H5I_INVALID_HID, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, H5I_INVALID_HID, "Can't copy property");
} /* end if */
} /* end if */
/* Insert the initialized property into the property list */
if (H5P__add_prop(new_plist->props, new_prop) < 0) {
H5P__free_prop(new_prop);
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5I_INVALID_HID, "Can't insert property into list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5I_INVALID_HID, "Can't insert property into list");
} /* end if */
/* Add property name to "seen" list */
if (H5SL_insert(seen, new_prop->name, new_prop->name) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5I_INVALID_HID,
- "can't insert property into seen skip list")
+ "can't insert property into seen skip list");
nseen++;
/* Increment the number of properties in list */
@@ -1037,14 +1037,14 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
if (tmp->copy) {
/* Call the callback & insert changed value into skip list (if necessary) */
if (H5P__do_prop_cb1(new_plist->props, tmp, tmp->copy) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, H5I_INVALID_HID, "Can't create property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, H5I_INVALID_HID, "Can't create property");
} /* end if */
/* Add property name to "seen" list, if we have other classes to work on */
if (has_parent_class) {
if (H5SL_insert(seen, tmp->name, tmp->name) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5I_INVALID_HID,
- "can't insert property into seen skip list")
+ "can't insert property into seen skip list");
nseen++;
} /* end if */
@@ -1063,11 +1063,11 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
/* Increment the number of property lists derived from class */
if (H5P__access_class(new_plist->pclass, H5P_MOD_INC_LST) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, H5I_INVALID_HID, "Can't increment class ref count")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, H5I_INVALID_HID, "Can't increment class ref count");
/* Get an ID for the property list */
if ((new_plist_id = H5I_register(H5I_GENPROP_LST, new_plist, app_ref)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register property list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register property list");
/* Save the property list ID in the property list struct, for use in the property class's 'close' callback
*/
@@ -1082,7 +1082,7 @@ H5P_copy_plist(const H5P_genplist_t *old_plist, hbool_t app_ref)
if ((tclass->copy_func)(new_plist_id, old_plist->plist_id, old_plist->pclass->copy_data) < 0) {
/* Delete ID, ignore return value */
H5I_remove(new_plist_id);
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, H5I_INVALID_HID, "Can't initialize property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, H5I_INVALID_HID, "Can't initialize property");
} /* end if */
} /* end if */
@@ -1139,7 +1139,7 @@ H5P__dup_prop(H5P_genprop_t *oprop, H5P_prop_within_t type)
/* Allocate the new property */
if (NULL == (prop = H5FL_MALLOC(H5P_genprop_t)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
/* Copy basic property information */
H5MM_memcpy(prop, oprop, sizeof(H5P_genprop_t));
@@ -1181,7 +1181,7 @@ H5P__dup_prop(H5P_genprop_t *oprop, H5P_prop_within_t type)
if (oprop->value != NULL) {
assert(prop->size > 0);
if (NULL == (prop->value = H5MM_malloc(prop->size)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
H5MM_memcpy(prop->value, oprop->value, prop->size);
} /* end if */
@@ -1254,7 +1254,7 @@ H5P__create_prop(const char *name, size_t size, H5P_prop_within_t type, const vo
/* Allocate the new property */
if (NULL == (prop = H5FL_MALLOC(H5P_genprop_t)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
/* Set the property initial values */
prop->name = H5MM_xstrdup(name); /* Duplicate name */
@@ -1265,7 +1265,7 @@ H5P__create_prop(const char *name, size_t size, H5P_prop_within_t type, const vo
/* Duplicate value, if it exists */
if (value != NULL) {
if (NULL == (prop->value = H5MM_malloc(prop->size)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
H5MM_memcpy(prop->value, value, prop->size);
} /* end if */
else
@@ -1335,7 +1335,7 @@ H5P__add_prop(H5SL_t *slist, H5P_genprop_t *prop)
/* Insert property into skip list */
if (H5SL_insert(slist, prop, prop->name) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into skip list");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -1371,7 +1371,7 @@ H5P__find_prop_plist(const H5P_genplist_t *plist, const char *name)
/* Check if the property has been deleted from list */
if (H5SL_search(plist->del, name) != NULL) {
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "property deleted from skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "property deleted from skip list");
} /* end if */
else {
/* Get the property data from the skip list */
@@ -1392,7 +1392,7 @@ H5P__find_prop_plist(const H5P_genplist_t *plist, const char *name)
/* Check if we haven't found the property */
if (ret_value == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't find property in skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't find property in skip list");
} /* end else */
} /* end else */
@@ -1430,7 +1430,7 @@ H5P__find_prop_pclass(H5P_genclass_t *pclass, const char *name)
/* Get the property from the skip list */
if (NULL == (ret_value = (H5P_genprop_t *)H5SL_search(pclass->props, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't find property in skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't find property in skip list");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -1737,12 +1737,12 @@ H5P__create_class(H5P_genclass_t *par_class, const char *name, H5P_plist_type_t
/* Allocate room for the class */
if (NULL == (pclass = H5FL_CALLOC(H5P_genclass_t)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, NULL, "property list class allocation failed")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, NULL, "property list class allocation failed");
/* Set class state */
pclass->parent = par_class;
if (NULL == (pclass->name = H5MM_xstrdup(name)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, NULL, "property list class name allocation failed")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, NULL, "property list class name allocation failed");
pclass->type = type;
pclass->nprops = 0; /* Classes are created without properties initially */
pclass->plists = 0; /* No properties lists of this class yet */
@@ -1753,7 +1753,7 @@ H5P__create_class(H5P_genclass_t *par_class, const char *name, H5P_plist_type_t
/* Create the skip list for properties */
if (NULL == (pclass->props = H5SL_create(H5SL_TYPE_STR, NULL)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for properties");
/* Set callback functions and pass-along data */
pclass->create_func = cls_create;
@@ -1766,7 +1766,7 @@ H5P__create_class(H5P_genclass_t *par_class, const char *name, H5P_plist_type_t
/* Increment parent class's derived class value */
if (par_class != NULL) {
if (H5P__access_class(par_class, H5P_MOD_INC_CLS) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, NULL, "Can't increment parent class ref count")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, NULL, "Can't increment parent class ref count");
} /* end if */
/* Set return value */
@@ -1833,7 +1833,7 @@ H5P__create(H5P_genclass_t *pclass)
/* Allocate room for the property list */
if (NULL == (plist = H5FL_CALLOC(H5P_genplist_t)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
/* Set class state */
plist->pclass = pclass;
@@ -1842,11 +1842,11 @@ H5P__create(H5P_genclass_t *pclass)
/* Create the skip list for changed properties */
if ((plist->props = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for changed properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for changed properties");
/* Create the skip list for deleted properties */
if ((plist->del = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for deleted properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for deleted properties");
/* Create the skip list to hold names of properties already seen
* (This prevents a property in the class hierarchy from having it's
@@ -1854,7 +1854,7 @@ H5P__create(H5P_genclass_t *pclass)
* already been seen)
*/
if ((seen = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for seen properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, NULL, "can't create skip list for seen properties");
/*
* Check if we should copy class properties (up through list of parent classes also),
@@ -1877,13 +1877,13 @@ H5P__create(H5P_genclass_t *pclass)
if (tmp->create) {
/* Call the callback & insert changed value into skip list (if necessary) */
if (H5P__do_prop_cb1(plist->props, tmp, tmp->create) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, NULL, "Can't create property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, NULL, "Can't create property");
} /* end if */
/* Add property name to "seen" list */
if (H5SL_insert(seen, tmp->name, tmp->name) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, NULL,
- "can't insert property into seen skip list")
+ "can't insert property into seen skip list");
/* Increment the number of properties in list */
plist->nprops++;
@@ -1900,7 +1900,7 @@ H5P__create(H5P_genclass_t *pclass)
/* Increment the number of property lists derived from class */
if (H5P__access_class(plist->pclass, H5P_MOD_INC_LST) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, NULL, "Can't increment class ref count")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, NULL, "Can't increment class ref count");
/* Set return value */
ret_value = plist;
@@ -1968,11 +1968,11 @@ H5P_create_id(H5P_genclass_t *pclass, hbool_t app_ref)
/* Create the new property list */
if ((plist = H5P__create(pclass)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID, "unable to create property list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID, "unable to create property list");
/* Get an ID for the property list */
if ((plist_id = H5I_register(H5I_GENPROP_LST, plist, app_ref)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register property list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register property list");
/* Save the property list ID in the property list struct, for use in the property class's 'close' callback
*/
@@ -1987,7 +1987,7 @@ H5P_create_id(H5P_genclass_t *pclass, hbool_t app_ref)
if ((tclass->create_func)(plist_id, tclass->create_data) < 0) {
/* Delete ID, ignore return value */
H5I_remove(plist_id);
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, H5I_INVALID_HID, "Can't initialize property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, H5I_INVALID_HID, "Can't initialize property");
} /* end if */
} /* end if */
@@ -2212,17 +2212,17 @@ H5P__register_real(H5P_genclass_t *pclass, const char *name, size_t size, const
/* Check for duplicate named properties */
if (NULL != H5SL_search(pclass->props, name))
- HGOTO_ERROR(H5E_PLIST, H5E_EXISTS, FAIL, "property already exists")
+ HGOTO_ERROR(H5E_PLIST, H5E_EXISTS, FAIL, "property already exists");
/* Create property object from parameters */
if (NULL == (new_prop = H5P__create_prop(name, size, H5P_PROP_WITHIN_CLASS, def_value, prp_create,
prp_set, prp_get, prp_encode, prp_decode, prp_delete, prp_copy,
prp_cmp, prp_close)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "Can't create property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "Can't create property");
/* Insert property into property list class */
if (H5P__add_prop(pclass->props, new_prop) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class");
/* Increment property count for class */
pclass->nprops++;
@@ -2445,7 +2445,7 @@ H5P__register(H5P_genclass_t **ppclass, const char *name, size_t size, const voi
if (NULL == (new_class = H5P__create_class(
pclass->parent, pclass->name, pclass->type, pclass->create_func, pclass->create_data,
pclass->copy_func, pclass->copy_data, pclass->close_func, pclass->close_data)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "can't copy class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "can't copy class");
/* Walk through the skip list of the old class and copy properties */
if (pclass->nprops > 0) {
@@ -2459,11 +2459,11 @@ H5P__register(H5P_genclass_t **ppclass, const char *name, size_t size, const voi
/* Make a copy of the class's property */
if (NULL ==
(pcopy = H5P__dup_prop((H5P_genprop_t *)H5SL_item(curr_node), H5P_PROP_WITHIN_CLASS)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property");
/* Insert the initialized property into the property class */
if (H5P__add_prop(new_class->props, pcopy) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class");
/* Increment property count for class */
new_class->nprops++;
@@ -2480,7 +2480,7 @@ H5P__register(H5P_genclass_t **ppclass, const char *name, size_t size, const voi
/* Really register the property in the class */
if (H5P__register_real(pclass, name, size, def_value, prp_create, prp_set, prp_get, prp_encode,
prp_decode, prp_delete, prp_copy, prp_cmp, prp_close) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "can't register property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "can't register property");
/* Update pointer to pointer to class, if a new one was generated */
if (new_class)
@@ -2680,7 +2680,7 @@ H5P_insert(H5P_genplist_t *plist, const char *name, size_t size, void *value, H5
/* Check for duplicate named properties */
if (NULL != H5SL_search(plist->props, name))
- HGOTO_ERROR(H5E_PLIST, H5E_EXISTS, FAIL, "property already exists")
+ HGOTO_ERROR(H5E_PLIST, H5E_EXISTS, FAIL, "property already exists");
/* Check if the property has been deleted */
if (NULL != H5SL_search(plist->del, name)) {
@@ -2688,7 +2688,7 @@ H5P_insert(H5P_genplist_t *plist, const char *name, size_t size, void *value, H5
/* Remove the property name from the deleted property skip list */
if (NULL == (temp_name = (char *)H5SL_remove(plist->del, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "can't remove property from deleted skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "can't remove property from deleted skip list");
/* free the name of the removed property */
H5MM_xfree(temp_name);
@@ -2702,7 +2702,7 @@ H5P_insert(H5P_genplist_t *plist, const char *name, size_t size, void *value, H5
if (tclass->nprops > 0) {
/* Find the property in the class */
if (NULL != H5SL_search(tclass->props, name))
- HGOTO_ERROR(H5E_PLIST, H5E_EXISTS, FAIL, "property already exists")
+ HGOTO_ERROR(H5E_PLIST, H5E_EXISTS, FAIL, "property already exists");
} /* end if */
/* Go up to parent class */
@@ -2716,11 +2716,11 @@ H5P_insert(H5P_genplist_t *plist, const char *name, size_t size, void *value, H5
if (NULL ==
(new_prop = H5P__create_prop(name, size, H5P_PROP_WITHIN_LIST, value, NULL, prp_set, prp_get,
prp_encode, prp_decode, prp_delete, prp_copy, prp_cmp, prp_close)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "Can't create property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "Can't create property");
/* Insert property into property list class */
if (H5P__add_prop(plist->props, new_prop) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class");
/* Increment property count for class */
plist->nprops++;
@@ -2774,13 +2774,13 @@ H5P__do_prop(H5P_genplist_t *plist, const char *name, H5P_do_plist_op_t plist_op
/* Check if the property has been deleted */
if (NULL != H5SL_search(plist->del, name))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist");
/* Find property in changed list */
if (NULL != (prop = (H5P_genprop_t *)H5SL_search(plist->props, name))) {
/* Call the 'found in property list' callback */
if ((*plist_op)(plist, name, prop, udata) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on property");
} /* end if */
else {
/*
@@ -2794,7 +2794,7 @@ H5P__do_prop(H5P_genplist_t *plist, const char *name, H5P_do_plist_op_t plist_op
if (NULL != (prop = (H5P_genprop_t *)H5SL_search(tclass->props, name))) {
/* Call the 'found in class' callback */
if ((*pclass_op)(plist, name, prop, udata) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on property");
/* Leave */
break;
@@ -2809,7 +2809,7 @@ H5P__do_prop(H5P_genplist_t *plist, const char *name, H5P_do_plist_op_t plist_op
* nor in the properties in the class hierarchy, indicate an error
*/
if (NULL == tclass)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "can't find property in skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "can't find property in skip list");
} /* end else */
done:
@@ -2853,7 +2853,7 @@ H5P__poke_plist_cb(H5P_genplist_t H5_ATTR_NDEBUG_UNUSED *plist, const char H5_AT
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Overwrite value in property */
H5MM_memcpy(prop->value, udata->value, prop->size);
@@ -2901,17 +2901,17 @@ H5P__poke_pclass_cb(H5P_genplist_t *plist, const char H5_ATTR_NDEBUG_UNUSED *nam
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Make a copy of the class's property */
if (NULL == (pcopy = H5P__dup_prop(prop, H5P_PROP_WITHIN_LIST)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property");
H5MM_memcpy(pcopy->value, udata->value, pcopy->size);
/* Insert the changed property into the property list */
if (H5P__add_prop(plist->props, pcopy) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert changed property into skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert changed property into skip list");
done:
/* Cleanup on failure */
@@ -2962,7 +2962,7 @@ H5P_poke(H5P_genplist_t *plist, const char *name, const void *value)
/* Find the property and set the value */
udata.value = value;
if (H5P__do_prop(plist, name, H5P__poke_plist_cb, H5P__poke_pclass_cb, &udata) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to overwrite value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to overwrite value");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -3006,18 +3006,18 @@ H5P__set_plist_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop,
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Make a copy of the value and pass to 'set' callback */
if (NULL != prop->set) {
/* Make a copy of the current value, in case the callback fails */
if (NULL == (tmp_value = H5MM_malloc(prop->size)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed temporary property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed temporary property value");
H5MM_memcpy(tmp_value, udata->value, prop->size);
/* Call user's callback */
if ((*(prop->set))(plist->plist_id, name, prop->size, tmp_value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set property value");
/* Set the pointer for copying */
prp_value = tmp_value;
@@ -3030,7 +3030,7 @@ H5P__set_plist_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop,
if (NULL != prop->del) {
/* Call user's 'delete' callback */
if ((*(prop->del))(plist->plist_id, name, prop->size, prop->value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTFREE, FAIL, "can't release property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTFREE, FAIL, "can't release property value");
} /* end if */
/* Copy new [possibly unchanged] value into property value */
@@ -3084,18 +3084,18 @@ H5P__set_pclass_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop,
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Make a copy of the value and pass to 'set' callback */
if (NULL != prop->set) {
/* Make a copy of the current value, in case the callback fails */
if (NULL == (tmp_value = H5MM_malloc(prop->size)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed temporary property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed temporary property value");
H5MM_memcpy(tmp_value, udata->value, prop->size);
/* Call user's callback */
if ((*(prop->set))(plist->plist_id, name, prop->size, tmp_value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set property value");
/* Set the pointer for copying */
prp_value = tmp_value;
@@ -3106,13 +3106,13 @@ H5P__set_pclass_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop,
/* Make a copy of the class's property */
if (NULL == (pcopy = H5P__dup_prop(prop, H5P_PROP_WITHIN_LIST)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property");
H5MM_memcpy(pcopy->value, prp_value, pcopy->size);
/* Insert the changed property into the property list */
if (H5P__add_prop(plist->props, pcopy) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert changed property into skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert changed property into skip list");
done:
/* Free the temporary value buffer */
@@ -3174,7 +3174,7 @@ H5P_set(H5P_genplist_t *plist, const char *name, const void *value)
/* Find the property and set the value */
udata.value = value;
if (H5P__do_prop(plist, name, H5P__set_plist_cb, H5P__set_pclass_cb, &udata) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to set value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to set value");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -3220,11 +3220,11 @@ H5P__class_get(const H5P_genclass_t *pclass, const char *name, void *value)
/* Find property in list */
if (NULL == (prop = (H5P_genprop_t *)H5SL_search(pclass->props, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist");
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Copy the property value */
H5MM_memcpy(value, prop->value, prop->size);
@@ -3275,11 +3275,11 @@ H5P__class_set(const H5P_genclass_t *pclass, const char *name, const void *value
/* Find property in list */
if (NULL == (prop = (H5P_genprop_t *)H5SL_search(pclass->props, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist");
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Copy the property value */
H5MM_memcpy(prop->value, value, prop->size);
@@ -3437,7 +3437,7 @@ H5P__get_size_plist(const H5P_genplist_t *plist, const char *name, size_t *size)
/* Find property */
if (NULL == (prop = H5P__find_prop_plist(plist, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist");
/* Get property size */
*size = prop->size;
@@ -3482,7 +3482,7 @@ H5P__get_size_pclass(H5P_genclass_t *pclass, const char *name, size_t *size)
/* Find property */
if ((prop = H5P__find_prop_pclass(pclass, name)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist");
/* Get property size */
*size = prop->size;
@@ -3866,13 +3866,13 @@ H5P__cmp_plist_cb(H5P_genprop_t *prop, void *_udata)
/* Check if the property exists in the second property list */
if ((prop2_exist = H5P_exist_plist(udata->plist2, prop->name)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, H5_ITER_ERROR, "can't lookup existence of property?")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, H5_ITER_ERROR, "can't lookup existence of property?");
if (prop2_exist) {
const H5P_genprop_t *prop2; /* Pointer to property in second plist */
/* Look up same property in second property list */
if (NULL == (prop2 = H5P__find_prop_plist(udata->plist2, prop->name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, H5_ITER_ERROR, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, H5_ITER_ERROR, "property doesn't exist");
/* Compare the two properties */
if ((udata->cmp_value = H5P__cmp_prop(prop, prop2)) != 0)
@@ -3951,7 +3951,7 @@ H5P__cmp_plist(const H5P_genplist_t *plist1, const H5P_genplist_t *plist2, int *
/* Iterate over properties in first property list */
if ((ret_value = H5P__iterate_plist(plist1, TRUE, &idx, H5P__cmp_plist_cb, &udata)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to iterate over list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to iterate over list");
if (ret_value != 0) {
*cmp_ret = udata.cmp_value;
HGOTO_DONE(SUCCEED);
@@ -4053,13 +4053,13 @@ H5P_isa_class(hid_t plist_id, hid_t pclass_id)
/* Check arguments. */
if (NULL == (plist = (H5P_genplist_t *)H5I_object_verify(plist_id, H5I_GENPROP_LST)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list");
if (NULL == (pclass = (H5P_genclass_t *)H5I_object_verify(pclass_id, H5I_GENPROP_CLS)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property class")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property class");
/* Compare the property list's class against the other class */
if ((ret_value = H5P_class_isa(plist->pclass, pclass)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to compare property list classes")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to compare property list classes");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -4102,11 +4102,11 @@ H5P_object_verify(hid_t plist_id, hid_t pclass_id)
/* Compare the property list's class against the other class */
if (H5P_isa_class(plist_id, pclass_id) != TRUE)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, NULL, "property list is not a member of the class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, NULL, "property list is not a member of the class");
/* Get the plist structure */
if (NULL == (ret_value = (H5P_genplist_t *)H5I_object(plist_id)))
- HGOTO_ERROR(H5E_ID, H5E_BADID, NULL, "can't find object for ID")
+ HGOTO_ERROR(H5E_ID, H5E_BADID, NULL, "can't find object for ID");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -4159,7 +4159,7 @@ H5P__iterate_plist_cb(void *_item, void *_key, void *_udata)
/* Add property name to 'seen' list */
if (H5SL_insert(udata->seen, key, key) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5_ITER_ERROR, "can't insert property into 'seen' skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, H5_ITER_ERROR, "can't insert property into 'seen' skip list");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -4281,7 +4281,7 @@ H5P__iterate_plist(const H5P_genplist_t *plist, hbool_t iter_all_prop, int *idx,
/* Create the skip list to hold names of properties already seen */
if (NULL == (seen = H5SL_create(H5SL_TYPE_STR, NULL)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "can't create skip list for seen properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "can't create skip list for seen properties");
/* Set up iterator callback info */
udata_int.plist = plist;
@@ -4493,7 +4493,7 @@ H5P__peek_cb(H5P_genplist_t H5_ATTR_NDEBUG_UNUSED *plist, const char H5_ATTR_NDE
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Make a (shallow) copy of the value */
H5MM_memcpy(udata->value, prop->value, prop->size);
@@ -4542,7 +4542,7 @@ H5P_peek(H5P_genplist_t *plist, const char *name, void *value)
/* Find the property and peek at the value */
udata.value = value;
if (H5P__do_prop(plist, name, H5P__peek_cb, H5P__peek_cb, &udata) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to peek at value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to peek at value");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -4586,18 +4586,18 @@ H5P__get_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop, void *
/* Check for property size >0 */
if (0 == prop->size)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "property has zero size");
/* Call the 'get' callback, if there is one */
if (NULL != prop->get) {
/* Make a copy of the current value, in case the callback fails */
if (NULL == (tmp_value = H5MM_malloc(prop->size)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed temporary property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed temporary property value");
H5MM_memcpy(tmp_value, prop->value, prop->size);
/* Call user's callback */
if ((*(prop->get))(plist->plist_id, name, prop->size, tmp_value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set property value");
/* Copy new [possibly unchanged] value into return value */
H5MM_memcpy(udata->value, tmp_value, prop->size);
@@ -4658,7 +4658,7 @@ H5P_get(H5P_genplist_t *plist, const char *name, void *value)
/* Find the property and get the value */
udata.value = value;
if (H5P__do_prop(plist, name, H5P__get_cb, H5P__get_cb, &udata) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to get value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to get value");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -4702,20 +4702,20 @@ H5P__del_plist_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop,
if (NULL != prop->del) {
/* Call user's callback */
if ((*(prop->del))(plist->plist_id, name, prop->size, prop->value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTFREE, FAIL, "can't release property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTFREE, FAIL, "can't release property value");
} /* end if */
/* Duplicate string for insertion into new deleted property skip list */
if (NULL == (del_name = H5MM_xstrdup(name)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed");
/* Insert property name into deleted list */
if (H5SL_insert(plist->del, del_name, del_name) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into deleted skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into deleted skip list");
/* Remove the property from the skip list */
if (NULL == H5SL_remove(plist->props, prop->name))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "can't remove property from skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "can't remove property from skip list");
/* Free the property, ignoring return value, nothing we can do */
H5P__free_prop(prop);
@@ -4772,21 +4772,21 @@ H5P__del_pclass_cb(H5P_genplist_t *plist, const char *name, H5P_genprop_t *prop,
/* Allocate space for a temporary copy of the property value */
if (NULL == (tmp_value = H5MM_malloc(prop->size)))
HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL,
- "memory allocation failed for temporary property value")
+ "memory allocation failed for temporary property value");
H5MM_memcpy(tmp_value, prop->value, prop->size);
/* Call user's callback */
if ((*(prop->del))(plist->plist_id, name, prop->size, tmp_value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't close property value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't close property value");
} /* end if */
/* Duplicate string for insertion into new deleted property skip list */
if (NULL == (del_name = H5MM_xstrdup(name)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTALLOC, FAIL, "memory allocation failed");
/* Insert property name into deleted list */
if (H5SL_insert(plist->del, del_name, del_name) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into deleted skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into deleted skip list");
/* Decrement the number of properties in list */
plist->nprops--;
@@ -4843,7 +4843,7 @@ H5P_remove(H5P_genplist_t *plist, const char *name)
/* Find the property and get the value */
if (H5P__do_prop(plist, name, H5P__del_plist_cb, H5P__del_pclass_cb, NULL) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to remove value")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTOPERATE, FAIL, "can't operate on plist to remove value");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -4896,30 +4896,30 @@ H5P__copy_prop_plist(hid_t dst_id, hid_t src_id, const char *name)
/* Get the objects to operate on */
if (NULL == (src_plist = (H5P_genplist_t *)H5I_object(src_id)) ||
NULL == (dst_plist = (H5P_genplist_t *)H5I_object(dst_id)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property object doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property object doesn't exist");
/* If the property exists in the destination already */
if (NULL != H5P__find_prop_plist(dst_plist, name)) {
/* Delete the property from the destination list, calling the 'close' callback if necessary */
if (H5P_remove(dst_plist, name) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "unable to remove property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "unable to remove property");
/* Get the pointer to the source property */
prop = H5P__find_prop_plist(src_plist, name);
/* Make a copy of the source property */
if ((new_prop = H5P__dup_prop(prop, H5P_PROP_WITHIN_LIST)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property");
/* Call property copy callback, if it exists */
if (new_prop->copy) {
if ((new_prop->copy)(new_prop->name, new_prop->size, new_prop->value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, FAIL, "Can't copy property");
} /* end if */
/* Insert the initialized property into the property list */
if (H5P__add_prop(dst_plist->props, new_prop) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into list");
/* Increment the number of properties in list */
dst_plist->nprops++;
@@ -4928,24 +4928,24 @@ H5P__copy_prop_plist(hid_t dst_id, hid_t src_id, const char *name)
else {
/* Get the pointer to the source property */
if (NULL == (prop = H5P__find_prop_plist(src_plist, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "property doesn't exist");
/* Create property object from parameters */
if (NULL ==
(new_prop = H5P__create_prop(prop->name, prop->size, H5P_PROP_WITHIN_LIST, prop->value,
prop->create, prop->set, prop->get, prop->encode, prop->decode,
prop->del, prop->copy, prop->cmp, prop->close)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "Can't create property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "Can't create property");
/* Call property creation callback, if it exists */
if (new_prop->create) {
if ((new_prop->create)(new_prop->name, new_prop->size, new_prop->value) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "Can't initialize property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "Can't initialize property");
} /* end if */
/* Insert property into property list class */
if (H5P__add_prop(dst_plist->props, new_prop) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "Can't insert property into class");
/* Increment property count for class */
dst_plist->nprops++;
@@ -5006,26 +5006,26 @@ H5P__copy_prop_pclass(hid_t dst_id, hid_t src_id, const char *name)
/* Get property list classes */
if (NULL == (src_pclass = (H5P_genclass_t *)H5I_object(src_id)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "source property class object doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "source property class object doesn't exist");
if (NULL == (dst_pclass = (H5P_genclass_t *)H5I_object(dst_id)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "destination property class object doesn't exist")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "destination property class object doesn't exist");
/* Get the property from the source */
if (NULL == (prop = H5P__find_prop_pclass(src_pclass, name)))
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "unable to locate property")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "unable to locate property");
/* If the property exists in the destination already */
if (H5P__exist_pclass(dst_pclass, name)) {
/* Delete the old property from the destination class */
if (H5P__unregister(dst_pclass, name) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "unable to remove property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "unable to remove property");
} /* end if */
/* Register the property into the destination */
orig_dst_pclass = dst_pclass;
if (H5P__register(&dst_pclass, name, prop->size, prop->value, prop->create, prop->set, prop->get,
prop->encode, prop->decode, prop->del, prop->copy, prop->cmp, prop->close) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "unable to remove property")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "unable to remove property");
/* Check if the property class changed and needs to be substituted in the ID */
if (dst_pclass != orig_dst_pclass) {
@@ -5033,13 +5033,13 @@ H5P__copy_prop_pclass(hid_t dst_id, hid_t src_id, const char *name)
/* Substitute the new destination property class in the ID */
if (NULL == (old_dst_pclass = (H5P_genclass_t *)H5I_subst(dst_id, dst_pclass)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to substitute property class in ID")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to substitute property class in ID");
assert(old_dst_pclass == orig_dst_pclass);
/* Close the previous class */
if (H5P__close_class(old_dst_pclass) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTCLOSEOBJ, FAIL,
- "unable to close original property class after substitution")
+ "unable to close original property class after substitution");
} /* end if */
done:
@@ -5082,11 +5082,11 @@ H5P__unregister(H5P_genclass_t *pclass, const char *name)
/* Get the property node from the skip list */
if ((prop = (H5P_genprop_t *)H5SL_search(pclass->props, name)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "can't find property in skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "can't find property in skip list");
/* Remove the property from the skip list */
if (H5SL_remove(pclass->props, prop->name) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "can't remove property from skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTDELETE, FAIL, "can't remove property from skip list");
/* Free the property, ignoring return value, nothing we can do */
H5P__free_prop(prop);
@@ -5164,7 +5164,7 @@ H5P_close(H5P_genplist_t *plist)
* already been seen)
*/
if ((seen = H5SL_create(H5SL_TYPE_STR, NULL)) == NULL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "can't create skip list for seen properties")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, FAIL, "can't create skip list for seen properties");
nseen = 0;
/* Walk through the changed properties in the list */
@@ -5182,7 +5182,7 @@ H5P_close(H5P_genplist_t *plist)
/* Add property name to "seen" list */
if (H5SL_insert(seen, tmp->name, tmp->name) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into seen skip list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into seen skip list");
nseen++;
/* Get the next property node in the skip list */
@@ -5220,7 +5220,7 @@ H5P_close(H5P_genplist_t *plist)
/* Allocate space for a temporary copy of the property value */
if (NULL == (tmp_value = H5MM_malloc(tmp->size)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL,
- "memory allocation failed for temporary property value")
+ "memory allocation failed for temporary property value");
H5MM_memcpy(tmp_value, tmp->value, tmp->size);
/* Call the 'close' callback */
@@ -5234,7 +5234,7 @@ H5P_close(H5P_genplist_t *plist)
if (has_parent_class) {
if (H5SL_insert(seen, tmp->name, tmp->name) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL,
- "can't insert property into seen skip list")
+ "can't insert property into seen skip list");
nseen++;
} /* end if */
} /* end if */
@@ -5250,7 +5250,7 @@ H5P_close(H5P_genplist_t *plist)
/* Decrement class's dependent property list value! */
if (H5P__access_class(plist->pclass, H5P_MOD_DEC_LST) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "Can't decrement class ref count")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "Can't decrement class ref count");
/* Free the list of 'seen' properties */
H5SL_close(seen);
@@ -5353,7 +5353,7 @@ H5P__get_class_path(H5P_genclass_t *pclass)
ret_str_len = HDstrlen(par_path) + HDstrlen(pclass->name) + 1 +
3; /* Extra "+3" to quiet GCC warning - 2019/07/05, QAK */
if (NULL == (ret_value = (char *)H5MM_malloc(ret_str_len)))
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for class name")
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for class name");
/* Build the full path for this class */
HDsnprintf(ret_value, ret_str_len, "%s/%s", par_path, pclass->name);
@@ -5422,9 +5422,9 @@ H5P__open_class_path(const char *path)
/* Find the class with this name & parent by iterating over the open classes */
if (H5I_iterate(H5I_GENPROP_CLS, H5P__open_class_path_cb, &check_info, FALSE) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_BADITER, NULL, "can't iterate over classes")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADITER, NULL, "can't iterate over classes");
else if (NULL == check_info.new_class)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't locate class")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't locate class");
/* Advance the pointer in the path to the start of the next component */
curr_class = check_info.new_class;
@@ -5440,13 +5440,13 @@ H5P__open_class_path(const char *path)
/* Find the class with this name & parent by iterating over the open classes */
if (H5I_iterate(H5I_GENPROP_CLS, H5P__open_class_path_cb, &check_info, FALSE) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_BADITER, NULL, "can't iterate over classes")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADITER, NULL, "can't iterate over classes");
else if (NULL == check_info.new_class)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't locate class")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, NULL, "can't locate class");
/* Copy it */
if (NULL == (ret_value = H5P__copy_pclass(check_info.new_class)))
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, NULL, "can't copy property class")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCOPY, NULL, "can't copy property class");
done:
/* Free the duplicated path */
@@ -5517,7 +5517,7 @@ H5P__close_class(H5P_genclass_t *pclass)
/* Decrement the reference count & check if the object should go away */
if (H5P__access_class(pclass, H5P_MOD_DEC_REF) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "can't decrement ID ref count")
+ HGOTO_ERROR(H5E_PLIST, H5E_NOTFOUND, FAIL, "can't decrement ID ref count");
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -5648,11 +5648,11 @@ H5P__new_plist_of_type(H5P_plist_type_t type)
/* Get the class object */
if (NULL == (pclass = (H5P_genclass_t *)H5I_object(class_id)))
- HGOTO_ERROR(H5E_PLIST, H5E_BADTYPE, H5I_INVALID_HID, "not a property class")
+ HGOTO_ERROR(H5E_PLIST, H5E_BADTYPE, H5I_INVALID_HID, "not a property class");
/* Create the new property list */
if ((ret_value = H5P_create_id(pclass, TRUE)) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID, "unable to create property list")
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTCREATE, H5I_INVALID_HID, "unable to create property list");
done:
FUNC_LEAVE_NOAPI(ret_value)