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/H5Odbg.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/H5Odbg.c')
-rw-r--r-- | src/H5Odbg.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/H5Odbg.c b/src/H5Odbg.c index d6c7097..9bc949f 100644 --- a/src/H5Odbg.c +++ b/src/H5Odbg.c @@ -148,8 +148,8 @@ H5O__assert(const H5O_t *oh) if (H5O_NULL_ID == curr_msg->type->id) free_space += curr_tot_size; else if (H5O_CONT_ID == curr_msg->type->id) { - H5O_cont_t *cont = (H5O_cont_t *)curr_msg->native; - hbool_t H5_ATTR_NDEBUG_UNUSED found_chunk = FALSE; /* Found a chunk that matches */ + H5O_cont_t *cont = (H5O_cont_t *)curr_msg->native; + bool H5_ATTR_NDEBUG_UNUSED found_chunk = false; /* Found a chunk that matches */ assert(cont); @@ -162,7 +162,7 @@ H5O__assert(const H5O_t *oh) if (H5_addr_eq(cont->addr, oh->chunk[v].addr) && cont->size == oh->chunk[v].size) { assert(cont->chunkno == v); assert(!found_chunk); - found_chunk = TRUE; + found_chunk = true; } /* end if */ } /* end for */ assert(found_chunk); @@ -393,7 +393,7 @@ H5O__debug_real(H5F_t *f, H5O_t *oh, haddr_t addr, FILE *stream, int indent, int "Dirty:", oh->mesg[i].dirty ? "TRUE" : "FALSE"); fprintf(stream, "%*s%-*s ", indent + 3, "", MAX(0, fwidth - 3), "Message flags:"); if (oh->mesg[i].flags) { - hbool_t flag_printed = FALSE; + bool flag_printed = false; /* Sanity check that all flags in format are covered below */ HDcompile_assert(H5O_MSG_FLAG_BITS == @@ -404,36 +404,36 @@ H5O__debug_real(H5F_t *f, H5O_t *oh, haddr_t addr, FILE *stream, int indent, int if (oh->mesg[i].flags & H5O_MSG_FLAG_CONSTANT) { fprintf(stream, "%sC", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_SHARED) { fprintf(stream, "%sS", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_DONTSHARE) { fprintf(stream, "%sDS", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_FAIL_IF_UNKNOWN_AND_OPEN_FOR_WRITE) { fprintf(stream, "%sFIUW", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_MARK_IF_UNKNOWN) { fprintf(stream, "%sMIU", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_WAS_UNKNOWN) { assert(oh->mesg[i].flags & H5O_MSG_FLAG_MARK_IF_UNKNOWN); fprintf(stream, "%sWU", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_SHAREABLE) { fprintf(stream, "%sSA", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (oh->mesg[i].flags & H5O_MSG_FLAG_FAIL_IF_UNKNOWN_ALWAYS) { fprintf(stream, "%sFIUA", (flag_printed ? ", " : "<")); - flag_printed = TRUE; + flag_printed = true; } /* end if */ if (!flag_printed) fprintf(stream, "-"); @@ -511,9 +511,9 @@ H5O_debug(H5F_t *f, haddr_t addr, FILE *stream, int indent, int fwidth) /* Set up the object location */ loc.file = f; loc.addr = addr; - loc.holding_file = FALSE; + loc.holding_file = false; - if (NULL == (oh = H5O_protect(&loc, H5AC__READ_ONLY_FLAG, FALSE))) + if (NULL == (oh = H5O_protect(&loc, H5AC__READ_ONLY_FLAG, false))) HGOTO_ERROR(H5E_OHDR, H5E_CANTPROTECT, FAIL, "unable to load object header"); /* debug */ |