diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-02-27 01:07:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 01:07:39 (GMT) |
commit | e8b030363999befa548b94ac5c505d170540aebc (patch) | |
tree | 23e9d091c88e76bfe8ab842efa87cdda89e39974 /tools/test/perform/sio_standalone.h | |
parent | 1c10010a316c0885cd71fad6c8d0067a0eb8f7f1 (diff) | |
download | hdf5-e8b030363999befa548b94ac5c505d170540aebc.zip hdf5-e8b030363999befa548b94ac5c505d170540aebc.tar.gz hdf5-e8b030363999befa548b94ac5c505d170540aebc.tar.bz2 |
1.10 Fix tools incompatibility (#1449)
* fix tools incompatibility with get_option #1443
* Fix get_option function
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'tools/test/perform/sio_standalone.h')
-rw-r--r-- | tools/test/perform/sio_standalone.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/test/perform/sio_standalone.h b/tools/test/perform/sio_standalone.h index 2fc644f..cadc00d 100644 --- a/tools/test/perform/sio_standalone.h +++ b/tools/test/perform/sio_standalone.h @@ -480,9 +480,9 @@ extern char * strdup(const char *s); /** From h5tools_utils.h **/ -H5_DLLVAR int H5_opterr; /* getoption prints errors if this is on */ -H5_DLLVAR int H5_optind; /* token pointer */ -H5_DLLVAR const char *H5_optarg; /* flag argument (or value) */ +extern int opt_err; /* getoption prints errors if this is on */ +extern int opt_ind; /* token pointer */ +extern const char *opt_arg; /* flag argument (or value) */ enum h5_arg_level { no_arg = 0, /* doesn't take an argument */ @@ -490,7 +490,7 @@ enum h5_arg_level { optional_arg /* argument is optional */ }; -struct h5_long_options { +struct long_options { const char * name; /* Name of the long option */ enum h5_arg_level has_arg; /* Whether we should look for an arg */ char shortval; /* The shortname equivalent of long arg @@ -498,8 +498,7 @@ struct h5_long_options { */ }; -extern int H5_get_option(int argc, const char *const *argv, const char *opt, - const struct h5_long_options *l_opt); +extern int get_option(int argc, const char *const *argv, const char *opt, const struct long_options *l_opt); extern int nCols; /*max number of columns for outputting */ |