diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-08 18:47:43 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-08 18:47:43 (GMT) |
commit | 1186c0b7fa94b89de8514dd20ef47c66aed23581 (patch) | |
tree | df8c4947c2a3aec6e871d8ea80b209532bf802d5 /src/H5A.c | |
parent | 9038dcb4b6be39e7851a9231f8ab9a5896025868 (diff) | |
download | hdf5-1186c0b7fa94b89de8514dd20ef47c66aed23581.zip hdf5-1186c0b7fa94b89de8514dd20ef47c66aed23581.tar.gz hdf5-1186c0b7fa94b89de8514dd20ef47c66aed23581.tar.bz2 |
[svn-r7297] Purpose:
Code cleanup
Description:
Changed lines like:
H5E_clear(H5E_get_my_stack());
to:
H5E_clear(NULL);
which performs the same operation.
Platforms tested:
h5committested
Diffstat (limited to 'src/H5A.c')
-rw-r--r-- | src/H5A.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -276,7 +276,7 @@ H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type, HGOTO_ERROR(H5E_ATTR, H5E_CANTFREE, FAIL, "can't release attribute info") seq++; } - H5E_clear(H5E_get_my_stack()); \ + H5E_clear(NULL); /* Create the attribute message and save the attribute index */ if (H5O_modify(&(attr->ent), H5O_ATTR_ID, H5O_NEW_MESG, 0, 1, attr, dxpl_id) < 0) @@ -348,7 +348,7 @@ H5A_get_index(H5G_entry_t *ent, const char *name, hid_t dxpl_id) HGOTO_ERROR(H5E_ATTR, H5E_CANTFREE, FAIL, "can't release attribute info") i++; } - H5E_clear(H5E_get_my_stack()); \ + H5E_clear(NULL); if(ret_value<0) HGOTO_ERROR(H5E_ATTR, H5E_NOTFOUND, FAIL, "attribute not found") @@ -1326,7 +1326,7 @@ H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op, void *op_data) if(H5O_reset (H5O_ATTR_ID, &found_attr)<0) HGOTO_ERROR(H5E_ATTR, H5E_CANTFREE, FAIL, "can't release attribute info") } - H5E_clear(H5E_get_my_stack()); \ + H5E_clear(NULL); } else if(start_idx>0) @@ -1401,7 +1401,7 @@ H5Adelete(hid_t loc_id, const char *name) HGOTO_ERROR(H5E_ATTR, H5E_CANTFREE, FAIL, "can't release attribute info") idx++; } - H5E_clear(H5E_get_my_stack()); \ + H5E_clear(NULL); if (found<0) HGOTO_ERROR(H5E_ATTR, H5E_NOTFOUND, FAIL, "attribute not found") |