diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-27 13:34:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-27 13:34:28 (GMT) |
commit | fefbe61aca1a42e716e900be7af5b382be5e19c1 (patch) | |
tree | dbb600c8b6555569a4d94ff69b24e72c4787693d /tools/lib/h5tools_utils.c | |
parent | 538d37a1bcc15a600c71fad0566d8480c2344ee6 (diff) | |
download | hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.zip hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.tar.gz hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.tar.bz2 |
[svn-r11304] Purpose:
Code cleanup (sorta)
Description:
Adjust H5G_stat_t to prepare for eventual "external link" information.
This also puts the information for regular objects and soft links into more
obviously separate places.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Linux 2.4
Diffstat (limited to 'tools/lib/h5tools_utils.c')
-rw-r--r-- | tools/lib/h5tools_utils.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index 8516242..764d8b2 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -491,11 +491,11 @@ find_objs_cb(hid_t group, const char *name, void *op_data) char *tmp; case H5G_GROUP: - if (search_obj(info->group_table, statbuf.objno) == NULL) { + if (search_obj(info->group_table, statbuf.u.obj.objno) == NULL) { char *old_prefix; tmp = build_obj_path_name(info->prefix, name); - add_obj(info->group_table, statbuf.objno, tmp, TRUE); + add_obj(info->group_table, statbuf.u.obj.objno, tmp, TRUE); old_prefix = info->prefix; info->prefix = tmp; @@ -508,11 +508,11 @@ find_objs_cb(hid_t group, const char *name, void *op_data) break; case H5G_DATASET: - if (search_obj(info->dset_table, statbuf.objno) == NULL) { + if (search_obj(info->dset_table, statbuf.u.obj.objno) == NULL) { hid_t dset; tmp = build_obj_path_name(info->prefix, name); - add_obj(info->dset_table, statbuf.objno, tmp, TRUE); + add_obj(info->dset_table, statbuf.u.obj.objno, tmp, TRUE); if ((dset = H5Dopen (group, name)) >= 0) { hid_t type; @@ -522,10 +522,10 @@ find_objs_cb(hid_t group, const char *name, void *op_data) if (H5Tcommitted(type) > 0) { H5Gget_objinfo(type, ".", TRUE, &statbuf); - if (search_obj(info->type_table, statbuf.objno) == NULL) { + if (search_obj(info->type_table, statbuf.u.obj.objno) == NULL) { char *type_name = HDstrdup(tmp); - add_obj(info->type_table, statbuf.objno, type_name, FALSE); + add_obj(info->type_table, statbuf.u.obj.objno, type_name, FALSE); } /* end if */ } @@ -542,8 +542,8 @@ find_objs_cb(hid_t group, const char *name, void *op_data) obj_t *found_obj; tmp = build_obj_path_name(info->prefix, name); - if ((found_obj = search_obj(info->type_table, statbuf.objno)) == NULL) - add_obj(info->type_table, statbuf.objno, tmp, TRUE); + if ((found_obj = search_obj(info->type_table, statbuf.u.obj.objno)) == NULL) + add_obj(info->type_table, statbuf.u.obj.objno, tmp, TRUE); else { /* Use latest version of name */ HDfree(found_obj->objname); |