diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-07-22 18:45:46 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-07-22 18:45:46 (GMT) |
commit | 29a029d7e7c95be8ded8fb4e0989e3711ab7e3dc (patch) | |
tree | 1ade13b398a898accefb0eee491705edff974503 /tools/h5ls.c | |
parent | c638ee56596bc8ff4908d3fb73a6911ad6181d01 (diff) | |
download | hdf5-29a029d7e7c95be8ded8fb4e0989e3711ab7e3dc.zip hdf5-29a029d7e7c95be8ded8fb4e0989e3711ab7e3dc.tar.gz hdf5-29a029d7e7c95be8ded8fb4e0989e3711ab7e3dc.tar.bz2 |
[svn-r529] Changes since 19980722
----------------------
./src/H5.c
Handle hid_t of type H5_TEMPBUF, arguments usually called tbuf_id.
Added array tracing where the array rank is stored in a simple
data space. Just use the name of the data space argument when
declaring the array argument:
herr_t
H5Sselect_hyperslab (hid_t space_id, H5S_seloper_t op,
const hssize_t start[/*space_id*/],
const hsize_t _stride[/*space_id*/],
const hsize_t count[/*space_id*/],
const hsize_t _block[/*space_id*/])
and when the program runs you'll see array values printed:
H5Sselect_hyperslab(space=218103813, op=H5S_SELECT_SET,
start=0xbfffef4c {0}, _stride=NULL,
count=0xbfffef44 {64},
_block=NULL) = SUCCEED;
Added more symbolic data types to the tracing output.
./src/H5A.c
./src/H5Apublic.h
./src/H5D.c
./src/H5Dpublic.h
./src/H5F.c
./src/H5Fpublic.h
./src/H5G.c
./src/H5Gpublic.h
./src/H5P.c
./src/H5Ppublic.h
./src/H5S.c
./src/H5Sall.c
./src/H5Shyper.c
./src/H5Spoint.c
./src/H5Spublic.h
./src/H5Sselect.c
./src/H5Ssimp.c
./src/H5TB.c
./src/H5V.c
Changed some API argument names to be more consistent with
other API functions and to produce better tracing output.
Reformatted some long lines. Indented printf statements.
./tools/h5ls.c
Fixed warnings about unsigned vs. signed comparisons.
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r-- | tools/h5ls.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c index 18a1636..8127d13 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -74,8 +74,8 @@ static void dump_dataset_values(hid_t dset) { hid_t file_space, mem_space, type; - hsize_t start, file_nelmts, mem_nelmts; - hssize_t zero = 0; + hsize_t file_nelmts, mem_nelmts; + hssize_t start, zero=0; unsigned char buf[1024]; hsize_t i; @@ -87,8 +87,10 @@ dump_dataset_values(hid_t dset) file_nelmts = H5Sextent_npoints(file_space); mem_nelmts = sizeof(buf); mem_space = H5Screate_simple(1, &mem_nelmts, NULL); - for (start=0; start<file_nelmts; start+=mem_nelmts) { - mem_nelmts = MIN(mem_nelmts, file_nelmts-start); + for (start=0; + start<(hssize_t)file_nelmts; + start+=(hssize_t)mem_nelmts) { + mem_nelmts = MIN(mem_nelmts, file_nelmts-(hsize_t)start); H5Sselect_hyperslab(file_space, H5S_SELECT_SET, &start, NULL, &mem_nelmts, NULL); H5Sselect_hyperslab(mem_space, H5S_SELECT_SET, &zero, NULL, |