diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-05-29 15:07:55 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-05-29 15:07:55 (GMT) |
commit | e69e970a1c71621c39a5f5fa656a185948ed1df8 (patch) | |
tree | 6d62761aa80d47e1713786bdeadabed02cc3c8f0 /src/H5Oshared.c | |
parent | 0ba943194ec2c8b74bbfd6531ee7a9b110803974 (diff) | |
download | hdf5-e69e970a1c71621c39a5f5fa656a185948ed1df8.zip hdf5-e69e970a1c71621c39a5f5fa656a185948ed1df8.tar.gz hdf5-e69e970a1c71621c39a5f5fa656a185948ed1df8.tar.bz2 |
[svn-r5471] Purpose:
Code cleanup
Description:
Broke the FUNC_ENTER macro into several macros, with more specialized
uses (which followup mail will describe). This was designed to move
most/all of the checks which could be done at compile time to that point,
instead of needlessly performing them (over & over :-) at run-time.
This reduces the library's size (and thus staticly linked binaries) and
has a minor speedup effect also.
Platforms tested:
IRIX64 6.5 (modi4) with parallel & FORTRAN enabled, and additional testing
on FreeBSD and Solaris immediately after the checkin.
Diffstat (limited to 'src/H5Oshared.c')
-rw-r--r-- | src/H5Oshared.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Oshared.c b/src/H5Oshared.c index 1b8b423..d012149 100644 --- a/src/H5Oshared.c +++ b/src/H5Oshared.c @@ -71,7 +71,7 @@ H5O_shared_decode (H5F_t *f, const uint8_t *buf, H5O_shared_t UNUSED *sh) H5O_shared_t *mesg; unsigned flags, version; - FUNC_ENTER (H5O_shared_decode, NULL); + FUNC_ENTER_NOAPI(H5O_shared_decode, NULL); /* Check args */ assert (f); @@ -132,7 +132,7 @@ H5O_shared_encode (H5F_t *f, uint8_t *buf/*out*/, const void *_mesg) const H5O_shared_t *mesg = (const H5O_shared_t *)_mesg; unsigned flags; - FUNC_ENTER (H5O_shared_encode, FAIL); + FUNC_ENTER_NOAPI(H5O_shared_encode, FAIL); /* Check args */ assert (f); @@ -182,7 +182,7 @@ H5O_shared_size (H5F_t *f, const void UNUSED *_mesg) { size_t size; - FUNC_ENTER (H5O_shared_size, 0); + FUNC_ENTER_NOAPI(H5O_shared_size, 0); size = 1 + /*the flags field */ 7 + /*reserved */ @@ -213,7 +213,7 @@ H5O_shared_debug (H5F_t UNUSED *f, const void *_mesg, { const H5O_shared_t *mesg = (const H5O_shared_t *)_mesg; - FUNC_ENTER (H5O_shared_debug, FAIL); + FUNC_ENTER_NOAPI(H5O_shared_debug, FAIL); /* Check args */ assert (f); |