summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-08-09 20:48:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-08-09 20:48:23 (GMT)
commit8f7425d2a2fb9ffb7b7b01822a7f9909ce3a4a14 (patch)
tree3978c685e4ac642e74ab97192ecace599f0b622a /src/H5P.c
parentd48558126d9c19fe3b418a22086a015bd56997f9 (diff)
downloadhdf5-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/H5P.c')
-rw-r--r--src/H5P.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/H5P.c b/src/H5P.c
index d77ec18..8b30ef4 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -93,9 +93,13 @@ static herr_t H5P_free_prop(H5P_genprop_t *prop);
herr_t
H5P_init(void)
{
+ herr_t ret_value=SUCCEED; /* Return value */
+
FUNC_ENTER_NOAPI(H5P_init, FAIL);
/* FUNC_ENTER() does all the work */
- FUNC_LEAVE(SUCCEED);
+
+done:
+ FUNC_LEAVE(ret_value);
}
@@ -6551,6 +6555,8 @@ H5P_get_nprops_plist(H5P_genplist_t *plist, size_t *nprops)
--------------------------------------------------------------------------*/
herr_t H5P_get_nprops_pclass(H5P_genclass_t *pclass, size_t *nprops)
{
+ herr_t ret_value=SUCCEED; /* Return value */
+
FUNC_ENTER_NOAPI(H5P_get_nprops_pclass, FAIL);
assert(pclass);
@@ -6559,7 +6565,8 @@ herr_t H5P_get_nprops_pclass(H5P_genclass_t *pclass, size_t *nprops)
/* Get property size */
*nprops=pclass->nprops;
- FUNC_LEAVE (SUCCEED);
+done:
+ FUNC_LEAVE (ret_value);
} /* H5P_get_nprops_pclass() */
@@ -7462,6 +7469,7 @@ unsigned H5P_peek_unsigned(H5P_genplist_t *plist, const char *name)
/* Get the value to return, don't worry about the return value, we can't return it */
H5P_get(plist,name,&ret_value);
+done:
FUNC_LEAVE (ret_value);
} /* H5P_peek_unsigned() */
@@ -7505,6 +7513,7 @@ hid_t H5P_peek_hid_t(H5P_genplist_t *plist, const char *name)
/* Get the value to return, don't worry about the return value, we can't return it */
H5P_get(plist,name,&ret_value);
+done:
FUNC_LEAVE (ret_value);
} /* H5P_peek_hid_t() */
@@ -7548,6 +7557,7 @@ void *H5P_peek_voidp(H5P_genplist_t *plist, const char *name)
/* Get the value to return, don't worry about the return value, we can't return it */
H5P_get(plist,name,&ret_value);
+done:
FUNC_LEAVE (ret_value);
} /* H5P_peek_voidp() */
@@ -7591,6 +7601,7 @@ hsize_t H5P_peek_hsize_t(H5P_genplist_t *plist, const char *name)
/* Get the value to return, don't worry about the return value, we can't return it */
H5P_get(plist,name,&ret_value);
+done:
FUNC_LEAVE (ret_value);
} /* H5P_peek_hsize_t() */
@@ -7634,6 +7645,7 @@ size_t H5P_peek_size_t(H5P_genplist_t *plist, const char *name)
/* Get the value to return, don't worry about the return value, we can't return it */
H5P_get(plist,name,&ret_value);
+done:
FUNC_LEAVE (ret_value);
} /* H5P_peek_size_t() */
@@ -8409,6 +8421,7 @@ char *H5P_get_class_name(H5P_genclass_t *pclass)
/* Get property size */
ret_value=HDstrdup(pclass->name);
+done:
FUNC_LEAVE (ret_value);
} /* H5P_get_class_name() */