diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-12-12 18:40:09 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-12-12 18:40:09 (GMT) |
commit | 47d88766dbee3c631c842639d44c362c2b7b8e44 (patch) | |
tree | 77058751c8bcb0260593674f609cb5df1224198c /src/H5private.h | |
parent | 6e9c0514fb45ddb358d36832237a3beace6ffb6b (diff) | |
download | hdf5-47d88766dbee3c631c842639d44c362c2b7b8e44.zip hdf5-47d88766dbee3c631c842639d44c362c2b7b8e44.tar.gz hdf5-47d88766dbee3c631c842639d44c362c2b7b8e44.tar.bz2 |
[svn-r4706] Purpose:
Code cleanup
Description:
Tweaked internal error handling macros to reduce the size of the library's
object code by about 10-20%.
Also cleaned up some compiler warnings...
Platforms tested:
FreeBSD 4.4 (sleipnir)
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/H5private.h b/src/H5private.h index 672098a..9888bd9 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1024,7 +1024,6 @@ extern hbool_t H5_libinit_g; /* Has the library been initialized? */ #define FUNC_ENTER_INIT(func_name,interface_init_func,err) { \ CONSTR (FUNC, #func_name); \ PABLO_SAVE (ID_ ## func_name) \ - static unsigned know_api=0, is_api=0; \ H5TRACE_DECL; \ \ PABLO_TRACE_ON (PABLO_MASK, pablo_func_id); \ @@ -1055,14 +1054,8 @@ extern hbool_t H5_libinit_g; /* Has the library been initialized? */ } \ } \ \ - /* Check if we know this is an API function yet or not */ \ - if(!know_api) { \ - know_api=1; \ - is_api=H5_IS_API(FUNC); \ - } \ - \ /* Clear thread error stack entering public functions */ \ - if (is_api && H5E_clearable_g) { \ + if (H5_IS_API(FUNC) && H5E_clearable_g) { \ H5E_clear (); \ } \ { |