summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-10-25 19:07:05 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-10-25 19:07:05 (GMT)
commit47c0884e1f5bd4db6862aefcf7cd47c5f28e8d91 (patch)
tree8faf1c15d1331c4b42064597a92a82f3c54bc9ae /tools/h5dump.c
parent057cbbf96c4e4706a1e7458573685e9792e42dad (diff)
downloadhdf5-47c0884e1f5bd4db6862aefcf7cd47c5f28e8d91.zip
hdf5-47c0884e1f5bd4db6862aefcf7cd47c5f28e8d91.tar.gz
hdf5-47c0884e1f5bd4db6862aefcf7cd47c5f28e8d91.tar.bz2
[svn-r2737] Purpose:
Feature Description: Allow dumping of variable length records. This is a first-time stab at this. It doesn't break any tests on my Linux box and it does output the variable length data, but it might look ugly (it doesn't handle new-lines as of yet)...I'm open to suggestions on what should be done next, what new features to add/remove... Platforms tested: Linux
Diffstat (limited to 'tools/h5dump.c')
-rw-r--r--tools/h5dump.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index de4c606..320e361 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -505,6 +505,15 @@ print_datatype(hid_t type)
printf("%s", dump_header_format->enumblockend);
break;
+ case H5T_VLEN: {
+ hid_t super = H5Tget_super(type);
+
+ printf("H5T_VLEN OF ");
+ print_datatype(super);
+ H5Tclose(super);
+ break;
+ }
+
default:
printf("unknown data type");
d_status = 1;
@@ -1134,6 +1143,7 @@ dump_dataset(hid_t did, const char *name)
case H5T_COMPOUND:
case H5T_REFERENCE:
case H5T_ENUM:
+ case H5T_VLEN:
dump_data(did,DATASET_DATA);
break;