diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 21:52:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 21:52:30 (GMT) |
commit | 8253ab9ebf6a082dc07eb931f27b169d6a45d577 (patch) | |
tree | 47630856491e54f5d28e1608ffa5e2f976dc9c95 /src/H5FS.c | |
parent | 920869796031ed4ee9c1fbea8aaccda3592a88b3 (diff) | |
download | hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.zip hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.gz hdf5-8253ab9ebf6a082dc07eb931f27b169d6a45d577.tar.bz2 |
Convert hbool_t --> bool in src (#3496)
* hbool_t --> bool in src
* Does not remove TRUE/FALSE
* Public header files are unchanged
* Public API calls are unchanged
* TRUE/FALSE --> true/false in src
* Add deprecation notice for hbool_t
Diffstat (limited to 'src/H5FS.c')
-rw-r--r-- | src/H5FS.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -264,31 +264,31 @@ H5FS_delete(H5F_t *f, haddr_t fs_addr) fprintf(stderr, "%s: fspace_status = %0x: ", __func__, fspace_status); if (fspace_status) { - hbool_t printed = FALSE; + bool printed = false; if (fspace_status & H5AC_ES__IN_CACHE) { fprintf(stderr, "H5AC_ES__IN_CACHE"); - printed = TRUE; + printed = true; } /* end if */ if (fspace_status & H5AC_ES__IS_DIRTY) { fprintf(stderr, "%sH5AC_ES__IS_DIRTY", (printed ? " | " : "")); - printed = TRUE; + printed = true; } /* end if */ if (fspace_status & H5AC_ES__IS_PROTECTED) { fprintf(stderr, "%sH5AC_ES__IS_PROTECTED", (printed ? " | " : "")); - printed = TRUE; + printed = true; } /* end if */ if (fspace_status & H5AC_ES__IS_PINNED) { fprintf(stderr, "%sH5AC_ES__IS_PINNED", (printed ? " | " : "")); - printed = TRUE; + printed = true; } /* end if */ if (fspace_status & H5AC_ES__IS_FLUSH_DEP_PARENT) { fprintf(stderr, "%sH5AC_ES__IS_FLUSH_DEP_PARENT", (printed ? " | " : "")); - printed = TRUE; + printed = true; } /* end if */ if (fspace_status & H5AC_ES__IS_FLUSH_DEP_CHILD) { fprintf(stderr, "%sH5AC_ES__IS_FLUSH_DEP_CHILD", (printed ? " | " : "")); - printed = TRUE; + printed = true; } /* end if */ } /* end if */ fprintf(stderr, "\n"); @@ -488,7 +488,7 @@ H5FS_close(H5F_t *f, H5FS_t *fspace) fspace->alloc_sect_size)) < 0) HGOTO_ERROR(H5E_FSPACE, H5E_CANTMERGE, FAIL, "can't check for absorbing section info"); - else if (status == FALSE) { + else if (status == false) { /* Section info can't "go away", but it's free. Allow * header to record it */ @@ -867,7 +867,7 @@ done: *------------------------------------------------------------------------- */ herr_t -H5FS_free(H5F_t *f, H5FS_t *fspace, hbool_t free_file_space) +H5FS_free(H5F_t *f, H5FS_t *fspace, bool free_file_space) { haddr_t saved_addr; /* Previous address of item */ unsigned cache_flags; /* Flags for unprotecting cache entries */ |