diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-06-16 19:28:24 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-06-16 19:28:24 (GMT) |
commit | 47073183e39484499aacb1fdfa1a817340b2a16b (patch) | |
tree | 2929dcc2511e391c0f1cea500d1e45fbe4006127 /src/H5private.h | |
parent | 747e7945f9b208664332bb0b13f2caac5a679703 (diff) | |
download | hdf5-47073183e39484499aacb1fdfa1a817340b2a16b.zip hdf5-47073183e39484499aacb1fdfa1a817340b2a16b.tar.gz hdf5-47073183e39484499aacb1fdfa1a817340b2a16b.tar.bz2 |
[svn-r19011] 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.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/H5private.h b/src/H5private.h index 5511ee9..e18bec6 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1934,20 +1934,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) \ @@ -2011,10 +2009,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*/ \ |