diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-26 02:50:31 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-26 02:50:31 (GMT) |
commit | 3706d53f155e3ac86bc8547c9287bcd857c4eca8 (patch) | |
tree | 346b21f5faf06429015d0587bcbff063ab669d1c /test/dt_arith.c | |
parent | 8f84b136fc7a9eff4354416307ae3acc8f73d038 (diff) | |
download | hdf5-3706d53f155e3ac86bc8547c9287bcd857c4eca8.zip hdf5-3706d53f155e3ac86bc8547c9287bcd857c4eca8.tar.gz hdf5-3706d53f155e3ac86bc8547c9287bcd857c4eca8.tar.bz2 |
[svn-r14156] Description:
Add API versioning to H5Tcommit()
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
AIX/32 5.3 (copper) w/FORTRAN, w/parallel, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'test/dt_arith.c')
-rw-r--r-- | test/dt_arith.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/dt_arith.c b/test/dt_arith.c index 52fd5bf..e27176d 100644 --- a/test/dt_arith.c +++ b/test/dt_arith.c @@ -979,29 +979,29 @@ test_derived_flt(void) goto error; } - if(H5Tset_ebias(tid1, 511)<0) { + if(H5Tset_ebias(tid1, 511) < 0) { H5_FAILED(); printf("Can't set exponent bias\n"); goto error; } - if(H5Tset_pad(tid1, H5T_PAD_ZERO, H5T_PAD_ZERO)<0) { + if(H5Tset_pad(tid1, H5T_PAD_ZERO, H5T_PAD_ZERO) < 0) { H5_FAILED(); printf("Can't set padding\n"); goto error; } - if(H5Tcommit(file, "new float type 1", tid1)<0) { + if(H5Tcommit2(file, "new float type 1", tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't set inpad\n"); goto error; } - if(H5Tclose(tid1)<0) { + if(H5Tclose(tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } - if((tid1 = H5Topen(file, "new float type 1"))<0) { + if((tid1 = H5Topen(file, "new float type 1")) < 0) { H5_FAILED(); printf("Can't open datatype\n"); goto error; @@ -1141,29 +1141,29 @@ test_derived_flt(void) printf("Can't set size\n"); goto error; } - if(H5Tset_ebias(tid2, 63)<0) { + if(H5Tset_ebias(tid2, 63) < 0) { H5_FAILED(); printf("Can't set size\n"); goto error; } - if(H5Tset_pad(tid2, H5T_PAD_ZERO, H5T_PAD_ZERO)<0) { + if(H5Tset_pad(tid2, H5T_PAD_ZERO, H5T_PAD_ZERO) < 0) { H5_FAILED(); printf("Can't set padding\n"); goto error; } - if(H5Tcommit(file, "new float type 2", tid2)<0) { + if(H5Tcommit2(file, "new float type 2", tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't set inpad\n"); goto error; } - if(H5Tclose(tid2)<0) { + if(H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } - if((tid2 = H5Topen(file, "new float type 2"))<0) { + if((tid2 = H5Topen(file, "new float type 2")) < 0) { H5_FAILED(); printf("Can't open datatype\n"); goto error; @@ -1403,31 +1403,31 @@ test_derived_integer(void) goto error; } - if(H5Tset_precision(tid1,24)<0) { + if(H5Tset_precision(tid1, 24) < 0) { H5_FAILED(); printf("Can't set precision\n"); goto error; } - if(H5Tset_order(tid1, H5T_ORDER_BE)<0) { + if(H5Tset_order(tid1, H5T_ORDER_BE) < 0) { H5_FAILED(); printf("Can't set order\n"); goto error; } - if(H5Tcommit(file, "new integer type 1", tid1)<0) { + if(H5Tcommit2(file, "new integer type 1", tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit data type\n"); goto error; } - if(H5Tclose(tid1)<0) { + if(H5Tclose(tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } - if((tid1 = H5Topen(file, "new integer type 1"))<0) { + if((tid1 = H5Topen(file, "new integer type 1")) < 0) { H5_FAILED(); printf("Can't open datatype\n"); goto error; @@ -1468,31 +1468,31 @@ test_derived_integer(void) goto error; } - if(H5Tset_offset(tid2,10)<0) { + if(H5Tset_offset(tid2, 10) < 0) { H5_FAILED(); printf("Can't set offset\n"); goto error; } - if(H5Tset_sign(tid2,H5T_SGN_2)<0) { + if(H5Tset_sign(tid2, H5T_SGN_2) < 0) { H5_FAILED(); printf("Can't set offset\n"); goto error; } - if(H5Tcommit(file, "new integer type 2", tid2)<0) { + if(H5Tcommit2(file, "new integer type 2", tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit data type\n"); goto error; } - if(H5Tclose(tid2)<0) { + if(H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } - if((tid2 = H5Topen(file, "new integer type 2"))<0) { + if((tid2 = H5Topen(file, "new integer type 2")) < 0) { H5_FAILED(); printf("Can't open datatype\n"); goto error; |