diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 20:11:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 20:11:52 (GMT) |
commit | 920869796031ed4ee9c1fbea8aaccda3592a88b3 (patch) | |
tree | 30f007ff79b87a79c882d9149cdbfcb797be92e1 /test/swmr_writer.c | |
parent | ae1379094b71c51342772397af5caca088862a61 (diff) | |
download | hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.zip hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.tar.gz hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.tar.bz2 |
Convert hbool_t --> bool in test (#3494)
Diffstat (limited to 'test/swmr_writer.c')
-rw-r--r-- | test/swmr_writer.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/swmr_writer.c b/test/swmr_writer.c index 8397c43..c66a09d 100644 --- a/test/swmr_writer.c +++ b/test/swmr_writer.c @@ -34,9 +34,9 @@ /* Local Prototypes */ /********************/ -static hid_t open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned random_seed, - hbool_t old); -static int add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecords, +static hid_t open_skeleton(const char *filename, bool verbose, FILE *verbose_file, unsigned random_seed, + bool old); +static int add_records(hid_t fid, bool verbose, FILE *verbose_file, unsigned long nrecords, unsigned long flush_count); static void usage(void); @@ -48,7 +48,7 @@ static void usage(void); * Parameters: const char *filename * The filename of the SWMR HDF5 file to open * - * hbool_t verbose + * bool verbose * Whether or not to emit verbose console messages * * FILE *verbose_file @@ -57,7 +57,7 @@ static void usage(void); * unsigned random_seed * Random seed for the file (used for verbose logging) * - * hbool_t old + * bool old * Whether to write in "old" file format * * Return: Success: The file ID of the opened SWMR file @@ -68,12 +68,12 @@ static void usage(void); *------------------------------------------------------------------------- */ static hid_t -open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, unsigned random_seed, hbool_t old) +open_skeleton(const char *filename, bool verbose, FILE *verbose_file, unsigned random_seed, bool old) { hid_t fid; /* File ID for new HDF5 file */ hid_t fapl; /* File access property list */ unsigned u, v; /* Local index variable */ - hbool_t use_log_vfd = FALSE; /* Use the log VFD (set this manually) */ + bool use_log_vfd = false; /* Use the log VFD (set this manually) */ assert(filename); @@ -127,7 +127,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, unsigne * Parameters: hid_t fid * The file ID of the SWMR HDF5 file * - * hbool_t verbose + * bool verbose * Whether or not to emit verbose console messages * * FILE *verbose_file @@ -145,7 +145,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, unsigne *------------------------------------------------------------------------- */ static int -add_records(hid_t fid, hbool_t verbose, FILE *verbose_file, unsigned long nrecords, unsigned long flush_count) +add_records(hid_t fid, bool verbose, FILE *verbose_file, unsigned long nrecords, unsigned long flush_count) { hid_t tid; /* Datatype ID for records */ hid_t mem_sid; /* Memory dataspace ID */ @@ -279,10 +279,10 @@ main(int argc, char *argv[]) hid_t fid; /* File ID for file opened */ long nrecords = 0; /* # of records to append */ long flush_count = 10000; /* # of records to write between flushing file */ - hbool_t verbose = TRUE; /* Whether to emit some informational messages */ + bool verbose = true; /* Whether to emit some informational messages */ FILE *verbose_file = NULL; /* File handle for verbose output */ - hbool_t old = FALSE; /* Whether to use non-latest-format when opening file */ - hbool_t use_seed = FALSE; /* Set to TRUE if a seed was set on the command line */ + bool old = false; /* Whether to use non-latest-format when opening file */ + bool use_seed = false; /* Set to true if a seed was set on the command line */ unsigned random_seed = 0; /* Random # seed */ unsigned u; /* Local index variable */ int temp; @@ -305,13 +305,13 @@ main(int argc, char *argv[]) /* Be quiet */ case 'q': - verbose = FALSE; + verbose = false; u++; break; /* Random # seed */ case 'r': - use_seed = TRUE; + use_seed = true; temp = atoi(argv[u + 1]); random_seed = (unsigned)temp; u += 2; @@ -319,7 +319,7 @@ main(int argc, char *argv[]) /* Use non-latest-format when opening file */ case 'o': - old = TRUE; + old = true; u++; break; |