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/H5Olayout.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/H5Olayout.c')
-rw-r--r-- | src/H5Olayout.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/H5Olayout.c b/src/H5Olayout.c index a6dfdbc..7a65fb9 100644 --- a/src/H5Olayout.c +++ b/src/H5Olayout.c @@ -156,6 +156,7 @@ H5O_layout_encode(H5F_t *f, uint8_t *p, const void *_mesg) { const H5O_layout_t *mesg = (const H5O_layout_t *) _mesg; unsigned u; + herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5O_layout_encode, FAIL); @@ -191,7 +192,8 @@ H5O_layout_encode(H5F_t *f, uint8_t *p, const void *_mesg) for (u = 0; u < mesg->ndims; u++) UINT32ENCODE(p, mesg->dim[u]); - FUNC_LEAVE(SUCCEED); +done: + FUNC_LEAVE(ret_value); } @@ -274,6 +276,7 @@ H5O_layout_size(H5F_t *f, const void *_mesg) 6 + /* reserved bytes */ mesg->ndims * 4; /* alignment */ +done: FUNC_LEAVE(ret_value); } @@ -295,13 +298,16 @@ H5O_layout_size(H5F_t *f, const void *_mesg) static herr_t H5O_layout_free (void *mesg) { + herr_t ret_value=SUCCEED; /* Return value */ + FUNC_ENTER_NOAPI(H5O_layout_free, FAIL); assert (mesg); H5FL_FREE(H5O_layout_t,mesg); - FUNC_LEAVE (SUCCEED); +done: + FUNC_LEAVE (ret_value); } @@ -325,6 +331,7 @@ H5O_layout_debug(H5F_t UNUSED *f, const void *_mesg, FILE * stream, { const H5O_layout_t *mesg = (const H5O_layout_t *) _mesg; unsigned u; + herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5O_layout_debug, FAIL); @@ -351,5 +358,6 @@ H5O_layout_debug(H5F_t UNUSED *f, const void *_mesg, FILE * stream, } HDfprintf(stream, "}\n"); - FUNC_LEAVE(SUCCEED); +done: + FUNC_LEAVE(ret_value); } |