summaryrefslogtreecommitdiffstats
path: root/tools/src/h5diff/h5diff_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/h5diff/h5diff_common.c')
-rw-r--r--tools/src/h5diff/h5diff_common.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/tools/src/h5diff/h5diff_common.c b/tools/src/h5diff/h5diff_common.c
index 4854534..c66311f 100644
--- a/tools/src/h5diff/h5diff_common.c
+++ b/tools/src/h5diff/h5diff_common.c
@@ -198,7 +198,7 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
break;
case 'l':
- opts->follow_links = TRUE;
+ opts->follow_links = true;
break;
case 'x':
@@ -241,7 +241,7 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
break;
case 'C':
- opts->disable_compact_subset = TRUE;
+ opts->disable_compact_subset = true;
break;
case 'A':
@@ -323,13 +323,13 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
case '1':
opts->vol_info[0].type = VOL_BY_VALUE;
opts->vol_info[0].u.value = (H5VL_class_value_t)atoi(H5_optarg);
- opts->custom_vol[0] = TRUE;
+ opts->custom_vol[0] = true;
break;
case '2':
opts->vol_info[0].type = VOL_BY_NAME;
opts->vol_info[0].u.name = H5_optarg;
- opts->custom_vol[0] = TRUE;
+ opts->custom_vol[0] = true;
break;
case '3':
@@ -339,13 +339,13 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
case '4':
opts->vol_info[1].type = VOL_BY_VALUE;
opts->vol_info[1].u.value = (H5VL_class_value_t)atoi(H5_optarg);
- opts->custom_vol[1] = TRUE;
+ opts->custom_vol[1] = true;
break;
case '5':
opts->vol_info[1].type = VOL_BY_NAME;
opts->vol_info[1].u.name = H5_optarg;
- opts->custom_vol[1] = TRUE;
+ opts->custom_vol[1] = true;
break;
case '6':
@@ -355,13 +355,13 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
case '7':
opts->vfd_info[0].type = VFD_BY_VALUE;
opts->vfd_info[0].u.value = (H5FD_class_value_t)atoi(H5_optarg);
- opts->custom_vfd[0] = TRUE;
+ opts->custom_vfd[0] = true;
break;
case '8':
opts->vfd_info[0].type = VFD_BY_NAME;
opts->vfd_info[0].u.name = H5_optarg;
- opts->custom_vfd[0] = TRUE;
+ opts->custom_vfd[0] = true;
break;
case '9':
@@ -371,13 +371,13 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
case '0':
opts->vfd_info[1].type = VFD_BY_VALUE;
opts->vfd_info[1].u.value = (H5FD_class_value_t)atoi(H5_optarg);
- opts->custom_vfd[1] = TRUE;
+ opts->custom_vfd[1] = true;
break;
case 'Y':
opts->vfd_info[1].type = VFD_BY_NAME;
opts->vfd_info[1].u.name = H5_optarg;
- opts->custom_vfd[1] = TRUE;
+ opts->custom_vfd[1] = true;
break;
case 'Z':
@@ -387,7 +387,7 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
}
/* If file 1 uses the onion VFD, get the revision number */
- if (opts->vfd_info[0].u.name && !HDstrcmp(opts->vfd_info[0].u.name, "onion")) {
+ if (opts->vfd_info[0].u.name && !strcmp(opts->vfd_info[0].u.name, "onion")) {
if (opts->vfd_info[0].info) {
errno = 0;
onion_fa_g_1.revision_num = strtoull(opts->vfd_info[0].info, NULL, 10);
@@ -404,7 +404,7 @@ parse_command_line(int argc, const char *const *argv, const char **fname1, const
}
/* If file 2 uses the onion VFD, get the revision number */
- if (opts->vfd_info[1].u.name && !HDstrcmp(opts->vfd_info[1].u.name, "onion")) {
+ if (opts->vfd_info[1].u.name && !strcmp(opts->vfd_info[1].u.name, "onion")) {
if (opts->vfd_info[1].info) {
errno = 0;
onion_fa_g_2.revision_num = strtoull(opts->vfd_info[1].info, NULL, 10);
@@ -512,7 +512,7 @@ check_n_input(const char *str)
unsigned i;
char c;
- for (i = 0; i < HDstrlen(str); i++) {
+ for (i = 0; i < strlen(str); i++) {
c = str[i];
if (i == 0) {
if (c < 49 || c > 57) /* ascii values between 1 and 9 */
@@ -541,7 +541,7 @@ check_p_input(const char *str)
* the atof return value on a hexadecimal input is different
* on some systems; we do a character check for this
*/
- if (HDstrlen(str) > 2 && str[0] == '0' && str[1] == 'x')
+ if (strlen(str) > 2 && str[0] == '0' && str[1] == 'x')
return -1;
x = atof(str);
@@ -568,7 +568,7 @@ check_d_input(const char *str)
* the atof return value on a hexadecimal input is different
* on some systems; we do a character check for this
*/
- if (HDstrlen(str) > 2 && str[0] == '0' && str[1] == 'x')
+ if (strlen(str) > 2 && str[0] == '0' && str[1] == 'x')
return -1;
x = atof(str);