From 6b449ba34aa4825c65143b9adce63b2a3c9c669e Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 23 Oct 1998 15:10:29 -0500 Subject: [svn-r785] Moved SUCCEED & FAIL back into H5private.h --- src/H5private.h | 14 ++++++++++++++ src/H5public.h | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/H5private.h b/src/H5private.h index 2435191..058dedf 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -28,6 +28,20 @@ #define HDF5_SHAREDHEADER_VERSION 0 /* of the Shared-Header Info */ /* + * Status return values for the `herr_t' type. + * Since some unix/c routines use 0 and -1 (or more precisely, non-negative + * vs. negative) as their return code, and some assumption had been made in + * the code about that, it is important to keep these constants the same + * values. When checking the success or failure of an integer-valued + * function, remember to compare against zero and not one of these two + * values. + */ +#define SUCCEED 0 +#define FAIL (-1) +#define UFAIL (unsigned)(-1) + + +/* * Include those things that almost all source files need. */ #ifdef STDC_HEADERS diff --git a/src/H5public.h b/src/H5public.h index d870851..0f8b6a3 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -47,20 +47,6 @@ typedef int herr_t; /* - * Status return values for the `herr_t' type. - * Since some unix/c routines use 0 and -1 (or more precisely, non-negative - * vs. negative) as their return code, and some assumption had been made in - * the code about that, it is important to keep these constants the same - * values. When checking the success or failure of an integer-valued - * function, remember to compare against zero and not one of these two - * values. - */ -#define SUCCEED 0 -#define FAIL (-1) -#define UFAIL (unsigned)(-1) - - -/* * Boolean type. Successful return values are zero (false) or positive * (true). The typical true value is 1 but don't bet on it. Boolean * functions can also fail, returning a negative value as described above. -- cgit v0.12