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/H5Groot.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/H5Groot.c')
-rw-r--r-- | src/H5Groot.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5Groot.c b/src/H5Groot.c index 7f5b956..0686fa9 100644 --- a/src/H5Groot.c +++ b/src/H5Groot.c @@ -122,13 +122,13 @@ H5G_rootof(H5F_t *f) *------------------------------------------------------------------------- */ herr_t -H5G_mkroot(H5F_t *f, hbool_t create_root) +H5G_mkroot(H5F_t *f, bool create_root) { H5G_loc_t root_loc; /* Root location information */ H5G_obj_create_t gcrt_info; /* Root group object creation info */ htri_t stab_exists = -1; /* Whether the symbol table exists */ - hbool_t sblock_dirty = FALSE; /* Whether superblock was dirtied */ - hbool_t path_init = FALSE; /* Whether path was initialized */ + bool sblock_dirty = false; /* Whether superblock was dirtied */ + bool path_init = false; /* Whether path was initialized */ herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(FAIL) @@ -182,7 +182,7 @@ H5G_mkroot(H5F_t *f, hbool_t create_root) "unable to decrement refcount on root group's object header"); /* Mark superblock dirty, so root group info is flushed */ - sblock_dirty = TRUE; + sblock_dirty = true; /* Create the root group symbol table entry */ assert(!f->shared->sblock->root_ent); @@ -245,7 +245,7 @@ H5G_mkroot(H5F_t *f, hbool_t create_root) * present, so we don't need to check the superblock version. We do this if * we have write access, the root entry has been allocated (i.e. * super_vers < 2) and the stab info is not already cached. */ - if ((H5F_INTENT(f) & H5F_ACC_RDWR) && stab_exists != FALSE && f->shared->sblock->root_ent && + if ((H5F_INTENT(f) & H5F_ACC_RDWR) && stab_exists != false && f->shared->sblock->root_ent && f->shared->sblock->root_ent->type != H5G_CACHED_STAB) { H5O_stab_t stab; /* Symbol table */ @@ -266,13 +266,13 @@ H5G_mkroot(H5F_t *f, hbool_t create_root) f->shared->sblock->root_ent->cache.stab.heap_addr = stab.heap_addr; /* Mark superblock dirty, so root group info is flushed */ - sblock_dirty = TRUE; + sblock_dirty = true; } /* end if */ } /* end if */ /* Create the path names for the root group's entry */ H5G__name_init(root_loc.path, "/"); - path_init = TRUE; + path_init = true; f->shared->root_grp->shared->fo_count = 1; /* The only other open object should be the superblock extension, if it @@ -373,7 +373,7 @@ H5G_root_loc(H5F_t *f, H5G_loc_t *loc) /* (but only for non-mounted files) */ if (!H5F_is_mount(f)) { loc->oloc->file = f; - loc->oloc->holding_file = FALSE; + loc->oloc->holding_file = false; } /* end if */ done: |