summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 00:43:23 (GMT)
committerGitHub <noreply@github.com>2023-06-28 00:43:23 (GMT)
commitd81e751d4124684dbf280221a2f02831882aaa27 (patch)
tree580bf936c550d0692bc8ec7c435e5f935323e943 /tools
parentd278ce1f21903c33c6b28e8acb827e94275d4421 (diff)
downloadhdf5-d81e751d4124684dbf280221a2f02831882aaa27.zip
hdf5-d81e751d4124684dbf280221a2f02831882aaa27.tar.gz
hdf5-d81e751d4124684dbf280221a2f02831882aaa27.tar.bz2
Remove HDva_(arg|copy|end|start) (#3184)
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools_str.c4
-rw-r--r--tools/lib/h5tools_utils.c16
-rw-r--r--tools/src/h5perf/pio_perf.c4
-rw-r--r--tools/src/h5perf/sio_perf.c4
4 files changed, 14 insertions, 14 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index dff9aa0..a3a6995 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -122,9 +122,9 @@ h5tools_str_append(h5tools_str_t *str /*in,out*/, const char *fmt, ...)
int nchars = -1;
size_t avail = str->nalloc - str->len;
- HDva_start(ap, fmt);
+ va_start(ap, fmt);
nchars = HDvsnprintf(str->s + str->len, avail, fmt, ap);
- HDva_end(ap);
+ va_end(ap);
/* Note: HDvsnprintf() behaves differently on Windows as Unix, when
* buffer is smaller than source string. On Unix, this function
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index 8a9d806..46b27df 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -65,15 +65,15 @@ parallel_print(const char *format, ...)
int bytes_written;
va_list ap;
- HDva_start(ap, format);
+ va_start(ap, format);
if (!g_Parallel)
HDvprintf(format, ap);
else {
if (overflow_file == NULL) /*no overflow has occurred yet */ {
bytes_written = HDvsnprintf(outBuff + outBuffOffset, OUTBUFF_SIZE - outBuffOffset, format, ap);
- HDva_end(ap);
- HDva_start(ap, format);
+ va_end(ap);
+ va_start(ap, format);
if ((bytes_written < 0) || ((unsigned)bytes_written >= (OUTBUFF_SIZE - outBuffOffset))) {
/* Terminate the outbuff at the end of the previous output */
@@ -92,7 +92,7 @@ parallel_print(const char *format, ...)
else
bytes_written = HDvfprintf(overflow_file, format, ap);
}
- HDva_end(ap);
+ va_end(ap);
}
/*-------------------------------------------------------------------------
@@ -109,14 +109,14 @@ error_msg(const char *fmt, ...)
{
va_list ap;
- HDva_start(ap, fmt);
+ va_start(ap, fmt);
FLUSHSTREAM(rawattrstream);
FLUSHSTREAM(rawdatastream);
FLUSHSTREAM(rawoutstream);
HDfprintf(rawerrorstream, "%s error: ", h5tools_getprogname());
HDvfprintf(rawerrorstream, fmt, ap);
- HDva_end(ap);
+ va_end(ap);
}
/*-------------------------------------------------------------------------
@@ -133,13 +133,13 @@ warn_msg(const char *fmt, ...)
{
va_list ap;
- HDva_start(ap, fmt);
+ va_start(ap, fmt);
FLUSHSTREAM(rawattrstream);
FLUSHSTREAM(rawdatastream);
FLUSHSTREAM(rawoutstream);
HDfprintf(rawerrorstream, "%s warning: ", h5tools_getprogname());
HDvfprintf(rawerrorstream, fmt, ap);
- HDva_end(ap);
+ va_end(ap);
}
/*-------------------------------------------------------------------------
diff --git a/tools/src/h5perf/pio_perf.c b/tools/src/h5perf/pio_perf.c
index d4b302e..d2f5a80 100644
--- a/tools/src/h5perf/pio_perf.c
+++ b/tools/src/h5perf/pio_perf.c
@@ -1059,11 +1059,11 @@ output_report(const char *fmt, ...)
if (myrank == 0) {
va_list ap;
- HDva_start(ap, fmt);
+ va_start(ap, fmt);
H5_GCC_CLANG_DIAG_OFF("format-nonliteral")
HDvfprintf(output, fmt, ap);
H5_GCC_CLANG_DIAG_ON("format-nonliteral")
- HDva_end(ap);
+ va_end(ap);
}
}
diff --git a/tools/src/h5perf/sio_perf.c b/tools/src/h5perf/sio_perf.c
index ef9e7db..bf70fc3 100644
--- a/tools/src/h5perf/sio_perf.c
+++ b/tools/src/h5perf/sio_perf.c
@@ -633,11 +633,11 @@ output_report(const char *fmt, ...)
{
va_list ap;
- HDva_start(ap, fmt);
+ va_start(ap, fmt);
H5_GCC_CLANG_DIAG_OFF("format-nonliteral")
HDvfprintf(output, fmt, ap);
H5_GCC_CLANG_DIAG_ON("format-nonliteral")
- HDva_end(ap);
+ va_end(ap);
}
/*