summaryrefslogtreecommitdiffstats
path: root/src/H5Oattribute.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-02-21 02:24:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-02-21 02:24:25 (GMT)
commit4d93574a8fe2103af882c87e12856a9cc1bcb3f4 (patch)
tree19c54c824bcc44f999d1f29608f43138eed425f5 /src/H5Oattribute.c
parentc64266b78ea4e86d281561b5b80778c50253ff7d (diff)
downloadhdf5-4d93574a8fe2103af882c87e12856a9cc1bcb3f4.zip
hdf5-4d93574a8fe2103af882c87e12856a9cc1bcb3f4.tar.gz
hdf5-4d93574a8fe2103af882c87e12856a9cc1bcb3f4.tar.bz2
[svn-r13360] Description:
Finish H5Aiterate2() Add H5Arename2() and mark H5Arename as deprecated. Started on H5Oopen_by_idx(). Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5Oattribute.c')
-rw-r--r--src/H5Oattribute.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c
index ea0f073..3d3ae2c 100644
--- a/src/H5Oattribute.c
+++ b/src/H5Oattribute.c
@@ -337,8 +337,8 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5O_attr_open_cb(H5O_t UNUSED *oh, H5O_mesg_t *mesg/*in,out*/,
- unsigned UNUSED sequence, unsigned UNUSED *oh_flags_ptr, void *_udata/*in,out*/)
+H5O_attr_open_cb(H5O_t *oh, H5O_mesg_t *mesg/*in,out*/, unsigned sequence,
+ unsigned UNUSED *oh_flags_ptr, void *_udata/*in,out*/)
{
H5O_iter_opn_t *udata = (H5O_iter_opn_t *)_udata; /* Operator user data */
herr_t ret_value = H5_ITER_CONT; /* Return value */
@@ -356,6 +356,10 @@ H5O_attr_open_cb(H5O_t UNUSED *oh, H5O_mesg_t *mesg/*in,out*/,
if(NULL == (udata->attr = H5A_copy(NULL, (H5A_t *)mesg->native)))
HGOTO_ERROR(H5E_ATTR, H5E_CANTCOPY, H5_ITER_ERROR, "unable to copy attribute")
+ /* Assign [somewhat arbitrary] creation order value, for older versions of the format */
+ if(oh->version == H5O_VERSION_1)
+ udata->attr->crt_idx = sequence;
+
/* Stop iterating */
ret_value = H5_ITER_STOP;
} /* end if */