summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-01-24 03:26:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-01-24 03:26:37 (GMT)
commit563a8dd1401c2f3c04b897f2a727d7d6ac9b141f (patch)
tree4a62599af4c3f8e1d7d9f007a11fc2fbe0f18cab /src/H5private.h
parentd363f95d6d7c8ac25ccf319e9d136fc5842b9474 (diff)
downloadhdf5-563a8dd1401c2f3c04b897f2a727d7d6ac9b141f.zip
hdf5-563a8dd1401c2f3c04b897f2a727d7d6ac9b141f.tar.gz
hdf5-563a8dd1401c2f3c04b897f2a727d7d6ac9b141f.tar.bz2
[svn-r9861] Purpose:
Bug fix Description: Add detect vasprintf() routine and use it instead of vsnprintf() when formatting error descriptions if it's available. Added configure test to detect "broken" vsnprintf() implementations which don't return the correct number of character for strings that are too long to fit into the buffer provided (currently a problem on the SGIs and probably the HP). Re-wrote error formatting code in H5Epush_stack() to handle broken vsnprintf() implementations, etc. Platforms tested: IRIX64 6.5 (modi4) h5committest
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index fe4cbaa..95694c6 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -838,6 +838,7 @@ H5_DLL int64_t HDstrtoll (const char *s, const char **rest, int base);
#define HDva_arg(A,T) va_arg(A,T)
#define HDva_end(A) va_end(A)
#define HDva_start(A,P) va_start(A,P)
+#define HDvasprintf(RET,FMT,A) vasprintf(RET,FMT,A)
#define HDvfprintf(F,FMT,A) vfprintf(F,FMT,A)
#define HDvprintf(FMT,A) vprintf(FMT,A)
#define HDvsprintf(S,FMT,A) vsprintf(S,FMT,A)