summaryrefslogtreecommitdiffstats
path: root/src/H5Adeprec.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-10-30 19:03:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-10-30 19:03:28 (GMT)
commit8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508 (patch)
tree1792dd8d02dac6ff1b53ba4152b4cdf171d5d2c8 /src/H5Adeprec.c
parent0e06a92d0e1e129c46f27115f2b15ca2995ac59e (diff)
downloadhdf5-8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508.zip
hdf5-8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508.tar.gz
hdf5-8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508.tar.bz2
[svn-r14219] Description:
Change H5Arename2 -> H5Arename_by_name and un-deprecate H5Arename1 back to H5Arename. 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.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/H5Adeprec.c b/src/H5Adeprec.c
index c490dcc..af3b7f9 100644
--- a/src/H5Adeprec.c
+++ b/src/H5Adeprec.c
@@ -345,49 +345,6 @@ done:
} /* H5Aget_num_attrs() */
-/*-------------------------------------------------------------------------
- * Function: H5Arename1
- *
- * Purpose: Rename an attribute
- *
- * Note: Deprecated in favor of H5Arename2
- *
- * Return: Success: Non-negative
- * Failure: Negative
- *
- * Programmer: Raymond Lu
- * October 23, 2002
- *
- *-------------------------------------------------------------------------
- */
-herr_t
-H5Arename1(hid_t loc_id, const char *old_name, const char *new_name)
-{
- H5G_loc_t loc; /* Object location */
- herr_t ret_value = SUCCEED; /* Return value */
-
- FUNC_ENTER_API(H5Arename1, FAIL)
- H5TRACE3("e", "i*s*s", loc_id, old_name, new_name);
-
- /* check arguments */
- if(!old_name || !new_name)
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "name is nil")
- 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")
-
- /* Avoid thrashing things if the names are the same */
- if(HDstrcmp(old_name, new_name))
- /* Call attribute rename routine */
- if(H5O_attr_rename(loc.oloc, H5AC_dxpl_id, old_name, new_name) < 0)
- HGOTO_ERROR(H5E_ATTR, H5E_CANTRENAME, FAIL, "can't rename attribute")
-
-done:
- FUNC_LEAVE_API(ret_value)
-} /* H5Arename1() */
-
-
/*--------------------------------------------------------------------------
NAME
H5Aiterate1