Remove hbool_t from the public API (#5802)

* Remove hbool_t from the public API

This was previously removed from the source code, but the API calls
retained hbool_t in the public API calls. This commit removes
hbool_t from the public APIs.

hbool_t is retained as a typedef for bool in H5public.h so existing
code doesn't break.
This commit is contained in:
Dana Robinson
2025-09-15 17:36:22 -05:00
committed by GitHub
parent 336318301c
commit 3b47e2d227
70 changed files with 254 additions and 241 deletions
+2 -1
View File
@@ -26,6 +26,7 @@
* if one is needed.
*/
#include <stdbool.h>
#include <stdlib.h>
#include "hdf5.h"
@@ -102,7 +103,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);
@@ -27,6 +27,7 @@
* if one is needed.
*/
#include <stdbool.h>
#include <stdlib.h>
#include "hdf5.h"
@@ -102,7 +103,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 +126,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;
+2 -1
View File
@@ -27,6 +27,7 @@
* is needed.
*/
#include <stdbool.h>
#include <stdlib.h>
#include "hdf5.h"
@@ -51,7 +52,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);