Skip to content

Commit

Permalink
Add deprecation notice for hbool_t
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Sep 3, 2023
1 parent 7a78655 commit a8f4923
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/H5public.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ typedef int herr_t;
/**
* C99-style Boolean type. Successful return values are zero (false) or positive
* (true). The typical true value is 1 but don't bet on it.
*
* \deprecated Now that we require C99, hbool_t is typedef'd to C99's bool
* and hbool_t is considered deprecated. Due to its long-standing,
* widespread use, we have no plans to remove the hbool_t typedef
* from the public API, though we will probably switch to using
* bool in the public API starting in the next major release of HDF5.
* \attention Boolean functions cannot fail.
*/
#include <stdbool.h>
Expand Down

0 comments on commit a8f4923

Please sign in to comment.