summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2008-07-08 16:49:17 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2008-07-08 16:49:17 (GMT)
commit9139c12ea0f1bc8fb435dd9565c50186125cf73f (patch)
tree6e37ba4794afdced0470c6a387e467a33ad1cf7c /tools/h5dump
parent78d22e2c4434549b57a312fa96c91c09b37ae7d6 (diff)
downloadhdf5-9139c12ea0f1bc8fb435dd9565c50186125cf73f.zip
hdf5-9139c12ea0f1bc8fb435dd9565c50186125cf73f.tar.gz
hdf5-9139c12ea0f1bc8fb435dd9565c50186125cf73f.tar.bz2
[svn-r15337] Unintended change to h5dump.c. Reverted.
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 76e04b1..aa44cc1 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -894,7 +894,7 @@ print_datatype(hid_t type,unsigned in_group)
is_vlstr = H5Tis_variable_str(tmp_type);
printf("H5T_STRING %s\n", dump_header_format->strblockbegin);
- /*indent += COL;*/
+ indent += COL;
indentation(indent + COL);
if(is_vlstr)
@@ -983,8 +983,8 @@ print_datatype(hid_t type,unsigned in_group)
H5Tclose(str_type);
H5Tclose(tmp_type);
- /*indent -= COL;*/
- indentation(indent/* + COL*/);
+ indent -= COL;
+ indentation(indent + COL);
printf("%s", dump_header_format->strblockend);
break;
@@ -1029,12 +1029,12 @@ print_datatype(hid_t type,unsigned in_group)
mtype = H5Tget_member_type(type, i);
indentation(indent + COL);
- /*if (H5Tget_class(mtype) == H5T_COMPOUND)*/
+ if (H5Tget_class(mtype) == H5T_COMPOUND)
indent += COL;
print_datatype(mtype,0);
- /*if (H5Tget_class(mtype) == H5T_COMPOUND)*/
+ if (H5Tget_class(mtype) == H5T_COMPOUND)
indent -= COL;
printf(" \"%s\";\n", mname);
@@ -1051,23 +1051,21 @@ print_datatype(hid_t type,unsigned in_group)
case H5T_ENUM:
printf("H5T_ENUM %s\n", dump_header_format->enumblockbegin);
- /*indent += COL;*/
+ indent += COL;
indentation(indent + COL);
super = H5Tget_super(type);
print_datatype(super,0);
printf(";\n");
print_enum(type);
- /*indent -= COL;*/
- indentation(indent/* + COL*/);
+ indent -= COL;
+ indentation(indent + COL);
printf("%s", dump_header_format->enumblockend);
break;
case H5T_VLEN:
printf("H5T_VLEN %s ", dump_header_format->vlenblockbegin);
super = H5Tget_super(type);
- indent += COL;
print_datatype(super,0);
- indent -= COL;
H5Tclose(super);
/* Print closing */
@@ -1092,9 +1090,7 @@ print_datatype(hid_t type,unsigned in_group)
printf(" ");
/* Print base type */
- indent += COL;
print_datatype(super,0);
- indent -= COL;
/* Close array base type */
H5Tclose(super);