summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-11 19:54:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-11 19:54:57 (GMT)
commitc3a1173026916e25a5a44f1d4255b889ccbaeb2b (patch)
tree83364505bd34dcf447da76e112ccf18727bf7336 /src
parentdc71e191ed620aefe2a8a567994abc1b0a8a7c43 (diff)
downloadhdf5-c3a1173026916e25a5a44f1d4255b889ccbaeb2b.zip
hdf5-c3a1173026916e25a5a44f1d4255b889ccbaeb2b.tar.gz
hdf5-c3a1173026916e25a5a44f1d4255b889ccbaeb2b.tar.bz2
[svn-r6268] Purpose:
Code improvement Description: Add extra pair of braces to API versions of FUNC_ENTER/FUNC_LEAVE macros, to make API <-> non-API mismatches obvious. Platforms tested: FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5private.h b/src/H5private.h
index dc4e110..f479d4b 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1107,7 +1107,7 @@ extern hbool_t H5_MPEinit_g; /* Has the MPE Library been initialized? */
H5TRACE_DECL
/* Use this macro for all "normal" API functions */
-#define FUNC_ENTER_API(func_name,err) { \
+#define FUNC_ENTER_API(func_name,err) {{ \
FUNC_ENTER_API_VARS; \
FUNC_ENTER_COMMON(func_name,H5_IS_API(FUNC)); \
FUNC_ENTER_API_THREADSAFE; \
@@ -1120,7 +1120,7 @@ extern hbool_t H5_MPEinit_g; /* Has the MPE Library been initialized? */
* Use this macro for API functions that shouldn't clear the error stack
* like H5Eprint and H5Ewalk.
*/
-#define FUNC_ENTER_API_NOCLEAR(func_name,err) { \
+#define FUNC_ENTER_API_NOCLEAR(func_name,err) {{ \
FUNC_ENTER_API_VARS; \
FUNC_ENTER_COMMON(func_name,H5_IS_API(FUNC)); \
FUNC_ENTER_API_THREADSAFE; \
@@ -1132,7 +1132,7 @@ extern hbool_t H5_MPEinit_g; /* Has the MPE Library been initialized? */
* of the library or an interface, just perform tracing, etc. Examples
* are: H5close, H5check_version, H5Eget_major, H5Eget_minor.
*/
-#define FUNC_ENTER_API_NOINIT(func_name) { \
+#define FUNC_ENTER_API_NOINIT(func_name) {{ \
FUNC_ENTER_API_VARS; \
FUNC_ENTER_COMMON(func_name,H5_IS_API(FUNC)); \
FUNC_ENTER_API_THREADSAFE; \
@@ -1214,7 +1214,7 @@ extern hbool_t H5_MPEinit_g; /* Has the MPE Library been initialized? */
H5_API_SET_CANCEL \
return (ret_value); \
} /*end scope from end of FUNC_ENTER*/ \
-} /*end scope from beginning of FUNC_ENTER*/
+}} /*end scope from beginning of FUNC_ENTER*/
#define FUNC_LEAVE_NOAPI(ret_value) \
PABLO_TRACE_OFF (PABLO_MASK, pablo_func_id); \