summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-05-29 15:07:55 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-05-29 15:07:55 (GMT)
commite69e970a1c71621c39a5f5fa656a185948ed1df8 (patch)
tree6d62761aa80d47e1713786bdeadabed02cc3c8f0 /src/H5Odtype.c
parent0ba943194ec2c8b74bbfd6531ee7a9b110803974 (diff)
downloadhdf5-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/H5Odtype.c')
-rw-r--r--src/H5Odtype.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 8adfc8b..cad92d9 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -821,7 +821,7 @@ H5O_dtype_decode(H5F_t *f, const uint8_t *p,
{
H5T_t *dt = NULL;
- FUNC_ENTER(H5O_dtype_decode, NULL);
+ FUNC_ENTER_NOAPI(H5O_dtype_decode, NULL);
/* check args */
assert(p);
@@ -862,7 +862,7 @@ H5O_dtype_encode(H5F_t UNUSED *f, uint8_t *p, const void *mesg)
{
const H5T_t *dt = (const H5T_t *) mesg;
- FUNC_ENTER(H5O_dtype_encode, FAIL);
+ FUNC_ENTER_NOAPI(H5O_dtype_encode, FAIL);
/* check args */
assert(f);
@@ -900,7 +900,7 @@ H5O_dtype_copy(const void *_src, void *_dst)
const H5T_t *src = (const H5T_t *) _src;
H5T_t *dst = NULL;
- FUNC_ENTER(H5O_dtype_copy, NULL);
+ FUNC_ENTER_NOAPI(H5O_dtype_copy, NULL);
/* check args */
assert(src);
@@ -941,7 +941,7 @@ H5O_dtype_size(H5F_t *f, const void *mesg)
size_t ret_value = 8;
const H5T_t *dt = (const H5T_t *) mesg;
- FUNC_ENTER(H5O_dtype_size, 0);
+ FUNC_ENTER_NOAPI(H5O_dtype_size, 0);
assert(mesg);
@@ -1027,7 +1027,7 @@ H5O_dtype_reset(void *_mesg)
H5T_t *dt = (H5T_t *) _mesg;
H5T_t *tmp = NULL;
- FUNC_ENTER(H5O_dtype_reset, FAIL);
+ FUNC_ENTER_NOAPI(H5O_dtype_reset, FAIL);
if (dt) {
if (NULL==(tmp = H5FL_ALLOC(H5T_t,0))) {
@@ -1059,7 +1059,7 @@ H5O_dtype_reset(void *_mesg)
static herr_t
H5O_dtype_free (void *mesg)
{
- FUNC_ENTER (H5O_dtype_free, FAIL);
+ FUNC_ENTER_NOAPI(H5O_dtype_free, FAIL);
assert (mesg);
@@ -1090,7 +1090,8 @@ H5O_dtype_get_share(H5F_t UNUSED *f, const void *_mesg,
{
const H5T_t *dt = (const H5T_t *)_mesg;
- FUNC_ENTER (H5O_dtype_get_share, FAIL);
+ FUNC_ENTER_NOAPI(H5O_dtype_get_share, FAIL);
+
assert (dt);
assert (sh);
@@ -1127,7 +1128,8 @@ H5O_dtype_set_share (H5F_t UNUSED *f, void *_mesg/*in,out*/,
{
H5T_t *dt = (H5T_t *)_mesg;
- FUNC_ENTER (H5O_dtype_set_share, FAIL);
+ FUNC_ENTER_NOAPI(H5O_dtype_set_share, FAIL);
+
assert (dt);
assert (sh);
assert (!sh->in_gh);
@@ -1167,8 +1169,7 @@ H5O_dtype_debug(H5F_t *f, const void *mesg, FILE *stream,
int i;
size_t k;
-
- FUNC_ENTER(H5O_dtype_debug, FAIL);
+ FUNC_ENTER_NOAPI(H5O_dtype_debug, FAIL);
/* check args */
assert(f);