summaryrefslogtreecommitdiffstats
path: root/test/chunk.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-11-25 17:21:21 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-11-25 17:21:21 (GMT)
commitffcbc32d669a0aabae30ed554a2a10446e69d25d (patch)
treee8e3b0648004b21b900b37ee0da48034d74e662f /test/chunk.c
parent37ce8f33ca1bc4361426b5374a12926b98839b13 (diff)
downloadhdf5-ffcbc32d669a0aabae30ed554a2a10446e69d25d.zip
hdf5-ffcbc32d669a0aabae30ed554a2a10446e69d25d.tar.gz
hdf5-ffcbc32d669a0aabae30ed554a2a10446e69d25d.tar.bz2
[svn-r952] Changes since 19981125
---------------------- ./doc/html/Datatypes.html ./src/H5.c ./src/H5T.c ./src/H5Tconv.c ./src/H5Tpkg.h ./src/H5Tpublic.h ./src/H5detect.c ./test/chunk.c ./test/dtypes.c ./test/h5test.c ./test/mtime.c ./test/tattr.c ./test/th5s.c ./tools/h5dump.c ./tools/h5dumputil.c ./tools/h5import.c ./tools/h5ls.c ./tools/h5toh4.c ./tools/h5tools.c Renamed the old H5T_NATIVE_CHAR type to H5T_NATIVE_SCHAR to denote that it is always signed. Added a new H5T_NATIVE_CHAR type which has the same range, representation, and behavior as either H5T_NATIVE_SCHAR or H5T_NATIVE_UCHAR depending on the compiler and its command-line switches for the application source file which references H5T_NATIVE_CHAR. If source files are compiled with different switches then each source file will resolve H5T_NATIVE_CHAR appropriately so it matches the C type `char' in that source file. NOTE: THERE ARE OTHER DOCUMENTATION FILES THAT I DIDN'T CHANGE BECAUSE I CAN'T MODIFY THE SOURCE. ./test/extend.c Swapped two lines to prevent diagnostic messages from messing up the formatted output.
Diffstat (limited to 'test/chunk.c')
-rw-r--r--test/chunk.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/chunk.c b/test/chunk.c
index e119b0c..5a00535 100644
--- a/test/chunk.c
+++ b/test/chunk.c
@@ -113,7 +113,7 @@ create_dataset (void)
{
hid_t file, space, dcpl, dset;
hsize_t size[2];
- char *buf;
+ signed char *buf;
/* The file */
file = H5Fcreate (FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_g);
@@ -130,12 +130,12 @@ create_dataset (void)
H5Pset_filter (dcpl, FILTER_COUNTER, 0, 0, NULL);
/* The dataset */
- dset = H5Dcreate (file, "dset", H5T_NATIVE_CHAR, space, dcpl);
+ dset = H5Dcreate (file, "dset", H5T_NATIVE_SCHAR, space, dcpl);
assert (dset>=0);
/* The data */
buf = calloc (1, SQUARE (DS_SIZE*CH_SIZE));
- H5Dwrite (dset, H5T_NATIVE_CHAR, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf);
+ H5Dwrite (dset, H5T_NATIVE_SCHAR, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf);
free (buf);
/* Close */
@@ -165,7 +165,7 @@ static double
test_rowmaj (int op, hsize_t cache_size, hsize_t io_size)
{
hid_t file, dset, mem_space, file_space;
- char *buf = calloc (1, SQUARE(io_size));
+ signed char *buf = calloc (1, SQUARE(io_size));
hsize_t i, j, hs_size[2];
hssize_t hs_offset[2];
int mdc_nelmts, rdcc_nelmts;
@@ -200,10 +200,10 @@ test_rowmaj (int op, hsize_t cache_size, hsize_t io_size)
NULL, hs_size, NULL);
if (READ==op) {
- H5Dread (dset, H5T_NATIVE_CHAR, mem_space, file_space,
+ H5Dread (dset, H5T_NATIVE_SCHAR, mem_space, file_space,
H5P_DEFAULT, buf);
} else {
- H5Dwrite (dset, H5T_NATIVE_CHAR, mem_space, file_space,
+ H5Dwrite (dset, H5T_NATIVE_SCHAR, mem_space, file_space,
H5P_DEFAULT, buf);
}
H5Sclose (mem_space);
@@ -243,7 +243,7 @@ test_diag (int op, hsize_t cache_size, hsize_t io_size, hsize_t offset)
hsize_t i, hs_size[2];
hsize_t nio = 0;
hssize_t hs_offset[2];
- char *buf = calloc (1, SQUARE (io_size));
+ signed char *buf = calloc (1, SQUARE (io_size));
int mdc_nelmts, rdcc_nelmts;
double w0;
@@ -268,10 +268,10 @@ test_diag (int op, hsize_t cache_size, hsize_t io_size, hsize_t offset)
H5Sselect_hyperslab (file_space, H5S_SELECT_SET, hs_offset, NULL,
hs_size, NULL);
if (READ==op) {
- H5Dread (dset, H5T_NATIVE_CHAR, mem_space, file_space,
+ H5Dread (dset, H5T_NATIVE_SCHAR, mem_space, file_space,
H5P_DEFAULT, buf);
} else {
- H5Dwrite (dset, H5T_NATIVE_CHAR, mem_space, file_space,
+ H5Dwrite (dset, H5T_NATIVE_SCHAR, mem_space, file_space,
H5P_DEFAULT, buf);
}
H5Sclose (mem_space);