diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-09-05 18:50:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 18:50:06 (GMT) |
commit | ae1379094b71c51342772397af5caca088862a61 (patch) | |
tree | e79cb67a1227bfdec099f62e9df22917213b8a7d /tools/src/h5dump | |
parent | d24f5d5223731d507b51d112ba564d764d6d6c18 (diff) | |
download | hdf5-ae1379094b71c51342772397af5caca088862a61.zip hdf5-ae1379094b71c51342772397af5caca088862a61.tar.gz hdf5-ae1379094b71c51342772397af5caca088862a61.tar.bz2 |
hbool_t/TRUE/FALSE --> bool/true/false in tools (#3491)
Diffstat (limited to 'tools/src/h5dump')
-rw-r--r-- | tools/src/h5dump/h5dump.c | 104 | ||||
-rw-r--r-- | tools/src/h5dump/h5dump.h | 6 | ||||
-rw-r--r-- | tools/src/h5dump/h5dump_ddl.c | 74 | ||||
-rw-r--r-- | tools/src/h5dump/h5dump_extern.h | 2 | ||||
-rw-r--r-- | tools/src/h5dump/h5dump_xml.c | 410 |
5 files changed, 298 insertions, 298 deletions
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c index 1458354..e11999d 100644 --- a/tools/src/h5dump/h5dump.c +++ b/tools/src/h5dump/h5dump.c @@ -18,24 +18,24 @@ #define PROGRAMNAME "h5dump" const char *outfname_g = NULL; -static hbool_t doxml_g = FALSE; -static hbool_t useschema_g = TRUE; +static bool doxml_g = false; +static bool useschema_g = true; static const char *xml_dtd_uri_g = NULL; -static hbool_t use_custom_vol_g = FALSE; -static hbool_t use_custom_vfd_g = FALSE; +static bool use_custom_vol_g = false; +static bool use_custom_vfd_g = false; static h5tools_vol_info_t vol_info_g = {0}; static h5tools_vfd_info_t vfd_info_g = {0}; -static hbool_t get_onion_revision_count = FALSE; +static bool get_onion_revision_count = false; #ifdef H5_HAVE_ROS3_VFD /* Default "anonymous" S3 configuration */ static H5FD_ros3_fapl_ext_t ros3_fa_g = { { 1, /* Structure Version */ - FALSE, /* Authenticate? */ + false, /* Authenticate? */ "", /* AWS Region */ "", /* Access Key ID */ "", /* Secret Access Key */ @@ -752,7 +752,7 @@ parse_command_line(int argc, const char *const *argv) struct handler_t *last_dset = NULL; int i; int opt; - int last_was_dset = FALSE; + int last_was_dset = false; /* no arguments */ if (argc == 1) { @@ -770,50 +770,50 @@ parse_command_line(int argc, const char *const *argv) parse_start: switch ((char)opt) { case 'R': - dump_opts.display_region = TRUE; - region_output = TRUE; + dump_opts.display_region = true; + region_output = true; break; case 'B': - dump_opts.display_bb = TRUE; - last_was_dset = FALSE; + dump_opts.display_bb = true; + last_was_dset = false; break; case 'n': - dump_opts.display_fi = TRUE; - last_was_dset = FALSE; + dump_opts.display_fi = true; + last_was_dset = false; if (H5_optarg != NULL) h5trav_set_verbose(atoi(H5_optarg)); break; case 'p': - dump_opts.display_dcpl = TRUE; + dump_opts.display_dcpl = true; break; case 'y': - dump_opts.display_ai = FALSE; + dump_opts.display_ai = false; break; case 'e': - dump_opts.display_escape = TRUE; + dump_opts.display_escape = true; break; case 'H': - dump_opts.display_data = FALSE; - dump_opts.display_attr_data = FALSE; - last_was_dset = FALSE; + dump_opts.display_data = false; + dump_opts.display_attr_data = false; + last_was_dset = false; break; case 'A': if (H5_optarg != NULL) { if (0 == atoi(H5_optarg)) - dump_opts.include_attrs = FALSE; + dump_opts.include_attrs = false; } else { - dump_opts.display_data = FALSE; - dump_opts.display_attr_data = TRUE; - last_was_dset = FALSE; + dump_opts.display_data = false; + dump_opts.display_attr_data = true; + last_was_dset = false; } break; case 'i': - dump_opts.display_oid = TRUE; - last_was_dset = FALSE; + dump_opts.display_oid = true; + last_was_dset = false; break; case 'r': - dump_opts.display_char = TRUE; + dump_opts.display_char = true; break; case 'V': print_version(h5tools_getprogname()); @@ -829,7 +829,7 @@ parse_start: h5tools_nCols = 65535; else h5tools_nCols = (unsigned)sh5tools_nCols; - last_was_dset = FALSE; + last_was_dset = false; } break; case 'N': dump_opts.display_all = 0; @@ -841,7 +841,7 @@ parse_start: break; } - last_was_dset = FALSE; + last_was_dset = false; break; case 'a': dump_opts.display_all = 0; @@ -853,7 +853,7 @@ parse_start: break; } - last_was_dset = FALSE; + last_was_dset = false; break; case 'd': dump_opts.display_all = 0; @@ -868,12 +868,12 @@ parse_start: break; } - last_was_dset = TRUE; + last_was_dset = true; break; case 'f': vfd_info_g.type = VFD_BY_NAME; vfd_info_g.u.name = H5_optarg; - use_custom_vfd_g = TRUE; + use_custom_vfd_g = true; #ifdef H5_HAVE_ROS3_VFD if (0 == HDstrcmp(vfd_info_g.u.name, drivernames[ROS3_VFD_IDX])) @@ -897,7 +897,7 @@ parse_start: break; } - last_was_dset = FALSE; + last_was_dset = false; break; case 'l': dump_opts.display_all = 0; @@ -909,7 +909,7 @@ parse_start: break; } - last_was_dset = FALSE; + last_was_dset = false; break; case 't': dump_opts.display_all = 0; @@ -921,7 +921,7 @@ parse_start: break; } - last_was_dset = FALSE; + last_was_dset = false; break; case 'O': @@ -953,8 +953,8 @@ parse_start: } } - dump_opts.usingdasho = TRUE; - last_was_dset = FALSE; + dump_opts.usingdasho = true; + last_was_dset = false; outfname_g = H5_optarg; break; @@ -966,7 +966,7 @@ parse_start: goto error; } } - bin_output = TRUE; + bin_output = true; if (outfname_g != NULL) { if (h5tools_set_data_output_file(outfname_g, 1) < 0) { /* failed to set output file */ @@ -974,7 +974,7 @@ parse_start: goto error; } - last_was_dset = FALSE; + last_was_dset = false; } break; @@ -1003,10 +1003,10 @@ parse_start: usage(h5tools_getprogname()); goto error; } - dump_opts.display_packed_bits = TRUE; + dump_opts.display_packed_bits = true; break; case 'v': - dump_opts.display_vds_first = TRUE; + dump_opts.display_vds_first = true; break; case 'G': dump_opts.vds_gap_size = atoi(H5_optarg); @@ -1019,15 +1019,15 @@ parse_start: /** begin XML parameters **/ case 'x': /* select XML output */ - doxml_g = TRUE; - useschema_g = TRUE; + doxml_g = true; + useschema_g = true; h5tools_dump_header_format = NULL; dump_function_table = &xml_function_table; h5tools_nCols = 0; break; case 'u': - doxml_g = TRUE; - useschema_g = FALSE; + doxml_g = true; + useschema_g = false; xmlnsprefix = ""; h5tools_dump_header_format = NULL; dump_function_table = &xml_function_table; @@ -1131,7 +1131,7 @@ parse_start: } while ((opt = H5_get_option(argc, argv, s_opts, l_opts)) != EOF); end_collect: - last_was_dset = FALSE; + last_was_dset = false; if (opt != EOF) goto parse_start; @@ -1147,7 +1147,7 @@ end_collect: enable_error_stack = 1; break; case 'C': - dump_opts.disable_compact_subset = TRUE; + dump_opts.disable_compact_subset = true; break; case 'h': usage(h5tools_getprogname()); @@ -1197,13 +1197,13 @@ end_collect: case '1': vol_info_g.type = VOL_BY_VALUE; vol_info_g.u.value = (H5VL_class_value_t)atoi(H5_optarg); - use_custom_vol_g = TRUE; + use_custom_vol_g = true; break; case '2': vol_info_g.type = VOL_BY_NAME; vol_info_g.u.name = H5_optarg; - use_custom_vol_g = TRUE; + use_custom_vol_g = true; break; case '3': @@ -1213,13 +1213,13 @@ end_collect: case '4': vfd_info_g.type = VFD_BY_VALUE; vfd_info_g.u.value = (H5FD_class_value_t)atoi(H5_optarg); - use_custom_vfd_g = TRUE; + use_custom_vfd_g = true; break; case '5': vfd_info_g.type = VFD_BY_NAME; vfd_info_g.u.name = H5_optarg; - use_custom_vfd_g = TRUE; + use_custom_vfd_g = true; break; case '6': @@ -1238,7 +1238,7 @@ end_collect: if (vfd_info_g.info) { if (!HDstrcmp(vfd_info_g.info, "revision_count")) - get_onion_revision_count = TRUE; + get_onion_revision_count = true; else { errno = 0; onion_fa_g.revision_num = strtoull(vfd_info_g.info, NULL, 10); @@ -1333,7 +1333,7 @@ main(int argc, char *argv[]) h5tools_setstatus(EXIT_FAILURE); goto done; } - else if (dump_opts.display_char == TRUE) { + else if (dump_opts.display_char == true) { error_msg("option \"%s\" not available for XML\n", "--string"); h5tools_setstatus(EXIT_FAILURE); goto done; diff --git a/tools/src/h5dump/h5dump.h b/tools/src/h5dump/h5dump.h index 7877655..5deb951 100644 --- a/tools/src/h5dump/h5dump.h +++ b/tools/src/h5dump/h5dump.h @@ -54,7 +54,7 @@ table_t *group_table = NULL, *dset_table = NULL, *type_table = NULL; unsigned dump_indent = 0; /* how far in to indent the line */ int unamedtype = 0; /* shared datatype with no name */ -hbool_t hit_elink = FALSE; /* whether we have traversed an external link */ +bool hit_elink = false; /* whether we have traversed an external link */ size_t prefix_len = 1024; char *prefix = NULL; const char *fp_format = NULL; @@ -79,8 +79,8 @@ typedef struct { int display_vds_first; /* vds display to all by default */ int vds_gap_size; /* vds skip missing files default is none */ } dump_opt_t; -dump_opt_t dump_opts = {TRUE, FALSE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, - TRUE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, 0}; +dump_opt_t dump_opts = {true, false, true, true, false, false, false, false, false, + true, false, false, false, false, true, false, 0}; #define PACKED_BITS_MAX 8 /* Maximum number of packed-bits to display */ #define PACKED_BITS_SIZE_MAX (8 * sizeof(long long)) /* Maximum bits size of integer types of packed-bits */ diff --git a/tools/src/h5dump/h5dump_ddl.c b/tools/src/h5dump/h5dump_ddl.c index adc8585..0c4e105 100644 --- a/tools/src/h5dump/h5dump_ddl.c +++ b/tools/src/h5dump/h5dump_ddl.c @@ -262,7 +262,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT if (found_obj == NULL) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -274,7 +274,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT error_msg("internal error (file %s:line %d)\n", __FILE__, __LINE__); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -299,7 +299,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT goto done; } else if (found_obj->displayed) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -311,7 +311,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -321,7 +321,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -342,7 +342,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT goto done; } else { - found_obj->displayed = TRUE; + found_obj->displayed = true; } } /* end if */ @@ -392,7 +392,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ret = FAIL; } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -411,7 +411,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT else { /* print the value of a soft link */ /* Standard DDL: no modification */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -422,7 +422,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -447,7 +447,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ret = FAIL; } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -475,7 +475,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT else { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -483,7 +483,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -496,7 +496,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ctx.indent_level--; } /* end else */ } /* end else */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -518,7 +518,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT case H5L_TYPE_MAX: case H5L_TYPE_HARD: default: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -529,7 +529,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); h5tools_str_append(&buffer, "LINKCLASS %d", linfo->type); @@ -538,7 +538,7 @@ dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5_ATT ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); if (HDstrlen(h5tools_dump_header_format->udlinkblockend)) { @@ -673,7 +673,7 @@ dump_named_datatype(hid_t tid, const char *name) h5tools_setstatus(EXIT_FAILURE); } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -706,12 +706,12 @@ dump_named_datatype(hid_t tid, const char *name) goto done; } else - found_obj->displayed = TRUE; + found_obj->displayed = true; } /* end if */ /* Render the element */ h5tools_str_reset(&buffer); - h5tools_print_datatype(rawoutstream, &buffer, outputformat, &ctx, tid, FALSE); + h5tools_print_datatype(rawoutstream, &buffer, outputformat, &ctx, tid, false); if (H5Tget_class(tid) != H5T_COMPOUND) { h5tools_str_append(&buffer, ";"); @@ -813,7 +813,7 @@ dump_group(hid_t gid, const char *name) string_dataformat.do_escape = dump_opts.display_escape; outputformat = &string_dataformat; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -863,7 +863,7 @@ dump_group(hid_t gid, const char *name) h5tools_setstatus(EXIT_FAILURE); } else if (found_obj->displayed) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -872,7 +872,7 @@ dump_group(hid_t gid, const char *name) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } else { - found_obj->displayed = TRUE; + found_obj->displayed = true; attr_iteration(gid, attr_crt_order_flags); link_iteration(gid, crt_order_flags); } @@ -881,7 +881,7 @@ dump_group(hid_t gid, const char *name) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -955,7 +955,7 @@ dump_dataset(hid_t did, const char *name, struct subset_t *sset) /* setup */ memset(&buffer, 0, sizeof(h5tools_str_t)); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -1003,7 +1003,7 @@ dump_dataset(hid_t did, const char *name, struct subset_t *sset) data_loop = packed_bits_num; for (u = 0; u < data_loop; u++) { if (dump_opts.display_packed_bits) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ h5tools_str_reset(&buffer); @@ -1018,7 +1018,7 @@ dump_dataset(hid_t did, const char *name, struct subset_t *sset) case H5T_TIME: ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ h5tools_str_reset(&buffer); @@ -1039,7 +1039,7 @@ dump_dataset(hid_t did, const char *name, struct subset_t *sset) case H5T_ENUM: case H5T_VLEN: case H5T_ARRAY: { - h5tools_dump_data(rawoutstream, outputformat, &ctx, did, TRUE); + h5tools_dump_data(rawoutstream, outputformat, &ctx, did, true); } break; case H5T_NO_CLASS: @@ -1058,7 +1058,7 @@ dump_dataset(hid_t did, const char *name, struct subset_t *sset) ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -1090,7 +1090,7 @@ dump_data(hid_t obj_id, int obj_data, struct subset_t *sset, int display_index) h5tools_context_t ctx; /* print context */ h5tool_format_t *outputformat = &h5tools_dataformat; h5tool_format_t string_dataformat; - int print_dataset = FALSE; + int print_dataset = false; string_dataformat = *outputformat; @@ -1117,7 +1117,7 @@ dump_data(hid_t obj_id, int obj_data, struct subset_t *sset, int display_index) ctx.display_char = dump_opts.display_char; if (obj_data == DATASET_DATA) - print_dataset = TRUE; + print_dataset = true; h5tools_dump_data(rawoutstream, outputformat, &ctx, obj_id, print_dataset); } @@ -1137,7 +1137,7 @@ dump_fcpl(hid_t fid) size_t off_size; /* size of offsets in the file */ size_t len_size; /* size of lengths in the file */ H5F_fspace_strategy_t fs_strategy; /* file space strategy */ - hbool_t fs_persist; /* Persisting free-space or not */ + bool fs_persist; /* Persisting free-space or not */ hsize_t fs_threshold; /* free-space section threshold */ hsize_t fsp_size; /* file space page size */ H5F_info2_t finfo; /* file information */ @@ -1500,7 +1500,7 @@ handle_paths(hid_t fid, const char *path_name, void H5_ATTR_UNUSED *data, int H5 handle_udata.fid = fid; handle_udata.op_name = path_name; - if (h5trav_visit(fid, "/", TRUE, TRUE, obj_search, lnk_search, &handle_udata, H5O_INFO_BASIC) < 0) { + if (h5trav_visit(fid, "/", true, true, obj_search, lnk_search, &handle_udata, H5O_INFO_BASIC) < 0) { error_msg("error traversing information\n"); h5tools_setstatus(EXIT_FAILURE); } @@ -1581,7 +1581,7 @@ handle_attributes(hid_t fid, const char *attr, void H5_ATTR_UNUSED *data, int H5 /* setup */ memset(&buffer, 0, sizeof(h5tools_str_t)); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1592,7 +1592,7 @@ handle_attributes(hid_t fid, const char *attr, void H5_ATTR_UNUSED *data, int H5 error_msg("unable to open object \"%s\"\n", obj_name); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); if (HDstrlen(h5tools_dump_header_format->attributeblockend)) { @@ -1802,7 +1802,7 @@ handle_datasets(hid_t fid, const char *dset, void *data, int pe, const char *dis end_obj(h5tools_dump_header_format->datasetend, h5tools_dump_header_format->datasetblockend); } else { - found_obj->displayed = TRUE; + found_obj->displayed = true; dump_indent += COL; dump_dataset(dsetid, real_name, sset); dump_indent -= COL; @@ -2042,7 +2042,7 @@ dump_extlink(hid_t group, const char *linkname, const char *objname) table_t *old_group_table = group_table; table_t *old_dset_table = dset_table; table_t *old_type_table = type_table; - hbool_t old_hit_elink; + bool old_hit_elink; ssize_t idx; /* Open target object */ @@ -2073,7 +2073,7 @@ dump_extlink(hid_t group, const char *linkname, const char *objname) /* We will now traverse the external link, set this global to indicate this */ old_hit_elink = hit_elink; - hit_elink = TRUE; + hit_elink = true; /* add some indentation to distinguish that these objects are external */ dump_indent += COL; diff --git a/tools/src/h5dump/h5dump_extern.h b/tools/src/h5dump/h5dump_extern.h index 3c4c772..723a39e 100644 --- a/tools/src/h5dump/h5dump_extern.h +++ b/tools/src/h5dump/h5dump_extern.h @@ -52,7 +52,7 @@ extern table_t *group_table, *dset_table, *type_table; extern unsigned dump_indent; /* how far in to indent the line */ extern int unamedtype; /* shared datatype with no name */ -extern hbool_t hit_elink; /* whether we have traversed an external link */ +extern bool hit_elink; /* whether we have traversed an external link */ extern size_t prefix_len; extern char *prefix; extern const char *fp_format; diff --git a/tools/src/h5dump/h5dump_xml.c b/tools/src/h5dump/h5dump_xml.c index cb279e3..64be328 100644 --- a/tools/src/h5dump/h5dump_xml.c +++ b/tools/src/h5dump/h5dump_xml.c @@ -228,7 +228,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 if (found_obj == NULL) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -240,7 +240,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 error_msg("internal error (file %s:line %d)\n", __FILE__, __LINE__); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -276,7 +276,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 xml_name_to_XID(obj, obj_path, dsetxid, (int)sizeof(dsetxid), 1); xml_name_to_XID(obj, prefix, parentxid, (int)sizeof(parentxid), 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -296,7 +296,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -307,7 +307,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -324,7 +324,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 goto done; } else - found_obj->displayed = TRUE; + found_obj->displayed = true; } /* end if */ dump_function_table->dump_dataset_function(obj, name, NULL); @@ -403,7 +403,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 res = xml_name_to_XID(group, t_link_path, targetxid, (int)sizeof(targetxid), 0); if (res == 0) { /* target obj found */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -425,7 +425,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 } else { /* dangling link -- omit from xml attributes */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -490,7 +490,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 xml_name_to_XID(group, t_obj_path, linkxid, (int)sizeof(linkxid), 1); xml_name_to_XID(group, prefix, parentxid, (int)sizeof(parentxid), 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -536,7 +536,7 @@ xml_dump_all_cb(hid_t group, const char *name, const H5L_info2_t *linfo, void H5 xml_name_to_XID(group, t_obj_path, linkxid, (int)sizeof(linkxid), 1); xml_name_to_XID(group, prefix, parentxid, (int)sizeof(parentxid), 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -865,7 +865,7 @@ xml_print_datatype(hid_t type, unsigned in_group) size_t mpos; size_t msize; int nmembs; - htri_t is_vlstr = FALSE; + htri_t is_vlstr = false; h5tools_str_t buffer; /* string into which to render */ h5tools_context_t ctx; /* print context */ h5tool_format_t *outputformat = &xml_dataformat; @@ -915,7 +915,7 @@ xml_print_datatype(hid_t type, unsigned in_group) /* 'anonymous' NDT. Use it's object num. as it's name. */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -927,7 +927,7 @@ xml_print_datatype(hid_t type, unsigned in_group) /* point to the NDT by name */ char *t_objname = xml_escape_the_name(found_obj->objname); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -940,7 +940,7 @@ xml_print_datatype(hid_t type, unsigned in_group) free(dtxid); } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -953,7 +953,7 @@ xml_print_datatype(hid_t type, unsigned in_group) else { switch (H5Tget_class(type)) { case H5T_INTEGER: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -966,7 +966,7 @@ xml_print_datatype(hid_t type, unsigned in_group) ord = H5Tget_order(type); sgn = H5Tget_sign(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1011,7 +1011,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1027,7 +1027,7 @@ xml_print_datatype(hid_t type, unsigned in_group) MantissaBits="mb" MantissaLocation="ml" /> */ ord = H5Tget_order(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1036,7 +1036,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1072,7 +1072,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1082,7 +1082,7 @@ xml_print_datatype(hid_t type, unsigned in_group) break; case H5T_TIME: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1091,7 +1091,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1101,7 +1101,7 @@ xml_print_datatype(hid_t type, unsigned in_group) h5tools_str_append(&buffer, "<!-- H5T_TIME: not yet implemented -->"); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1117,7 +1117,7 @@ xml_print_datatype(hid_t type, unsigned in_group) cset = H5Tget_cset(type); is_vlstr = H5Tis_variable_str(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1127,7 +1127,7 @@ xml_print_datatype(hid_t type, unsigned in_group) ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1155,7 +1155,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1168,7 +1168,7 @@ xml_print_datatype(hid_t type, unsigned in_group) /* <hdf5:BitfieldType ByteOrder="bo" Size="bytes"/> */ ord = H5Tget_order(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1177,7 +1177,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1204,7 +1204,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1216,7 +1216,7 @@ xml_print_datatype(hid_t type, unsigned in_group) case H5T_OPAQUE: /* <hdf5:OpaqueType Tag="tag" Size="bytes" /> */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1226,7 +1226,7 @@ xml_print_datatype(hid_t type, unsigned in_group) ctx.indent_level++; mname = H5Tget_tag(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1238,7 +1238,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1253,7 +1253,7 @@ xml_print_datatype(hid_t type, unsigned in_group) /* type of a dataset */ nmembers = (unsigned)H5Tget_nmembers(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1273,7 +1273,7 @@ xml_print_datatype(hid_t type, unsigned in_group) mtype = H5Tget_member_type(type, i); t_fname = xml_escape_the_name(mname); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1286,7 +1286,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent += COL; ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1299,7 +1299,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1309,7 +1309,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1320,7 +1320,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1330,7 +1330,7 @@ xml_print_datatype(hid_t type, unsigned in_group) break; case H5T_REFERENCE: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1340,7 +1340,7 @@ xml_print_datatype(hid_t type, unsigned in_group) ctx.indent_level++; /* Only Object references supported at this time */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1349,7 +1349,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1358,7 +1358,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1367,7 +1367,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1380,7 +1380,7 @@ xml_print_datatype(hid_t type, unsigned in_group) /* <hdf5:EnumType Nelems="ne" > list Name, values of enum */ nmembs = H5Tget_nmembers(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1390,7 +1390,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent += COL; ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1399,7 +1399,7 @@ xml_print_datatype(hid_t type, unsigned in_group) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); xml_print_enum(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1409,7 +1409,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1419,7 +1419,7 @@ xml_print_datatype(hid_t type, unsigned in_group) break; case H5T_VLEN: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1430,7 +1430,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent += COL; ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1443,7 +1443,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1453,7 +1453,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1469,7 +1469,7 @@ xml_print_datatype(hid_t type, unsigned in_group) super = H5Tget_super(type); /* Print lead-in */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1485,7 +1485,7 @@ xml_print_datatype(hid_t type, unsigned in_group) /* list of dimensions */ ctx.indent_level++; for (i = 0; i < ndims; i++) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1499,7 +1499,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent += COL; ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1512,7 +1512,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1522,7 +1522,7 @@ xml_print_datatype(hid_t type, unsigned in_group) dump_indent -= COL; ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1536,7 +1536,7 @@ xml_print_datatype(hid_t type, unsigned in_group) case H5T_NO_CLASS: case H5T_NCLASSES: default: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1617,7 +1617,7 @@ xml_dump_datatype(hid_t type) use it's object ref as its name */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1629,7 +1629,7 @@ xml_dump_datatype(hid_t type) /* pointer to a named datatype already in XML */ char *t_objname = xml_escape_the_name(found_obj->objname); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1642,7 +1642,7 @@ xml_dump_datatype(hid_t type) free(dtxid); } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1652,7 +1652,7 @@ xml_dump_datatype(hid_t type) } } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1665,7 +1665,7 @@ xml_dump_datatype(hid_t type) ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1729,7 +1729,7 @@ xml_dump_dataspace(hid_t space) ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1742,7 +1742,7 @@ xml_dump_dataspace(hid_t space) case H5S_SCALAR: /* scalar dataspace (just a tag, no XML attrs. defined */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1755,7 +1755,7 @@ xml_dump_dataspace(hid_t space) /* simple dataspace */ /* <hdf5:SimpleDataspace Ndims="nd"> */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1767,7 +1767,7 @@ xml_dump_dataspace(hid_t space) ctx.indent_level++; for (i = 0; i < ndims; i++) { if (maxsize[i] == H5S_UNLIMITED) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1778,7 +1778,7 @@ xml_dump_dataspace(hid_t space) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } else if (maxsize[i] == (hsize_t)0) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1789,7 +1789,7 @@ xml_dump_dataspace(hid_t space) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1802,7 +1802,7 @@ xml_dump_dataspace(hid_t space) } ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1816,7 +1816,7 @@ xml_dump_dataspace(hid_t space) case H5S_NULL: /* null dataspace (just a tag, no XML attrs. defined */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ h5tools_str_reset(&buffer); @@ -1829,7 +1829,7 @@ xml_dump_dataspace(hid_t space) case H5S_NULL: case H5S_NO_CLASS: default: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1840,7 +1840,7 @@ xml_dump_dataspace(hid_t space) ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1904,7 +1904,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, string_dataformat.arr_pre = ""; outputformat = &string_dataformat; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1914,7 +1914,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1936,7 +1936,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, else { h5tools_context_t datactx; memset(&datactx, 0, sizeof(datactx)); - datactx.need_prefix = TRUE; + datactx.need_prefix = true; datactx.indent_level = ctx.indent_level; datactx.cur_column = ctx.cur_column; status = h5tools_dump_dset(rawoutstream, outputformat, &datactx, obj_id); @@ -1966,7 +1966,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, else { h5tools_context_t datactx; memset(&datactx, 0, sizeof(datactx)); - datactx.need_prefix = TRUE; + datactx.need_prefix = true; datactx.indent_level = ctx.indent_level; datactx.cur_column = ctx.cur_column; status = h5tools_dump_mem(rawoutstream, outputformat, &datactx, obj_id); @@ -1980,7 +1980,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, if (status == FAIL) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -1997,7 +1997,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2007,7 +2007,7 @@ xml_dump_data(hid_t obj_id, int obj_data, struct subset_t H5_ATTR_UNUSED *sset, ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2067,7 +2067,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED string_dataformat.do_escape = dump_opts.display_escape; outputformat = &string_dataformat; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2103,7 +2103,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2111,7 +2111,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2119,7 +2119,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2127,7 +2127,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2135,7 +2135,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2148,7 +2148,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED break; case H5T_COMPOUND: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2159,7 +2159,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED break; case H5T_REFERENCE: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2167,7 +2167,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); if (!H5Tequal(type, H5T_STD_REF_OBJ)) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2175,7 +2175,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2184,7 +2184,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2194,7 +2194,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED xml_print_refs(attr_id, ATTRIBUTE_DATA); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2203,7 +2203,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2213,7 +2213,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED break; case H5T_VLEN: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2226,7 +2226,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED case H5T_NO_CLASS: case H5T_NCLASSES: default: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2234,7 +2234,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2242,7 +2242,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2250,7 +2250,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2263,7 +2263,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED else { /* The case of an attribute never yet written ?? * Or dataspace is H5S_NULL. */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2273,7 +2273,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2283,7 +2283,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2298,7 +2298,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED H5Sclose(space); H5Aclose(attr_id); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2313,7 +2313,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED /* ?? failed */ ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2323,7 +2323,7 @@ xml_dump_attr(hid_t attr, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2416,7 +2416,7 @@ xml_dump_named_datatype(hid_t type, const char *name) the future. */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2430,7 +2430,7 @@ xml_dump_named_datatype(hid_t type, const char *name) else { H5O_info2_t oinfo; /* Object info */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2467,7 +2467,7 @@ xml_dump_named_datatype(hid_t type, const char *name) xml_name_to_XID(type, found_obj->objname, pointerxid, (int)sizeof(pointerxid), 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2478,7 +2478,7 @@ xml_dump_named_datatype(hid_t type, const char *name) ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2489,14 +2489,14 @@ xml_dump_named_datatype(hid_t type, const char *name) goto done; } else - found_obj->displayed = TRUE; + found_obj->displayed = true; } } ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2510,7 +2510,7 @@ xml_dump_named_datatype(hid_t type, const char *name) ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2521,7 +2521,7 @@ xml_dump_named_datatype(hid_t type, const char *name) ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2667,7 +2667,7 @@ xml_dump_group(hid_t gid, const char *name) /* probably can't happen! */ xml_name_to_XID(gid, "/", grpxid, 100, 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2682,7 +2682,7 @@ xml_dump_group(hid_t gid, const char *name) xml_name_to_XID(gid, tmp, grpxid, 100, 1); xml_name_to_XID(gid, par, parentxid, 100, 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2703,7 +2703,7 @@ xml_dump_group(hid_t gid, const char *name) xml_name_to_XID(gid, found_obj->objname, ptrstr, 100, 1); xml_name_to_XID(gid, par, parentxid, 100, 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2727,7 +2727,7 @@ xml_dump_group(hid_t gid, const char *name) if (isRoot) { xml_name_to_XID(gid, "/", grpxid, 100, 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2743,7 +2743,7 @@ xml_dump_group(hid_t gid, const char *name) xml_name_to_XID(gid, tmp, grpxid, 100, 1); xml_name_to_XID(gid, par, parentxid, 100, 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2757,7 +2757,7 @@ xml_dump_group(hid_t gid, const char *name) free(t_tmp); free(par_name); } - found_obj->displayed = TRUE; + found_obj->displayed = true; /* 1. do all the attributes of the group */ @@ -2822,7 +2822,7 @@ xml_dump_group(hid_t gid, const char *name) char *grpxid = (char *)malloc((size_t)100); char *parentxid = (char *)malloc((size_t)100); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -2905,7 +2905,7 @@ xml_dump_group(hid_t gid, const char *name) ctx.indent_level--; } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3026,7 +3026,7 @@ xml_print_refs(hid_t did, int source) ctx.indent_level++; if (!path) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3037,7 +3037,7 @@ xml_print_refs(hid_t did, int source) else { char *t_path = xml_escape_the_string(path, -1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3089,7 +3089,7 @@ xml_print_strs(hid_t did, int source) hid_t type = H5I_INVALID_HID; hid_t space = H5I_INVALID_HID; hssize_t ssiz = -1; - htri_t is_vlstr = FALSE; + htri_t is_vlstr = false; size_t tsiz = 0; hsize_t i; size_t str_size = 0; @@ -3189,7 +3189,7 @@ xml_print_strs(hid_t did, int source) } if (!onestring) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3200,7 +3200,7 @@ xml_print_strs(hid_t did, int source) else { char *t_onestring = xml_escape_the_string(onestring, (int)str_size); if (t_onestring) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -3300,7 +3300,7 @@ check_filters(hid_t dcpl) namebuf, NULL); if (filter == H5Z_FILTER_DEFLATE) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3319,7 +3319,7 @@ check_filters(hid_t dcpl) } else if (filter == H5Z_FILTER_FLETCHER32) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3330,7 +3330,7 @@ check_filters(hid_t dcpl) } else if (filter == H5Z_FILTER_SHUFFLE) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3342,7 +3342,7 @@ check_filters(hid_t dcpl) else if (filter == H5Z_FILTER_SZIP) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3436,7 +3436,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3454,7 +3454,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) if (H5Tget_class(type) == H5T_REFERENCE) { const char *path = lookup_ref_path(*(H5R_ref_t *)buf); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3462,7 +3462,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); if (!path) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3473,7 +3473,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) else { char *t_path = xml_escape_the_string(path, -1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3483,7 +3483,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) free(t_path); } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3495,7 +3495,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) } else if (H5Tget_class(type) == H5T_STRING) { /* ????? */ - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3503,7 +3503,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3515,7 +3515,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) /* all other data */ switch (H5Tget_class(type)) { case H5T_INTEGER: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3523,7 +3523,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -3532,7 +3532,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3541,7 +3541,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); break; case H5T_FLOAT: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3549,7 +3549,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -3558,7 +3558,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3568,7 +3568,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) break; case H5T_BITFIELD: case H5T_OPAQUE: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3577,7 +3577,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); sz = H5Tget_size(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -3593,7 +3593,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3602,7 +3602,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); break; case H5T_ENUM: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3611,7 +3611,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); name = H5Tget_member_name(type, *(unsigned *)buf); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -3621,7 +3621,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); if (name) H5free_memory(name); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3630,7 +3630,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); break; case H5T_ARRAY: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3638,7 +3638,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3647,7 +3647,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); break; case H5T_TIME: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3655,7 +3655,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3664,7 +3664,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); break; case H5T_COMPOUND: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3672,7 +3672,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3681,7 +3681,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); break; case H5T_VLEN: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3689,7 +3689,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3702,7 +3702,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) case H5T_STRING: case H5T_REFERENCE: default: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3710,7 +3710,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3724,7 +3724,7 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3817,7 +3817,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss xml_name_to_XID(did, tmp, rstr, 100, 1); xml_name_to_XID(did, prefix, pstr, 100, 1); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3852,7 +3852,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3862,7 +3862,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3877,7 +3877,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss for (i = 0; i < ndims; i++) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3887,7 +3887,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3901,7 +3901,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3912,7 +3912,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3922,7 +3922,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3937,7 +3937,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss else if (H5D_CONTIGUOUS == H5Pget_layout(dcpl)) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3946,7 +3946,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3955,7 +3955,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3967,7 +3967,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss else if (H5D_COMPACT == H5Pget_layout(dcpl)) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3976,7 +3976,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -3985,7 +3985,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4001,7 +4001,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4050,7 +4050,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level++; dump_indent += COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4063,7 +4063,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (fvstatus == H5D_FILL_VALUE_DEFAULT && ft == H5D_FILL_TIME_IFSET)) { ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4076,7 +4076,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss xml_dump_fill_value(dcpl, type); } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4087,7 +4087,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4142,7 +4142,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss case H5T_TIME: ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4150,7 +4150,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4158,7 +4158,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4166,7 +4166,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4178,7 +4178,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss break; case H5T_COMPOUND: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4194,7 +4194,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss break; case H5T_REFERENCE: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4202,7 +4202,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); if (!H5Tequal(type, H5T_STD_REF_OBJ)) { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4210,7 +4210,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4219,7 +4219,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } else { - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4229,7 +4229,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss xml_print_refs(did, DATASET_DATA); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4238,7 +4238,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); } - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4250,7 +4250,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss case H5T_VLEN: ctx.indent_level--; dump_indent -= COL; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4269,7 +4269,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss case H5T_NO_CLASS: case H5T_NCLASSES: default: - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4277,7 +4277,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4285,7 +4285,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4293,7 +4293,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4307,7 +4307,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss /* no data written */ ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4316,7 +4316,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4325,7 +4325,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4339,7 +4339,7 @@ xml_dump_dataset(hid_t did, const char *name, struct subset_t H5_ATTR_UNUSED *ss H5Sclose(space); H5Pclose(dcpl); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4404,7 +4404,7 @@ xml_print_enum(hid_t type) nmembs = (unsigned)H5Tget_nmembers(type); super = H5Tget_super(type); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4414,7 +4414,7 @@ xml_print_enum(hid_t type) xml_print_datatype(super, 0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4465,7 +4465,7 @@ xml_print_enum(hid_t type) for (i = 0; i < nmembs; i++) { char *t_name = xml_escape_the_name(name[i]); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4473,7 +4473,7 @@ xml_print_enum(hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -4484,7 +4484,7 @@ xml_print_enum(hid_t type) free(t_name); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4492,7 +4492,7 @@ xml_print_enum(hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); @@ -4500,7 +4500,7 @@ xml_print_enum(hid_t type) h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level++; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; h5tools_simple_prefix(rawoutstream, outputformat, &ctx, (hsize_t)0, 0); /* Render the element */ @@ -4527,7 +4527,7 @@ xml_print_enum(hid_t type) (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ctx.indent_level--; - ctx.need_prefix = TRUE; + ctx.need_prefix = true; /* Render the element */ h5tools_str_reset(&buffer); |