summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-29 21:03:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-29 21:03:33 (GMT)
commitb51c4f6d24fa95c3ae9c465880a2256a86bb7b47 (patch)
tree3cbd4a2addcf0654730ae74f0b842cc15aa471ee /src/H5.c
parentd4eec2cb073e4e9f02ca990cbd93480e526a130e (diff)
downloadhdf5-b51c4f6d24fa95c3ae9c465880a2256a86bb7b47.zip
hdf5-b51c4f6d24fa95c3ae9c465880a2256a86bb7b47.tar.gz
hdf5-b51c4f6d24fa95c3ae9c465880a2256a86bb7b47.tar.bz2
[svn-r8760] Purpose:
Code cleanup & small bug fix Description: Regenerate dependency files Add htri_t as separate type from hbool_t for code tracing purposes. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel too minor to require h5committest
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index b105721..dec226e 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -2890,6 +2890,21 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
break;
+ case 't':
+ if (ptr) {
+ if (vp) {
+ fprintf (out, "0x%lx", (unsigned long)vp);
+ } else {
+ fprintf(out, "NULL");
+ }
+ } else {
+ htri_t tri_var = va_arg (ap, htri_t);
+ if (tri_var>0) fprintf (out, "TRUE");
+ else if (!tri_var) fprintf (out, "FALSE");
+ else fprintf (out, "FAIL(%d)", (int)tri_var);
+ }
+ break;
+
case 'x':
if (ptr) {
if (vp) {