From a1b041759d47d663fa78d4b315bb72c66f9fac81 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Sat, 2 Sep 2023 17:27:15 -0700 Subject: [PATCH] Convert hbool_t --> bool in examples --- examples/ph5_filtered_writes.c | 2 +- examples/ph5_filtered_writes_no_sel.c | 4 ++-- examples/ph5_subfiling.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/ph5_filtered_writes.c b/examples/ph5_filtered_writes.c index 104704a238a..f4ddae93fa7 100644 --- a/examples/ph5_filtered_writes.c +++ b/examples/ph5_filtered_writes.c @@ -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); diff --git a/examples/ph5_filtered_writes_no_sel.c b/examples/ph5_filtered_writes_no_sel.c index a4d9e169c36..e3ec103604c 100644 --- a/examples/ph5_filtered_writes_no_sel.c +++ b/examples/ph5_filtered_writes_no_sel.c @@ -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; diff --git a/examples/ph5_subfiling.c b/examples/ph5_subfiling.c index 7d7244878b8..f9c33229bb1 100644 --- a/examples/ph5_subfiling.c +++ b/examples/ph5_subfiling.c @@ -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);