diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-09 04:14:29 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-09 04:14:29 (GMT) |
commit | 20720af231c875330a6074f65ee1c54e6a806fbb (patch) | |
tree | 64ae80f3ab6b76c09e2c309e76eb161cf133eed4 /hl/test/test_table.c | |
parent | 25d1056dbff92a7662ee73c67596d24906530dbc (diff) | |
download | hdf5-20720af231c875330a6074f65ee1c54e6a806fbb.zip hdf5-20720af231c875330a6074f65ee1c54e6a806fbb.tar.gz hdf5-20720af231c875330a6074f65ee1c54e6a806fbb.tar.bz2 |
[svn-r12735] Description:
Clean up some compiler warnings and resolve some inconsistenceis between
hsize_t and size_t in the interface.
Tested on:
FreeBSD/32 4.11 (sleipnir) w/threadsafe
Linux/32 2.4 (heping) w/FORTRAN & C++
Linux/64 2.4 (mir) w/enable-1.6-compat
Diffstat (limited to 'hl/test/test_table.c')
-rw-r--r-- | hl/test/test_table.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/hl/test/test_table.c b/hl/test/test_table.c index 95d6a60..ff238f7 100644 --- a/hl/test/test_table.c +++ b/hl/test/test_table.c @@ -14,7 +14,6 @@ #include <stdlib.h> #include <string.h> -#include <assert.h> #include "h5hltest.h" #include "H5TBpublic.h" @@ -126,7 +125,8 @@ static int compare_deleted(hsize_t rrecords, hsize_t dstart, hsize_t drecords, *------------------------------------------------------------------------- */ -static int test_table(hid_t fid, int write) +static int +test_table(hid_t fid, int do_write) { /* identifiers */ hid_t fid1; @@ -341,7 +341,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("making table"); @@ -381,7 +381,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("writing records"); @@ -439,7 +439,7 @@ static int test_table(hid_t fid, int write) * we use the original "table1" instead *------------------------------------------------------------------------- */ - if(write) + if(do_write) strcpy(tname,"table2"); else strcpy(tname,"table1"); @@ -466,7 +466,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("appending records"); @@ -512,7 +512,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("inserting records"); @@ -572,7 +572,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("deleting records"); @@ -739,7 +739,7 @@ static int test_table(hid_t fid, int write) *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("adding records"); @@ -799,7 +799,7 @@ static int test_table(hid_t fid, int write) *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("combining tables"); @@ -894,7 +894,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("writing fields by name"); @@ -959,7 +959,7 @@ static int test_table(hid_t fid, int write) * write and read the "Pressure" field *------------------------------------------------------------------------- */ - if (write) + if (do_write) { if (H5TBmake_table(TITLE,fid,"table10",NFIELDS,NRECORDS,type_size_mem, field_names,field_offset,field_type, @@ -993,7 +993,7 @@ static int test_table(hid_t fid, int write) * Write and read the "Latitude,Longitude" fields *------------------------------------------------------------------------- */ - if (write) + if (do_write) { /* Write the new longitude and latitude information to all the records */ start = 0; @@ -1023,7 +1023,7 @@ static int test_table(hid_t fid, int write) * Write and read the "Name,Pressure" fields *------------------------------------------------------------------------- */ - if (write) + if (do_write) { /* Write the new name and pressure information to all the records */ start = 0; @@ -1085,7 +1085,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("writing fields by index"); @@ -1147,7 +1147,7 @@ static int test_table(hid_t fid, int write) TESTING2("reading fields by index"); - if (write) + if (do_write) { /* make an empty table */ if (H5TBmake_table(TITLE,fid,"table12",NFIELDS,NRECORDS,type_size_mem, @@ -1189,7 +1189,7 @@ static int test_table(hid_t fid, int write) * write and read the "Latitude,Longitude" fields *------------------------------------------------------------------------- */ - if (write) + if (do_write) { /* write the new longitude and latitude information to all the records */ nfields = 2; @@ -1222,7 +1222,7 @@ static int test_table(hid_t fid, int write) *------------------------------------------------------------------------- */ - if (write) + if (do_write) { /* write the new name and pressure information to all the records */ nfields = 2; @@ -1293,7 +1293,7 @@ static int test_table(hid_t fid, int write) *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("inserting fields"); @@ -1337,7 +1337,7 @@ static int test_table(hid_t fid, int write) * *------------------------------------------------------------------------- */ - if (write) + if (do_write) { TESTING2("deleting fields"); |