Skip to content

Commit

Permalink
Convert hbool_t --> bool in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Sep 3, 2023
1 parent 9c85c6e commit a1b0417
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/ph5_filtered_writes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions examples/ph5_filtered_writes_no_sel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/ph5_subfiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a1b0417

Please sign in to comment.