summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2010-06-16 19:26:17 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2010-06-16 19:26:17 (GMT)
commita0e6e24ff54105ed606d6a7ef317c98864dbe90a (patch)
tree513569c0180d98abf12fa418c0a4518469943fb1 /src/H5private.h
parent1c8ec63a3deefff0123f15e94c9c8b9209046293 (diff)
downloadhdf5-a0e6e24ff54105ed606d6a7ef317c98864dbe90a.zip
hdf5-a0e6e24ff54105ed606d6a7ef317c98864dbe90a.tar.gz
hdf5-a0e6e24ff54105ed606d6a7ef317c98864dbe90a.tar.bz2
[svn-r19010] Purpose:
Clean up code. Description: Reorganize to remove mixed declarations and code (which should satisfy windows compile). Tested: jam, blue print, gandalf Windows 7 w/ VS Express 2008 (on VMware)
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 7666d31..5b8d123 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1938,20 +1938,18 @@ static herr_t H5_INTERFACE_INIT_FUNC(void);
* and FUNC_ENTER_NOAPI_NOINIT macros when the function needs to set
* up a metadata tag. */
#define FUNC_ENTER_NOAPI_TAG(func_name, dxpl_id, tag, err) { \
- FUNC_ENTER_COMMON(func_name, !H5_IS_API(#func_name)); \
- \
haddr_t prev_tag = HADDR_UNDEF; \
hid_t tag_dxpl_id = dxpl_id; \
+ FUNC_ENTER_COMMON(func_name, !H5_IS_API(#func_name)); \
if(H5AC_tag(tag_dxpl_id, tag, &prev_tag)<0) \
HGOTO_ERROR(H5E_CACHE, H5E_CANTTAG, err, "unable to apply metadata tag") \
- \
FUNC_ENTER_NOAPI_INIT(func_name,err) \
{
#define FUNC_ENTER_NOAPI_NOINIT_TAG(func_name, dxpl_id, tag, err) { \
- FUNC_ENTER_COMMON(func_name, !H5_IS_API(#func_name)); \
haddr_t prev_tag = HADDR_UNDEF; \
hid_t tag_dxpl_id = dxpl_id; \
+ FUNC_ENTER_COMMON(func_name, !H5_IS_API(#func_name)); \
if(H5AC_tag(tag_dxpl_id, tag, &prev_tag)<0) \
HGOTO_ERROR(H5E_CACHE, H5E_CANTTAG, err, "unable to apply metadata tag") \
H5_PUSH_FUNC(#func_name) \
@@ -2015,10 +2013,8 @@ static herr_t H5_INTERFACE_INIT_FUNC(void);
/* Use this macro when exiting a function that set up a metadata tag */
#define FUNC_LEAVE_NOAPI_TAG(ret_value, err) \
- \
if(H5AC_tag(tag_dxpl_id, prev_tag, NULL)<0) \
HDONE_ERROR(H5E_CACHE, H5E_CANTTAG, err, "unable to apply metadata tag") \
- \
H5_POP_FUNC \
return(ret_value); \
} /*end scope from end of FUNC_ENTER*/ \