summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_dump.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-09-17 19:41:00 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-09-17 19:41:00 (GMT)
commit3fed3735dba9922e9b0ced19e995039bebd9c5d1 (patch)
tree8c4e2436701e701848c263d5b3a8702f17ab7ce8 /tools/lib/h5tools_dump.c
parentaad17ae135005ca65bac4647d69833c9e5e8fd3e (diff)
downloadhdf5-3fed3735dba9922e9b0ced19e995039bebd9c5d1.zip
hdf5-3fed3735dba9922e9b0ced19e995039bebd9c5d1.tar.gz
hdf5-3fed3735dba9922e9b0ced19e995039bebd9c5d1.tar.bz2
HDFFV-10903 merge updated changes
Diffstat (limited to 'tools/lib/h5tools_dump.c')
-rw-r--r--tools/lib/h5tools_dump.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 8b36280..beb397c 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -2289,6 +2289,14 @@ h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_
h5tools_render_element(stream, info, ctx, buffer, &curr_pos, (size_t)ncols, (hsize_t)0, (hsize_t)0);
H5free_memory(ttag);
+
+ if((size = H5Tget_size(type)) <= 0) {
+ ctx->need_prefix = TRUE;
+
+ h5tools_str_reset(buffer);
+ h5tools_str_append(buffer, "OPAQUE_SIZE \"%s\";", size);
+ h5tools_render_element(stream, info, ctx, buffer, &curr_pos, (size_t)ncols, (hsize_t)0, (hsize_t)0);
+ }
}
ctx->indent_level--;