diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 18:50:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 18:50:06 (GMT) |
commit | ae1379094b71c51342772397af5caca088862a61 (patch) | |
tree | e79cb67a1227bfdec099f62e9df22917213b8a7d /tools/test/h5repack/h5repacktst.c | |
parent | d24f5d5223731d507b51d112ba564d764d6d6c18 (diff) | |
download | hdf5-ae1379094b71c51342772397af5caca088862a61.zip hdf5-ae1379094b71c51342772397af5caca088862a61.tar.gz hdf5-ae1379094b71c51342772397af5caca088862a61.tar.bz2 |
hbool_t/TRUE/FALSE --> bool/true/false in tools (#3491)
Diffstat (limited to 'tools/test/h5repack/h5repacktst.c')
-rw-r--r-- | tools/test/h5repack/h5repacktst.c | 184 |
1 files changed, 92 insertions, 92 deletions
diff --git a/tools/test/h5repack/h5repacktst.c b/tools/test/h5repack/h5repacktst.c index 00a7ae2..6fa2d8d 100644 --- a/tools/test/h5repack/h5repacktst.c +++ b/tools/test/h5repack/h5repacktst.c @@ -182,7 +182,7 @@ main(void) h5_stat_t file_stat; h5_stat_size_t fsize1, fsize2; /* file sizes */ - hbool_t driver_is_parallel; + bool driver_is_parallel; #if defined(H5_HAVE_FILTER_SZIP) int szip_can_encode = 0; #endif @@ -224,7 +224,7 @@ main(void) j = 0; /* #0 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(fname, FSPACE_OUT, &pack_options) < 0) @@ -241,10 +241,10 @@ main(void) ++j; /* #1 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; pack_options.fs_strategy = H5F_FSPACE_STRATEGY_NONE; - pack_options.fs_persist = -1; /* "FALSE" is set via -P 0 */ + pack_options.fs_persist = -1; /* "false" is set via -P 0 */ pack_options.fs_threshold = 1; pack_options.fs_pagesize = 8192; if (h5repack(fname, FSPACE_OUT, &pack_options) < 0) @@ -261,7 +261,7 @@ main(void) ++j; /* #2 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; pack_options.fs_strategy = (H5F_fspace_strategy_t)-1; /* "FSM_AGGR" specified via -S FSM_AGGR */ pack_options.fs_threshold = -1; /* "0" specified via -T 0 */ @@ -280,10 +280,10 @@ main(void) ++j; /* #3 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, TRUE) < 0) + if (h5repack_init(&pack_options, 0, true) < 0) GOERROR; pack_options.fs_strategy = H5F_FSPACE_STRATEGY_PAGE; /* "PAGE" specified via -S */ - pack_options.fs_persist = TRUE; + pack_options.fs_persist = true; if (h5repack(fname, FSPACE_OUT, &pack_options) < 0) GOERROR; if (h5diff(fname, FSPACE_OUT, NULL, NULL, &diff_options) > 0) @@ -298,9 +298,9 @@ main(void) ++j; /* #4 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, TRUE) < 0) + if (h5repack_init(&pack_options, 0, true) < 0) GOERROR; - pack_options.fs_persist = -1; /* "FALSE" is set via -P 0 */ + pack_options.fs_persist = -1; /* "false" is set via -P 0 */ pack_options.fs_threshold = 2; if (h5repack(fname, FSPACE_OUT, &pack_options) < 0) GOERROR; @@ -316,7 +316,7 @@ main(void) ++j; /* #5 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, TRUE) < 0) + if (h5repack_init(&pack_options, 0, true) < 0) GOERROR; pack_options.fs_strategy = H5F_FSPACE_STRATEGY_PAGE; pack_options.fs_pagesize = 8192; @@ -334,10 +334,10 @@ main(void) ++j; /* #6 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; pack_options.fs_strategy = H5F_FSPACE_STRATEGY_NONE; - pack_options.fs_persist = -1; /* "FALSE" is set via -P 0 */ + pack_options.fs_persist = -1; /* "false" is set via -P 0 */ pack_options.fs_threshold = 1; pack_options.fs_pagesize = 8192; if (h5repack(fname, FSPACE_OUT, &pack_options) < 0) @@ -354,7 +354,7 @@ main(void) ++j; /* #7 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); fname = H5REPACK_FSPACE_FNAMES[j]; - if (h5repack_init(&pack_options, 0, TRUE) < 0) + if (h5repack_init(&pack_options, 0, true) < 0) GOERROR; pack_options.fs_strategy = H5F_FSPACE_STRATEGY_AGGR; pack_options.fs_threshold = 1; @@ -376,7 +376,7 @@ main(void) */ TESTING(" copy of datasets (fill values)"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME0, FNAME0OUT, &pack_options) < 0) GOERROR; @@ -396,7 +396,7 @@ main(void) */ if (!driver_is_parallel) { TESTING(" copy of datasets (all datatypes)"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME1, FNAME1OUT, &pack_options) < 0) GOERROR; @@ -416,7 +416,7 @@ main(void) *------------------------------------------------------------------------- */ TESTING(" copy of datasets (attributes)"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME2, FNAME2OUT, &pack_options) < 0) GOERROR; @@ -435,7 +435,7 @@ main(void) *------------------------------------------------------------------------- */ TESTING(" copy of datasets (hardlinks)"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME3, FNAME3OUT, &pack_options) < 0) GOERROR; @@ -455,7 +455,7 @@ main(void) *------------------------------------------------------------------------- */ TESTING(" copy of allocation early file"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME5, FNAME5OUT, &pack_options) < 0) GOERROR; @@ -485,7 +485,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset1:GZIP=9", &pack_options) < 0) GOERROR; @@ -512,7 +512,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, TRUE) < 0) + if (h5repack_init(&pack_options, 0, true) < 0) GOERROR; if (h5repack_addfilter("dset1:GZIP=9", &pack_options) < 0) GOERROR; @@ -540,7 +540,7 @@ main(void) #ifdef H5_HAVE_FILTER_DEFLATE - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("GZIP=1", &pack_options) < 0) GOERROR; @@ -577,7 +577,7 @@ main(void) */ if (szip_can_encode) { - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset2:SZIP=8,EC", &pack_options) < 0) GOERROR; @@ -609,7 +609,7 @@ main(void) #if defined(H5_HAVE_FILTER_SZIP) if (szip_can_encode) { - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("SZIP=8,NN", &pack_options) < 0) GOERROR; @@ -638,7 +638,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset1:SHUF", &pack_options) < 0) GOERROR; @@ -662,7 +662,7 @@ main(void) TESTING(" adding shuffle filter to all"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("SHUF", &pack_options) < 0) GOERROR; @@ -685,7 +685,7 @@ main(void) * test an individual object option *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset1:FLET", &pack_options) < 0) GOERROR; @@ -708,7 +708,7 @@ main(void) */ TESTING(" adding checksum filter to all"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("FLET", &pack_options) < 0) GOERROR; @@ -732,7 +732,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset1:CHUNK 20x10", &pack_options) < 0) GOERROR; @@ -771,7 +771,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset1:CHUNK=20x10", &pack_options) < 0) GOERROR; @@ -793,7 +793,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, TRUE) < 0) + if (h5repack_init(&pack_options, 0, true) < 0) GOERROR; if (h5repack_addlayout("dset1:CHUNK=20x10", &pack_options) < 0) GOERROR; @@ -813,7 +813,7 @@ main(void) */ TESTING(" adding layout chunked to all"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("CHUNK=20x10", &pack_options) < 0) GOERROR; @@ -834,7 +834,7 @@ main(void) * test an individual object option *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset1:CONTI", &pack_options) < 0) GOERROR; @@ -855,7 +855,7 @@ main(void) * test all objects option *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("CONTI", &pack_options) < 0) GOERROR; @@ -872,7 +872,7 @@ main(void) * do the same test for a file with filters (chunked) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("CONTI", &pack_options) < 0) GOERROR; @@ -894,7 +894,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset1:COMPA", &pack_options) < 0) GOERROR; @@ -915,7 +915,7 @@ main(void) *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("COMPA", &pack_options) < 0) GOERROR; @@ -936,7 +936,7 @@ main(void) * layout compact to contiguous conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_compact:CONTI", &pack_options) < 0) GOERROR; @@ -956,7 +956,7 @@ main(void) * layout compact to chunk conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_compact:CHUNK=2x5", &pack_options) < 0) GOERROR; @@ -976,7 +976,7 @@ main(void) * layout compact to compact conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_compact:COMPA", &pack_options) < 0) GOERROR; @@ -995,7 +995,7 @@ main(void) * layout contiguous to compact conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_contiguous:COMPA", &pack_options) < 0) GOERROR; @@ -1014,7 +1014,7 @@ main(void) * layout contiguous to chunk conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_contiguous:CHUNK=3x6", &pack_options) < 0) GOERROR; @@ -1034,7 +1034,7 @@ main(void) * layout contiguous to contiguous conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_contiguous:CONTI", &pack_options) < 0) GOERROR; @@ -1053,7 +1053,7 @@ main(void) * layout chunked to compact conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_chunk:COMPA", &pack_options) < 0) GOERROR; @@ -1073,7 +1073,7 @@ main(void) * layout chunked to contiguous conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_chunk:CONTI", &pack_options) < 0) GOERROR; @@ -1092,7 +1092,7 @@ main(void) * layout chunked to chunked conversion *------------------------------------------------------------------------- */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addlayout("dset_chunk:CHUNK=18x13", &pack_options) < 0) GOERROR; @@ -1119,7 +1119,7 @@ main(void) #if defined(H5_HAVE_FILTER_SZIP) if (szip_can_encode) { - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME7, FNAME7OUT, &pack_options) < 0) GOERROR; @@ -1145,7 +1145,7 @@ main(void) #if defined(H5_HAVE_FILTER_SZIP) if (szip_can_encode) { - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_szip:NONE", &pack_options) < 0) GOERROR; @@ -1170,7 +1170,7 @@ main(void) TESTING(" copy of deflate filter"); #ifdef H5_HAVE_FILTER_DEFLATE - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME8, FNAME8OUT, &pack_options) < 0) GOERROR; @@ -1189,7 +1189,7 @@ main(void) TESTING(" removing deflate filter"); #ifdef H5_HAVE_FILTER_DEFLATE - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_deflate:NONE", &pack_options) < 0) GOERROR; @@ -1209,7 +1209,7 @@ main(void) TESTING(" copy of shuffle filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME9, FNAME9OUT, &pack_options) < 0) GOERROR; @@ -1224,7 +1224,7 @@ main(void) TESTING(" removing shuffle filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_shuffle:NONE", &pack_options) < 0) GOERROR; @@ -1241,7 +1241,7 @@ main(void) TESTING(" copy of fletcher filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME10, FNAME10OUT, &pack_options) < 0) GOERROR; @@ -1256,7 +1256,7 @@ main(void) TESTING(" removing fletcher filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_fletcher32:NONE", &pack_options) < 0) GOERROR; @@ -1273,7 +1273,7 @@ main(void) TESTING(" copy of nbit filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME12, FNAME12OUT, &pack_options) < 0) GOERROR; @@ -1288,7 +1288,7 @@ main(void) TESTING(" removing nbit filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_nbit:NONE", &pack_options) < 0) GOERROR; @@ -1305,7 +1305,7 @@ main(void) TESTING(" adding nbit filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_int31:NBIT", &pack_options) < 0) GOERROR; @@ -1322,7 +1322,7 @@ main(void) TESTING(" copy of scaleoffset filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME13, FNAME13OUT, &pack_options) < 0) GOERROR; @@ -1337,7 +1337,7 @@ main(void) TESTING(" removing scaleoffset filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_scaleoffset:NONE", &pack_options) < 0) GOERROR; @@ -1354,7 +1354,7 @@ main(void) TESTING(" adding scaleoffset filter"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_none:SOFF=31,IN", &pack_options) < 0) GOERROR; @@ -1383,7 +1383,7 @@ main(void) #if defined(H5_HAVE_FILTER_SZIP) && defined(H5_HAVE_FILTER_DEFLATE) if (szip_can_encode) { - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_deflate:SZIP=8,NN", &pack_options) < 0) GOERROR; @@ -1410,7 +1410,7 @@ main(void) #if defined(H5_HAVE_FILTER_SZIP) && defined(H5_HAVE_FILTER_DEFLATE) if (szip_can_encode) { - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("dset_szip:GZIP=1", &pack_options) < 0) GOERROR; @@ -1441,7 +1441,7 @@ main(void) #if defined(H5_HAVE_FILTER_SZIP) && defined(H5_HAVE_FILTER_DEFLATE) - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("NONE", &pack_options) < 0) GOERROR; @@ -1465,7 +1465,7 @@ main(void) */ TESTING(" big file"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME14, FNAME14OUT, &pack_options) < 0) GOERROR; @@ -1482,7 +1482,7 @@ main(void) *------------------------------------------------------------------------- */ TESTING(" external datasets"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME15, FNAME15OUT, &pack_options) < 0) GOERROR; @@ -1500,7 +1500,7 @@ main(void) *------------------------------------------------------------------------- */ TESTING(" file with userblock"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME16, FNAME16OUT, &pack_options) < 0) GOERROR; @@ -1521,7 +1521,7 @@ main(void) */ if (!driver_is_parallel) { TESTING(" latest file format options"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; pack_options.latest = 1; pack_options.grp_compact = 10; @@ -1551,7 +1551,7 @@ main(void) #if defined(H5_HAVE_FILTER_DEFLATE) - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack_addfilter("GZIP=1", &pack_options) < 0) GOERROR; @@ -1580,7 +1580,7 @@ main(void) #ifdef H5_HAVE_FILTER_DEFLATE - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; /* add the options for a user block size and user block filename */ @@ -1612,7 +1612,7 @@ main(void) #ifdef H5_HAVE_FILTER_DEFLATE - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; /* add the options for alignment */ @@ -1663,7 +1663,7 @@ main(void) */ TESTING(" file with committed datatypes"); - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME17, FNAME17OUT, &pack_options) < 0) @@ -1690,7 +1690,7 @@ main(void) /* First run without metadata option. No need to verify the correctness */ /* since this has been verified by earlier tests. Just record the file */ /* size of the output file. */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; if (h5repack(FNAME4, FNAME4OUT, &pack_options) < 0) GOERROR; @@ -1701,7 +1701,7 @@ main(void) GOERROR; /* run it again with metadata option */ - if (h5repack_init(&pack_options, 0, FALSE) < 0) + if (h5repack_init(&pack_options, 0, false) < 0) GOERROR; pack_options.meta_block_size = 8192; if (h5repack(FNAME4, FNAME4OUT, &pack_options) < 0) @@ -1762,7 +1762,7 @@ make_testfiles(void) hid_t fcpl = H5I_INVALID_HID; /* File creation property list */ hid_t fapl = H5I_INVALID_HID; /* File access property list */ unsigned j; /* Local index variable */ - hbool_t driver_is_parallel; + bool driver_is_parallel; if (h5_using_parallel_driver(H5P_DEFAULT, &driver_is_parallel) < 0) return -1; @@ -2026,7 +2026,7 @@ make_testfiles(void) /* * #0 -- h5repack_latest.h5 - * default: strategy=FSM_AGGR, persist=FALSE, threshold=1 + * default: strategy=FSM_AGGR, persist=false, threshold=1 * default: inpage=4096 */ j = 0; @@ -2037,7 +2037,7 @@ make_testfiles(void) /* * #1 -- h5repack_default.h5 - * default: strategy=FSM_AGGR, persist=FALSE, threshold=1 + * default: strategy=FSM_AGGR, persist=false, threshold=1 * default: inpage=4096 */ assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); @@ -2050,7 +2050,7 @@ make_testfiles(void) /* * #2 -- h5repack_page_persist.h5 * Setting: - * strategy=PAGE, persist=TRUE, threshold=1 + * strategy=PAGE, persist=true, threshold=1 * inpage=512 * latest format */ @@ -2059,7 +2059,7 @@ make_testfiles(void) return -1; if (H5Pset_file_space_page_size(fcpl, (hsize_t)512) < 0) return -1; - if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, TRUE, (hsize_t)1) < 0) + if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, true, (hsize_t)1) < 0) return -1; assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); if ((fid = H5Fcreate(H5REPACK_FSPACE_FNAMES[++j], H5F_ACC_TRUNC, fcpl, fapl)) < 0) @@ -2072,13 +2072,13 @@ make_testfiles(void) /* * #3 -- h5repack_fsm_aggr_persist.h5 * Setting: - * strategy=FSM_AGGR, persist=TRUE, threshold=1 + * strategy=FSM_AGGR, persist=true, threshold=1 * default: inpage=4096 */ /* Create file creation property list */ if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0) return -1; - if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_FSM_AGGR, TRUE, (hsize_t)1) < 0) + if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_FSM_AGGR, true, (hsize_t)1) < 0) return -1; assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); if ((fid = H5Fcreate(H5REPACK_FSPACE_FNAMES[++j], H5F_ACC_TRUNC, fcpl, H5P_DEFAULT)) < 0) @@ -2091,7 +2091,7 @@ make_testfiles(void) /* * #4 -- h5repack_page_threshold.h5 * Setting: - * strategy=PAGE, persist=FALSE, threshold=3 + * strategy=PAGE, persist=false, threshold=3 * inpage=8192 * latest format */ @@ -2099,7 +2099,7 @@ make_testfiles(void) /* Create file creation property list */ if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0) return -1; - if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, FALSE, (hsize_t)3) < 0) + if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_PAGE, false, (hsize_t)3) < 0) return -1; if (H5Pset_file_space_page_size(fcpl, (hsize_t)8192) < 0) return -1; @@ -2114,14 +2114,14 @@ make_testfiles(void) /* * #5 -- h5repack_fsm_aggr_threshold.h5 * Setting: - * strategy=FSM_AGGR, persist=FALSE, threshold=3 + * strategy=FSM_AGGR, persist=false, threshold=3 * inpage=4096 */ /* Create file creation property list */ if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0) return -1; - if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_FSM_AGGR, FALSE, (hsize_t)3) < 0) + if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_FSM_AGGR, false, (hsize_t)3) < 0) return -1; if (H5Pset_file_space_page_size(fcpl, (hsize_t)FS_PAGESIZE_DEF) < 0) return -1; @@ -2136,14 +2136,14 @@ make_testfiles(void) /* * #6 -- h5repack_aggr.h5 * Setting: - * strategy=AGGR, persist=FALSE, threshold=1 + * strategy=AGGR, persist=false, threshold=1 * latest format */ /* Create file creation property list */ if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0) return -1; - if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_AGGR, FALSE, (hsize_t)1) < 0) + if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_AGGR, false, (hsize_t)1) < 0) return -1; assert(j < NELMTS(H5REPACK_FSPACE_FNAMES)); if ((fid = H5Fcreate(H5REPACK_FSPACE_FNAMES[++j], H5F_ACC_TRUNC, fcpl, fapl)) < 0) @@ -2157,14 +2157,14 @@ make_testfiles(void) /* * #7 -- h5repack_none.h5 * Setting: - * strategy=NONE, persist=FALSE, threshold=1 + * strategy=NONE, persist=false, threshold=1 * inpage=8192 */ /* Create file creation property list */ if ((fcpl = H5Pcreate(H5P_FILE_CREATE)) < 0) return -1; - if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_NONE, FALSE, (hsize_t)1) < 0) + if (H5Pset_file_space_strategy(fcpl, H5F_FSPACE_STRATEGY_NONE, false, (hsize_t)1) < 0) return -1; if (H5Pset_file_space_page_size(fcpl, (hsize_t)8192) < 0) return -1; @@ -2788,7 +2788,7 @@ make_nbit(hid_t loc_id) #ifdef H5_HAVE_PARALLEL { - hbool_t driver_is_parallel; + bool driver_is_parallel; /* Set up collective writes for parallel driver */ if (h5_using_parallel_driver(H5P_DEFAULT, &driver_is_parallel) < 0) @@ -2896,7 +2896,7 @@ make_scaleoffset(hid_t loc_id) #ifdef H5_HAVE_PARALLEL { - hbool_t driver_is_parallel; + bool driver_is_parallel; if (h5_using_parallel_driver(H5P_DEFAULT, &driver_is_parallel) < 0) goto error; @@ -3005,7 +3005,7 @@ make_all_filters(hid_t loc_id) #ifdef H5_HAVE_PARALLEL { - hbool_t driver_is_parallel; + bool driver_is_parallel; if (h5_using_parallel_driver(H5P_DEFAULT, &driver_is_parallel) < 0) goto error; @@ -5914,7 +5914,7 @@ make_dset(hid_t loc_id, const char *name, hid_t sid, hid_t dcpl, void *buf) #ifdef H5_HAVE_PARALLEL { - hbool_t driver_is_parallel; + bool driver_is_parallel; if (h5_using_parallel_driver(H5P_DEFAULT, &driver_is_parallel) < 0) goto out; @@ -5966,7 +5966,7 @@ write_dset(hid_t loc_id, int rank, hsize_t *dims, const char *dset_name, hid_t t if (buf) { #ifdef H5_HAVE_PARALLEL { - hbool_t driver_is_parallel; + bool driver_is_parallel; if (h5_using_parallel_driver(H5P_DEFAULT, &driver_is_parallel) < 0) goto out; |