summaryrefslogtreecommitdiffstats
path: root/src/H5Flow.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-28 20:24:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-28 20:24:49 (GMT)
commit55ac27633ba1984d4296159bf06f562d0adaec61 (patch)
tree96a3cd0deec4a113b915b8c527fd4d410074718c /src/H5Flow.c
parent9287018553d4bc83c1d7bb7691bb3a501604b942 (diff)
downloadhdf5-55ac27633ba1984d4296159bf06f562d0adaec61.zip
hdf5-55ac27633ba1984d4296159bf06f562d0adaec61.tar.gz
hdf5-55ac27633ba1984d4296159bf06f562d0adaec61.tar.bz2
[svn-r188] Changed hbool_t from an enum to 'int' and removed BTRUE/BFALSE/BFAIL from code.
Changed interface to the H5P..hyperslab functions to 'int' instead of 'size_t'. Cleaned up lots of warnings on IRIX 6.2 platform. Minor other tweaks to get to a mostly clean build on the SGI. It still whines about 'long long' being non-standard and some "pointless comparison of unsigned with 0" but those aren't big problems.
Diffstat (limited to 'src/H5Flow.c')
-rw-r--r--src/H5Flow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Flow.c b/src/H5Flow.c
index e61d087..bf3a182 100644
--- a/src/H5Flow.c
+++ b/src/H5Flow.c
@@ -18,7 +18,7 @@
#include <sys/types.h>
#include <sys/stat.h>
-#define addr_defined(X) (-1!=(X)->offset && (X)->offset>=0)
+#define addr_defined(X) ((-1!=(X)->offset && (X)->offset>=0) ? TRUE : FALSE)
#define PABLO_MASK H5F_low
static hbool_t interface_initialize_g = FALSE;
@@ -378,14 +378,14 @@ H5F_low_access(const H5F_low_class_t *type, const char *name, int mode,
hbool_t ret_value;
struct stat sb;
- FUNC_ENTER(H5F_low_size, 0);
+ FUNC_ENTER(H5F_low_size, FAIL);
assert(type);
if (type->access) {
ret_value = (type->access) (name, mode, key /*out */ );
} else {
- ret_value = (0 == access(name, mode));
+ ret_value = (0 == access(name, mode) ? TRUE : FALSE);
if (key) {
stat(name, &sb);
key->dev = sb.st_dev;
@@ -588,7 +588,7 @@ hbool_t
H5F_addr_zerop(const haddr_t *addr)
{
FUNC_ENTER(H5F_addr_zerop, FAIL);
- FUNC_LEAVE(0 == addr->offset);
+ FUNC_LEAVE(0 == addr->offset ? TRUE : FALSE);
}
/*-------------------------------------------------------------------------