Convert hbool_t --> bool in examples (#3492)

This commit is contained in:
Dana Robinson 2023-09-04 20:59:41 -07:00 committed by GitHub
parent 9c85c6ec08
commit 93748d4ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ fill_databuf(hsize_t start[], hsize_t count[], hsize_t stride[], C_DATATYPE *dat
static void
cleanup(char *filename)
{
hbool_t do_cleanup = getenv(HDF5_NOCLEANUP) ? 0 : 1;
bool do_cleanup = getenv(HDF5_NOCLEANUP) ? false : true;
if (do_cleanup)
MPI_File_delete(filename, MPI_INFO_NULL);

View File

@ -102,7 +102,7 @@ fill_databuf(hsize_t start[], hsize_t count[], hsize_t stride[], C_DATATYPE *dat
static void
cleanup(char *filename)
{
hbool_t do_cleanup = getenv(HDF5_NOCLEANUP) ? 0 : 1;
bool do_cleanup = getenv(HDF5_NOCLEANUP) ? false : true;
if (do_cleanup)
MPI_File_delete(filename, MPI_INFO_NULL);
@ -125,7 +125,7 @@ write_dataset_some_no_sel(hid_t file_id, hid_t dxpl_id)
hsize_t start[EXAMPLE_DSET_DIMS];
hsize_t stride[EXAMPLE_DSET_DIMS];
hsize_t count[EXAMPLE_DSET_DIMS];
hbool_t no_selection;
bool no_selection;
hid_t dset_id = H5I_INVALID_HID;
hid_t dcpl_id = H5I_INVALID_HID;
hid_t file_dataspace = H5I_INVALID_HID;

View File

@ -51,7 +51,7 @@ typedef int EXAMPLE_DSET_C_DATATYPE;
static void
cleanup(char *filename, hid_t fapl_id)
{
hbool_t do_cleanup = getenv(HDF5_NOCLEANUP) ? 0 : 1;
bool do_cleanup = getenv(HDF5_NOCLEANUP) ? false : true;
if (do_cleanup)
H5Fdelete(filename, fapl_id);