diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-07-02 19:07:17 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-07-02 19:07:17 (GMT) |
commit | 072919b9d7fa341c1a886fb92841efa444f0ffae (patch) | |
tree | 923d02f3a1f8aebdbe5d7cd385e888f57b658931 /tools/h5dump/h5dump.c | |
parent | b02d857a99888d795a148b84d951a73672f4b311 (diff) | |
download | hdf5-072919b9d7fa341c1a886fb92841efa444f0ffae.zip hdf5-072919b9d7fa341c1a886fb92841efa444f0ffae.tar.gz hdf5-072919b9d7fa341c1a886fb92841efa444f0ffae.tar.bz2 |
[svn-r8790] Purpose:
Description:
the original code that showed a name for HARDLINK was reassigning that name to a name
made in the dump traversal (made by concatenation by nested objects)
Solution:
removed this reassigmnet
now the name showed after HARDLINK is always the first name found for that object
(this object is printed once interely; subsequent printings show the word HARDLINK
and the first name )
Platforms tested:
linux
AIX
solaris
Misc. update:
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r-- | tools/h5dump/h5dump.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index cfc4955..931f283 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -1232,7 +1232,7 @@ dump_selected_attr(hid_t loc_id, const char *name) dump_oid(attr_id); if (display_data || display_attr_data) - dump_data(attr_id, ATTRIBUTE_DATA, NULL, 0); + dump_data(attr_id, ATTRIBUTE_DATA, NULL, display_ai); H5Tclose(type); H5Sclose(space); @@ -1510,10 +1510,7 @@ dump_all(hid_t group, const char *name, void * op_data) goto done; } else { dset_table->objs[i].displayed = 1; - strcat(tmp, "/"); - strcat(tmp, name); - free(dset_table->objs[i].objname); - dset_table->objs[i].objname = HDstrdup(tmp); + } } @@ -1643,8 +1640,7 @@ dump_group(hid_t gid, const char *name) indentation(indent); printf("%s \"%s\"\n", HARDLINK, group_table->objs[i].objname); } else { - free(group_table->objs[i].objname); - group_table->objs[i].objname = HDstrdup(prefix); + group_table->objs[i].displayed = 1; H5Aiterate(gid, NULL, dump_attr, NULL); H5Giterate(gid, ".", NULL, dump_all, (void *) &xtype); @@ -2874,8 +2870,7 @@ handle_datasets(hid_t fid, char *dset, void *data) end_obj(dump_header_format->datasetend, dump_header_format->datasetblockend); } else { - free(dset_table->objs[idx].objname); - dset_table->objs[idx].objname = HDstrdup(dset); + dset_table->objs[idx].displayed = 1; dump_dataset(dsetid, dset, sset); } |