From 20f2faee42d58f5801710b3cbf9bf572f54a052d Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Fri, 10 Dec 1999 10:21:31 -0500 Subject: [svn-r1865] fixed the commited datatype error --- tools/h5dump.c | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/tools/h5dump.c b/tools/h5dump.c index 8ae0340..414d0bf 100644 --- a/tools/h5dump.c +++ b/tools/h5dump.c @@ -771,44 +771,12 @@ done: *-----------------------------------------------------------------------*/ static void dump_named_datatype (hid_t type, const char *name) { -char *fname ; -hid_t nmembers, mtype; -int i, j, ndims, perm[H5DUMP_MAX_RANK]; -size_t dims[H5DUMP_MAX_RANK]; indentation (indent); begin_obj(DATATYPE, name); - - nmembers = H5Tget_nmembers(type); - - for (i = 0; i < nmembers; i++) { - - fname = H5Tget_member_name(type, i); - - mtype = H5Tget_member_type(type, i); - - ndims = H5Tget_member_dims(type, i, dims, perm); - - indentation (indent+COL); - if (H5T_ENUM == H5Tget_class(type)) { - print_datatype(type); - break; - } - else { - print_datatype(mtype); - } - printf (" \"%s\"", fname); - - if (ndims != 1 || dims[0] != 1) { - for (j = 0; j < ndims; j++) - printf("[%d]",dims[j]); - } - - printf (";\n"); - - free (fname); - } - + indentation (indent+COL); + print_datatype(type); + printf("\n"); indentation (indent); end_obj(); } -- cgit v0.12