diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-10-30 20:37:39 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-10-30 20:37:39 (GMT) |
commit | f85474466864d1a8b675387b623bebd89bbdc57e (patch) | |
tree | adff43d26b9d543d2921f09409ba81193566a247 /src/H5Adeprec.c | |
parent | 1aa608c06bab83e16dfa677f0c528f2447ce6d65 (diff) | |
download | hdf5-f85474466864d1a8b675387b623bebd89bbdc57e.zip hdf5-f85474466864d1a8b675387b623bebd89bbdc57e.tar.gz hdf5-f85474466864d1a8b675387b623bebd89bbdc57e.tar.bz2 |
[svn-r14222] Description:
Change H5Adelete2 -> H5Adelete_by_name and un-deprecate H5Adelete1 back
to H5Adelete, for better consistency with new other API routiens.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'src/H5Adeprec.c')
-rw-r--r-- | src/H5Adeprec.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/H5Adeprec.c b/src/H5Adeprec.c index af3b7f9..9f888c8 100644 --- a/src/H5Adeprec.c +++ b/src/H5Adeprec.c @@ -413,47 +413,5 @@ H5Aiterate1(hid_t loc_id, unsigned *attr_num, H5A_operator1_t op, void *op_data) done: FUNC_LEAVE_API(ret_value) } /* H5Aiterate1() */ - - -/*-------------------------------------------------------------------------- - NAME - H5Adelete1 - PURPOSE - Deletes an attribute from a location - USAGE - herr_t H5Adelete1(loc_id, name) - hid_t loc_id; IN: Object (dataset or group) to have attribute deleted from - const char *name; IN: Name of attribute to delete - RETURNS - Non-negative on success/Negative on failure - DESCRIPTION - This function removes the named attribute from a dataset or group. - NOTE - Deprecated in favor of H5Adelete2 ---------------------------------------------------------------------------*/ -herr_t -H5Adelete1(hid_t loc_id, const char *name) -{ - H5G_loc_t loc; /* Object location */ - herr_t ret_value = SUCCEED; /* Return value */ - - FUNC_ENTER_API(H5Adelete1, FAIL) - H5TRACE2("e", "i*s", loc_id, name); - - /* check arguments */ - if(H5I_ATTR == H5I_get_type(loc_id)) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "location is not valid for an attribute") - if(H5G_loc(loc_id, &loc) < 0) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a location") - if(!name || !*name) - HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no name") - - /* Delete the attribute from the location */ - if(H5O_attr_remove(loc.oloc, name, H5AC_dxpl_id) < 0) - HGOTO_ERROR(H5E_ATTR, H5E_CANTDELETE, FAIL, "unable to delete attribute") - -done: - FUNC_LEAVE_API(ret_value) -} /* H5Adelete1() */ #endif /* H5_NO_DEPRECATED_SYMBOLS */ |