summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-10-01 21:56:00 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-10-01 21:56:00 (GMT)
commitcc0d72bfe7a033fa1935b347a699d49bb4cd95c8 (patch)
treed90773022a62e7887d10bdcf43fb612ca6a8d066
parent9eb5c310a0cfbd0092529aea3b7b34c29ecb9b65 (diff)
downloadhdf5-cc0d72bfe7a033fa1935b347a699d49bb4cd95c8.zip
hdf5-cc0d72bfe7a033fa1935b347a699d49bb4cd95c8.tar.gz
hdf5-cc0d72bfe7a033fa1935b347a699d49bb4cd95c8.tar.bz2
[svn-r1709] *** empty log message ***
-rw-r--r--tools/h5dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index 18a030f..0c20cd4 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -594,7 +594,7 @@ H5G_stat_t statbuf;
space = H5Aget_space(attr_id);
dump_datatype(type);
dump_dataspace(space);
- if(display_oid){
+ if (display_oid){
dump_oid(attr_id);
}
if (display_data) dump_data(attr_id, ATTRIBUTE_DATA);
@@ -849,7 +849,9 @@ int i;
indentation (indent);
begin_obj(GROUPNAME, name);
indent += COL;
- dump_oid(gid);
+ if (display_oid) {
+ dump_oid(gid);
+ }
if (!strcmp(name,"/") && unamedtype) { /* dump unamed type in root group */
for (i = 0; i < type_table.nobjs; i++)
if (!type_table.objs[i].recorded) {
@@ -1729,6 +1731,8 @@ static void print_enum(hid_t type){
*-----------------------------------------------------------------------*/
static void
dump_oid(hid_t oid){
+
+
indent += COL;
indentation (indent);