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/H5Oname.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/H5Oname.c')
-rw-r--r-- | src/H5Oname.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/H5Oname.c b/src/H5Oname.c index bbd4cb1..94514c9 100644 --- a/src/H5Oname.c +++ b/src/H5Oname.c @@ -121,6 +121,7 @@ static herr_t H5O_name_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg) { const H5O_name_t *mesg = (const H5O_name_t *) _mesg; + herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5O_name_encode, FAIL); @@ -132,7 +133,8 @@ H5O_name_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg) /* encode */ HDstrcpy((char*)p, mesg->s); - FUNC_LEAVE(SUCCEED); +done: + FUNC_LEAVE(ret_value); } @@ -205,7 +207,7 @@ static size_t H5O_name_size(H5F_t UNUSED *f, const void *_mesg) { const H5O_name_t *mesg = (const H5O_name_t *) _mesg; - size_t size; + size_t ret_value; FUNC_ENTER_NOAPI(H5O_name_size, 0); @@ -213,9 +215,10 @@ H5O_name_size(H5F_t UNUSED *f, const void *_mesg) assert(f); assert(mesg); - size = mesg->s ? HDstrlen(mesg->s) + 1 : 0; + ret_value = mesg->s ? HDstrlen(mesg->s) + 1 : 0; - FUNC_LEAVE(size); +done: + FUNC_LEAVE(ret_value); } @@ -239,6 +242,7 @@ static herr_t H5O_name_reset(void *_mesg) { H5O_name_t *mesg = (H5O_name_t *) _mesg; + herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5O_name_reset, FAIL); @@ -248,7 +252,8 @@ H5O_name_reset(void *_mesg) /* reset */ mesg->s = H5MM_xfree(mesg->s); - FUNC_LEAVE(SUCCEED); +done: + FUNC_LEAVE(ret_value); } @@ -272,6 +277,7 @@ H5O_name_debug(H5F_t UNUSED *f, const void *_mesg, FILE *stream, int indent, int fwidth) { const H5O_name_t *mesg = (const H5O_name_t *)_mesg; + herr_t ret_value=SUCCEED; /* Return value */ FUNC_ENTER_NOAPI(H5O_name_debug, FAIL); @@ -286,5 +292,6 @@ H5O_name_debug(H5F_t UNUSED *f, const void *_mesg, FILE *stream, "Name:", mesg->s); - FUNC_LEAVE(SUCCEED); +done: + FUNC_LEAVE(ret_value); } |