summaryrefslogtreecommitdiffstats
path: root/test/tattr.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/tattr.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/tattr.c')
-rw-r--r--test/tattr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 132af1c..24746fb 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -323,7 +323,8 @@ test_attr_compound_write(void)
ret = H5Tinsert(tid1, ATTR4_FIELDNAME2, attr4_field2_off, H5T_NATIVE_DOUBLE);
CHECK(ret, FAIL, "H5Tinsert");
attr4_field3_off=HOFFSET(struct attr4_struct, c);
- ret = H5Tinsert(tid1, ATTR4_FIELDNAME3, attr4_field3_off, H5T_NATIVE_CHAR);
+ ret = H5Tinsert(tid1, ATTR4_FIELDNAME3, attr4_field3_off,
+ H5T_NATIVE_SCHAR);
CHECK(ret, FAIL, "H5Tinsert");
/* Create dataspace for 1st attribute */
@@ -474,9 +475,9 @@ test_attr_compound_read(void)
class=H5Tget_class(field);
VERIFY(class, H5T_INTEGER, "H5Tget_class");
order=H5Tget_order(field);
- VERIFY(order, H5Tget_order(H5T_NATIVE_CHAR), "H5Tget_order");
+ VERIFY(order, H5Tget_order(H5T_NATIVE_SCHAR), "H5Tget_order");
size=H5Tget_size(field);
- VERIFY(size, H5Tget_size(H5T_NATIVE_CHAR), "H5Tget_size");
+ VERIFY(size, H5Tget_size(H5T_NATIVE_SCHAR), "H5Tget_size");
H5Tclose(field);
/* Read attribute information */