Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert hbool_t --> bool in examples #3492

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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