diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-27 23:09:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-27 23:09:59 (GMT) |
commit | 5b1a07823fc61017b85a1503ae5453e18716708e (patch) | |
tree | 4b3c6c37928eeb6cf150c2e80b041ff613e94dc8 /src/H5Adeprec.c | |
parent | c63f9b42ec89ff649f4f086e2f422fa01d9967b1 (diff) | |
download | hdf5-5b1a07823fc61017b85a1503ae5453e18716708e.zip hdf5-5b1a07823fc61017b85a1503ae5453e18716708e.tar.gz hdf5-5b1a07823fc61017b85a1503ae5453e18716708e.tar.bz2 |
[svn-r14163] Description:
Make H5Arename() versioned and switch internal usage to use H5Arename2()
Add regression test for H5Arename1()
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 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
AIX/32 5.3 (copper) w/FORTRAN, w/parallel, 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 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/H5Adeprec.c b/src/H5Adeprec.c index 6c4502e..75f5191 100644 --- a/src/H5Adeprec.c +++ b/src/H5Adeprec.c @@ -334,12 +334,15 @@ done: FUNC_LEAVE_API(ret_value) } /* H5Aget_num_attrs() */ +#ifndef H5_NO_DEPRECATED_SYMBOLS /*------------------------------------------------------------------------- - * Function: H5Arename + * Function: H5Arename1 * * Purpose: Rename an attribute * + * Note: Deprecated in favor of H5Arename2 + * * Return: Success: Non-negative * Failure: Negative * @@ -349,12 +352,12 @@ done: *------------------------------------------------------------------------- */ herr_t -H5Arename(hid_t loc_id, const char *old_name, const char *new_name) +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(H5Arename, FAIL) + FUNC_ENTER_API(H5Arename1, FAIL) H5TRACE3("e", "i*s*s", loc_id, old_name, new_name); /* check arguments */ @@ -373,7 +376,8 @@ H5Arename(hid_t loc_id, const char *old_name, const char *new_name) done: FUNC_LEAVE_API(ret_value) -} /* H5Arename() */ +} /* H5Arename1() */ +#endif /* H5_NO_DEPRECATED_SYMBOLS */ /*-------------------------------------------------------------------------- |