diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-10 19:08:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-03-10 19:08:42 (GMT) |
commit | 753a42edf644632e4a8049ec41fdb5c368b18a21 (patch) | |
tree | 86f455daad34944292c343ac196f1c4a895d5fb8 /src/H5Oainfo.c | |
parent | bb356fd6d19a796bfab4642bed8fdc75b036638a (diff) | |
download | hdf5-753a42edf644632e4a8049ec41fdb5c368b18a21.zip hdf5-753a42edf644632e4a8049ec41fdb5c368b18a21.tar.gz hdf5-753a42edf644632e4a8049ec41fdb5c368b18a21.tar.bz2 |
[svn-r13490] Description:
Move "creation order tracked" flag from "group info" to "link info"
object header message and make the "max. creation order value" optional in the
"link info", if the creation order for links is not tracked.
Also, get rid of unused "index names" flag - names are always indexed
currently.
Tested on:
FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5Oainfo.c')
-rw-r--r-- | src/H5Oainfo.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/H5Oainfo.c b/src/H5Oainfo.c index 7c3183a..655cb5e 100644 --- a/src/H5Oainfo.c +++ b/src/H5Oainfo.c @@ -76,10 +76,9 @@ const H5O_msg_class_t H5O_MSG_AINFO[1] = {{ #define H5O_AINFO_VERSION 0 /* Flags for attribute info flag encoding */ -#define H5O_AINFO_INDEX_NAME 0x01 -#define H5O_AINFO_TRACK_CORDER 0x02 -#define H5O_AINFO_INDEX_CORDER 0x04 -#define H5O_AINFO_ALL_FLAGS (H5O_AINFO_INDEX_NAME | H5O_AINFO_TRACK_CORDER | H5O_AINFO_INDEX_CORDER) +#define H5O_AINFO_TRACK_CORDER 0x01 +#define H5O_AINFO_INDEX_CORDER 0x02 +#define H5O_AINFO_ALL_FLAGS (H5O_AINFO_TRACK_CORDER | H5O_AINFO_INDEX_CORDER) /* Declare a free list to manage the H5O_ainfo_t struct */ H5FL_DEFINE_STATIC(H5O_ainfo_t); @@ -123,7 +122,6 @@ H5O_ainfo_decode(H5F_t *f, hid_t UNUSED dxpl_id, unsigned UNUSED mesg_flags, /* Get the flags for the message */ flags = *p++; - HDassert(flags & H5O_AINFO_INDEX_NAME); if(flags & ~H5O_AINFO_ALL_FLAGS) HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, NULL, "bad flag value for message") ainfo->track_corder = (flags & H5O_AINFO_TRACK_CORDER) ? TRUE : FALSE; @@ -191,8 +189,7 @@ H5O_ainfo_encode(H5F_t *f, hbool_t UNUSED disable_shared, uint8_t *p, const void *p++ = H5O_AINFO_VERSION; /* The flags for the attribute indices */ - flags = H5O_AINFO_INDEX_NAME; /* Names are always indexed */ - flags |= ainfo->track_corder ? H5O_AINFO_TRACK_CORDER : 0; + flags = ainfo->track_corder ? H5O_AINFO_TRACK_CORDER : 0; flags |= ainfo->index_corder ? H5O_AINFO_INDEX_CORDER : 0; *p++ = flags; |