diff options
author | Robb Matzke <matzke@llnl.gov> | 2002-04-05 22:04:00 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 2002-04-05 22:04:00 (GMT) |
commit | b463d330aab3148e9e4f0bf15d5a7274b82ea130 (patch) | |
tree | 416607432020c89814fc20ab680d712aa8b51f83 /tools | |
parent | 83f1475d94988d24382fefd15eadaf25506cbbf4 (diff) | |
download | hdf5-b463d330aab3148e9e4f0bf15d5a7274b82ea130.zip hdf5-b463d330aab3148e9e4f0bf15d5a7274b82ea130.tar.gz hdf5-b463d330aab3148e9e4f0bf15d5a7274b82ea130.tar.bz2 |
[svn-r5146] ./hdf5-1.4/tools/h5ls/h5ls.c
Merged minor h5ls bugfix from development branch.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5ls/h5ls.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index e5cd9a5..5fd7df6 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -707,10 +707,7 @@ static hbool_t display_cmpd_type(hid_t type, int ind) { char *name=NULL; /*member name */ - int ndims; /*dimensionality */ - hsize_t dims[H5S_MAX_RANK]; /*dimensions */ size_t size; /*total size of type in bytes */ - int perm[H5S_MAX_RANK]; /*index permutation */ hid_t subtype; /*member data type */ int i, j, n; /*miscellaneous counters */ @@ -727,37 +724,8 @@ display_cmpd_type(hid_t type, int ind) (unsigned long)H5Tget_member_offset(type, i)); free(name); - /* Grab member's type */ + /* Member's type */ subtype = H5Tget_member_type(type, i); - - /* Dimensions and permutation */ - if(H5Tget_class(subtype)==H5T_ARRAY) { - ndims = H5Tget_array_ndims(subtype); - H5Tget_array_dims(subtype, dims, perm); - } /* end if */ - else - ndims=0; - - if (ndims>0) { - printf("["); - for (j=0; j<ndims; j++) - printf("%s%lu", j?",":"", (unsigned long)(dims[j])); - printf("]"); - - for (j=0; j<ndims; j++) - if (perm[j]!=j) - break; - - if (j<ndims) { - printf("x["); - for (j=0; j<ndims; j++) - printf("%s%d", j?",":"", perm[j]); - printf("]"); - } - printf(" "); - } - - /* Data type */ display_type(subtype, ind+4); H5Tclose(subtype); } |