summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-06-16 19:38:26 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-06-16 19:38:26 (GMT)
commit53916f4e5935ae7c36d7dd6e04d1c5e51b7e78ea (patch)
tree76c6163d98ac715ddec1dfe4fa69f8f2753636a0 /test/tattr.c
parenta639a5998c7bc5d9f00f95e0ee4157950b5e49eb (diff)
downloadhdf5-53916f4e5935ae7c36d7dd6e04d1c5e51b7e78ea.zip
hdf5-53916f4e5935ae7c36d7dd6e04d1c5e51b7e78ea.tar.gz
hdf5-53916f4e5935ae7c36d7dd6e04d1c5e51b7e78ea.tar.bz2
[svn-r428] Changes since 19980612
---------------------- ./src/H5Tbit.c ./MANIFEST ./test/Makefile.in ./test/bittests.c NEW Finished the bit vector operations and added test cases. ./src/H5Tconv.c ./test/dtypes.c Finished integer->integer general conversion and added test cases. Overflows and underflows are handled by substituting the closest possible value. Examples: (unsigned)0xffff -> (unsigned) 0xff ( signed)0xffff -> (unsigned)0x0000 (unsigned)0xffff -> ( signed)0x7fff ( signed)0x7fff -> ( signed) 0x7f ( signed)0xbfff -> ( signed) 0xbf ( signed)0x8000 -> ( signed) 0x80 ./src/H5private.h Added definitions for MIN and MAX that take 3 or 4 arguments: MIN3(), MIN4(), MAX3(), MAX4(). Also added MIN2() and MAX2() as aliases for MIN() and MAX(). ./test/tattr.c Removed some redundant `&' operators. ./configure.in ./src/H5config.h.in [regenerated] ./src/H5.c Fixed warnings on DEC where long double is the same as double.
Diffstat (limited to 'test/tattr.c')
-rw-r--r--test/tattr.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 16cfdf3..1eae9b5 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -134,7 +134,7 @@ test_attr_basic_write(void)
VERIFY(ret, FAIL, "H5Acreate");
/* Write attribute information */
- ret=H5Awrite(attr,H5T_NATIVE_INT32,&attr_data1);
+ ret=H5Awrite(attr,H5T_NATIVE_INT32,attr_data1);
CHECK(ret, FAIL, "H5Awrite");
/* Close attribute */
@@ -167,7 +167,7 @@ test_attr_basic_write(void)
VERIFY(ret, FAIL, "H5Acreate");
/* Write attribute information */
- ret=H5Awrite(attr,H5T_NATIVE_INT32,&attr_data2);
+ ret=H5Awrite(attr,H5T_NATIVE_INT32,attr_data2);
CHECK(ret, FAIL, "H5Awrite");
/* Close attribute */
@@ -224,7 +224,7 @@ test_attr_basic_read(void)
CHECK(attr, FAIL, "H5Aopen_name");
/* Read attribute information */
- ret=H5Aread(attr,H5T_NATIVE_INT32,&read_data1);
+ ret=H5Aread(attr,H5T_NATIVE_INT32,read_data1);
CHECK(ret, FAIL, "H5Aread");
/* Verify values read in */
@@ -253,7 +253,7 @@ test_attr_basic_read(void)
CHECK(attr, FAIL, "H5Aopen_name");
/* Read attribute information */
- ret=H5Aread(attr,H5T_NATIVE_INT32,&read_data2);
+ ret=H5Aread(attr,H5T_NATIVE_INT32,read_data2);
CHECK(ret, FAIL, "H5Aread");
/* Verify values read in */
@@ -339,7 +339,7 @@ test_attr_compound_write(void)
VERIFY(ret, FAIL, "H5Acreate");
/* Write complex attribute data */
- ret=H5Awrite(attr,tid1,&attr_data4);
+ ret=H5Awrite(attr,tid1,attr_data4);
CHECK(ret, FAIL, "H5Awrite");
/* Close attribute */
@@ -480,7 +480,7 @@ test_attr_compound_read(void)
H5Tclose(field);
/* Read attribute information */
- ret=H5Aread(attr,type,&read_data4);
+ ret=H5Aread(attr,type,read_data4);
CHECK(ret, FAIL, "H5Aread");
/* Verify values read in */
@@ -681,7 +681,7 @@ test_attr_mult_write(void)
VERIFY(ret, FAIL, "H5Acreate");
/* Write 1st attribute data */
- ret=H5Awrite(attr,H5T_NATIVE_INT32,&attr_data1);
+ ret=H5Awrite(attr,H5T_NATIVE_INT32,attr_data1);
CHECK(ret, FAIL, "H5Awrite");
/* Close 1st attribute */
@@ -705,7 +705,7 @@ test_attr_mult_write(void)
VERIFY(ret, FAIL, "H5Acreate");
/* Write 2nd attribute information */
- ret=H5Awrite(attr,H5T_NATIVE_INT32,&attr_data2);
+ ret=H5Awrite(attr,H5T_NATIVE_INT32,attr_data2);
CHECK(ret, FAIL, "H5Awrite");
/* Close 2nd attribute */
@@ -729,7 +729,7 @@ test_attr_mult_write(void)
VERIFY(ret, FAIL, "H5Acreate");
/* Write 3rd attribute information */
- ret=H5Awrite(attr,H5T_NATIVE_DOUBLE,&attr_data3);
+ ret=H5Awrite(attr,H5T_NATIVE_DOUBLE,attr_data3);
CHECK(ret, FAIL, "H5Awrite");
/* Close 3rd attribute */
@@ -819,7 +819,7 @@ test_attr_mult_read(void)
H5Tclose(type);
/* Read attribute information */
- ret=H5Aread(attr,H5T_NATIVE_INT32,&read_data1);
+ ret=H5Aread(attr,H5T_NATIVE_INT32,read_data1);
CHECK(ret, FAIL, "H5Aread");
/* Verify values read in */
@@ -884,7 +884,7 @@ test_attr_mult_read(void)
H5Tclose(type);
/* Read attribute information */
- ret=H5Aread(attr,H5T_NATIVE_INT32,&read_data2);
+ ret=H5Aread(attr,H5T_NATIVE_INT32,read_data2);
CHECK(ret, FAIL, "H5Aread");
/* Verify values read in */
@@ -954,7 +954,7 @@ test_attr_mult_read(void)
H5Tclose(type);
/* Read attribute information */
- ret=H5Aread(attr,H5T_NATIVE_DOUBLE,&read_data3);
+ ret=H5Aread(attr,H5T_NATIVE_DOUBLE,read_data3);
CHECK(ret, FAIL, "H5Aread");
/* Verify values read in */