summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-06-07 18:19:30 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-06-07 18:19:30 (GMT)
commit6881c423a13ae1e7dbf73f1b6fc02d91c71e5947 (patch)
treec711609f726a9b33b383529cf75a1d28efdc56c8 /tools/h5ls.c
parentea779932661939d403495d867dc492f7fe981f02 (diff)
downloadhdf5-6881c423a13ae1e7dbf73f1b6fc02d91c71e5947.zip
hdf5-6881c423a13ae1e7dbf73f1b6fc02d91c71e5947.tar.gz
hdf5-6881c423a13ae1e7dbf73f1b6fc02d91c71e5947.tar.bz2
[svn-r1309] Changes since 19990607
---------------------- ./tools/h5tools.c Finished code which prints references (object and dataset region). Patrick, if you tell me how h5dump should (or might want to) print references I can make some changes to support various formats... You can try it out with: cd test env HDF5_NOCLEANUP=yes ./testhdf5 ../tools/h5ls -dvr trefer1.h5 ../tools/h5ls -dvr trefer2.h5 (run h5ls with no arguments if you forgot what the switches do) ./test/trefer.c Call calloc instead of malloc in one place to prevent uninitialized data from being written into the file.
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index 1dfe647..acd8c9e 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1000,6 +1000,13 @@ dump_dataset_values(hid_t dset)
info.line_ncols = width_g;
info.line_multi_new = 1;
if (label_g) info.cmpd_name = "%s=";
+
+ /*
+ * If a compound datatype is split across multiple lines then indent
+ * the continuation line.
+ */
+ info.line_pre = " %s ";
+ info.line_cont = " %s ";
if (hexdump_g) {
/*
@@ -1018,14 +1025,6 @@ dump_dataset_values(hid_t dset)
info.line_pre =" %s \"";
info.line_suf = "\"";
}
-
-
- /*
- * If a compound datatype is split across multiple lines then add an
- * ellipsis to the beginning of the continuation line.
- */
- info.line_pre = " %s ";
- info.line_cont = " %s ";
/*
* Print all the values.