summaryrefslogtreecommitdiffstats
path: root/src/H5Eprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-10 20:26:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-10 20:26:02 (GMT)
commitf8da76cb9f96d4b233ac9dcb896f9df74e803f38 (patch)
treeb23e28d99b9391163e25d84daabb09906998078f /src/H5Eprivate.h
parent71ca572047b5d73b200eb761bc1234f3b6c4783d (diff)
downloadhdf5-f8da76cb9f96d4b233ac9dcb896f9df74e803f38.zip
hdf5-f8da76cb9f96d4b233ac9dcb896f9df74e803f38.tar.gz
hdf5-f8da76cb9f96d4b233ac9dcb896f9df74e803f38.tar.bz2
[svn-r6266] Purpose:
Code cleanup/new feature. Description: Split FUNC_LEAVE into API and non-API specific versions. This allows a solution to compiling this branch with C++, as well as reducing the size of the binaries produced. Platforms tested: FreeBSD 4.7 (sleipnir) w/serial, parallel (including MPE) & thread-safe
Diffstat (limited to 'src/H5Eprivate.h')
-rw-r--r--src/H5Eprivate.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/H5Eprivate.h b/src/H5Eprivate.h
index 52566e4..19925d7 100644
--- a/src/H5Eprivate.h
+++ b/src/H5Eprivate.h
@@ -31,7 +31,7 @@
#define HERROR(maj, min, str) H5E_push(maj, min, FUNC, __FILE__, __LINE__, str)
/*
- * HCOMMON_ERROR macro, used by HRETURN_ERROR and HGOTO_ERROR
+ * HCOMMON_ERROR macro, used by HDONE_ERROR and HGOTO_ERROR
* (Shouldn't need to be used outside this header file)
*/
#define HCOMMON_ERROR(maj, min, str) \
@@ -39,23 +39,6 @@
if (H5_IS_API(FUNC) && H5E_auto_g) \
(H5E_auto_g)(H5E_auto_data_g)
-/* Note: if this is still ifdef'ed out and its after the v1.6 release, then
- * we should be completely free of the necessity for this macro and it can
- * be removed. -QAK, 9/25/2002
- */
-#ifdef OLD_WAY
-/*
- * HRETURN_ERROR macro, used to facilitate error reporting between a
- * FUNC_ENTER() and a FUNC_LEAVE() within a function body. The arguments are
- * the major error number, the minor error number, a return value, and a
- * description of the error.
- */
-#define HRETURN_ERROR(maj, min, ret_val, str) { \
- HCOMMON_ERROR (maj, min, str); \
- HRETURN(ret_val); \
-}
-#endif /* OLD_WAY */
-
/*
* HDONE_ERROR macro, used to facilitate error reporting between a
* FUNC_ENTER() and a FUNC_LEAVE() within a function body, but _AFTER_ the
@@ -69,20 +52,6 @@
}
/*
- * HRETURN macro, used to facilitate returning from a function between a
- * FUNC_ENTER() and a FUNC_LEAVE() within a function body. The argument is
- * the return value.
- */
-#define HRETURN(ret_val) { \
- FINISH_MPE_LOG; \
- PABLO_TRACE_OFF (PABLO_MASK, pablo_func_id); \
- H5TRACE_RETURN(ret_val); \
- H5_API_UNLOCK \
- H5_API_SET_CANCEL \
- return (ret_val); \
-}
-
-/*
* HGOTO_ERROR macro, used to facilitate error reporting between a
* FUNC_ENTER() and a FUNC_LEAVE() within a function body. The arguments are
* the major error number, the minor error number, the return value, and an
@@ -154,10 +123,6 @@ extern int H5E_mpi_error_str_len;
HMPI_ERROR(mpierr); \
HGOTO_ERROR(H5E_INTERNAL, H5E_MPI, retcode, str); \
}
-#define HMPI_RETURN_ERROR(retcode, str, mpierr){ \
- HMPI_ERROR(mpierr); \
- HRETURN_ERROR(H5E_INTERNAL, H5E_MPI, retcode, str); \
-}
#endif
#endif