diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-04-10 03:03:30 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-04-10 03:03:30 (GMT) |
commit | 5a2c6b0ae10a93acc8e1fc2c058da5f6f5ee11da (patch) | |
tree | 9525258a8a09b6a1dab203796553f89e785d1d04 /src/H5Goh.c | |
parent | 68ec8c72bc2f58b5a402e82337315b26b85ef7d3 (diff) | |
download | hdf5-5a2c6b0ae10a93acc8e1fc2c058da5f6f5ee11da.zip hdf5-5a2c6b0ae10a93acc8e1fc2c058da5f6f5ee11da.tar.gz hdf5-5a2c6b0ae10a93acc8e1fc2c058da5f6f5ee11da.tar.bz2 |
[svn-r12221] Purpose:
"Hide" file format changes (for now)
Description:
Add ifdef's (controlled by the --enable-group-revision configure flag)
to disable group revision changes to the file format, in order to allow alpha
release to go ahead without releasing an unsupported version into the wild.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Linux 2.4 32-bit (heping)
Linux 2.4 64-bit (mir)
Solaris 2.9 (shanti)
Diffstat (limited to 'src/H5Goh.c')
-rw-r--r-- | src/H5Goh.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5Goh.c b/src/H5Goh.c index c51a493..08d1b25 100644 --- a/src/H5Goh.c +++ b/src/H5Goh.c @@ -81,7 +81,9 @@ htri_t H5O_group_isa(struct H5O_t *oh) { htri_t stab_exists; /* Whether the 'stab' message is in the object header */ +#ifdef H5_GROUP_REVISION htri_t linfo_exists; /* Whether the 'linfo' message is in the object header */ +#endif /* H5_GROUP_REVISION */ htri_t ret_value; /* Return value */ FUNC_ENTER_NOAPI_NOINIT(H5O_group_isa) @@ -91,10 +93,16 @@ H5O_group_isa(struct H5O_t *oh) /* Check for any of the messages that indicate a group */ if((stab_exists = H5O_exists_oh(oh, H5O_STAB_ID, 0)) < 0) HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to read object header") +#ifdef H5_GROUP_REVISION if((linfo_exists = H5O_exists_oh(oh, H5O_LINFO_ID, 0)) < 0) HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to read object header") +#endif /* H5_GROUP_REVISION */ +#ifdef H5_GROUP_REVISION ret_value = (stab_exists > 0 || linfo_exists > 0); +#else /* H5_GROUP_REVISION */ + ret_value = stab_exists > 0; +#endif /* H5_GROUP_REVISION */ done: FUNC_LEAVE_NOAPI(ret_value) |