diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-08-09 20:48:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-08-09 20:48:23 (GMT) |
commit | 8f7425d2a2fb9ffb7b7b01822a7f9909ce3a4a14 (patch) | |
tree | 3978c685e4ac642e74ab97192ecace599f0b622a /src/H5G.c | |
parent | d48558126d9c19fe3b418a22086a015bd56997f9 (diff) | |
download | hdf5-8f7425d2a2fb9ffb7b7b01822a7f9909ce3a4a14.zip hdf5-8f7425d2a2fb9ffb7b7b01822a7f9909ce3a4a14.tar.gz hdf5-8f7425d2a2fb9ffb7b7b01822a7f9909ce3a4a14.tar.bz2 |
[svn-r5867] Purpose:
Code cleanup
Description:
Changed the last HRETURN* statements in the FUNC_ENTER macros into HGOTO*
macros, which reduces the size of the library binary in certain
configurations by another 10%
Platforms tested:
FreeBSD 4.6 (sleipnir) serial & parallel, IRIX64 6.5 (modi4) serial &
parallel
Diffstat (limited to 'src/H5G.c')
-rw-r--r-- | src/H5G.c | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -1513,6 +1513,8 @@ done: H5G_t * H5G_reopen(H5G_t *grp) { + H5G_t *ret_value; /* Return value */ + FUNC_ENTER_NOAPI(H5G_reopen, NULL); assert(grp); @@ -1520,7 +1522,11 @@ H5G_reopen(H5G_t *grp) grp->nref++; - FUNC_LEAVE(grp); + /* Set return value */ + ret_value=grp; + +done: + FUNC_LEAVE(ret_value); } @@ -1587,10 +1593,17 @@ done: H5G_t * H5G_rootof(H5F_t *f) { + H5G_t *ret_value; /* Return value */ + FUNC_ENTER_NOAPI(H5G_rootof, NULL); while (f->mtab.parent) f = f->mtab.parent; - FUNC_LEAVE(f->shared->root_grp); + + /* Set return value */ + ret_value=f->shared->root_grp; + +done: + FUNC_LEAVE(ret_value); } @@ -1788,7 +1801,7 @@ H5G_entry_t * H5G_loc (hid_t loc_id) { H5F_t *f; - H5G_entry_t *ret_value; + H5G_entry_t *ret_value=NULL; H5G_t *group=NULL; H5T_t *dt=NULL; H5D_t *dset=NULL; |