summaryrefslogtreecommitdiffstats
path: root/src/H5Z.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/H5Z.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/H5Z.c')
-rw-r--r--src/H5Z.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/H5Z.c b/src/H5Z.c
index d7406f7..3760d31 100644
--- a/src/H5Z.c
+++ b/src/H5Z.c
@@ -152,7 +152,7 @@ H5Z_term_interface (void)
herr_t
H5Zregister(H5Z_filter_t id, const char *comment, H5Z_func_t func)
{
- FUNC_ENTER (H5Zregister, FAIL);
+ FUNC_ENTER_API(H5Zregister, FAIL);
H5TRACE3("e","Zfsx",id,comment,func);
/* Check args */
@@ -199,7 +199,7 @@ H5Z_register (H5Z_filter_t id, const char *comment, H5Z_func_t func)
{
size_t i;
- FUNC_ENTER (H5Z_register, FAIL);
+ FUNC_ENTER_NOAPI(H5Z_register, FAIL);
assert (id>=0 && id<=H5Z_FILTER_MAX);
@@ -257,7 +257,8 @@ H5Z_append(H5O_pline_t *pline, H5Z_filter_t filter, unsigned flags,
{
size_t idx, i;
- FUNC_ENTER(H5Z_append, FAIL);
+ FUNC_ENTER_NOAPI(H5Z_append, FAIL);
+
assert(pline);
assert(filter>=0 && filter<=H5Z_FILTER_MAX);
assert(0==(flags & ~((unsigned)H5Z_FLAG_DEFMASK)));
@@ -331,7 +332,7 @@ H5Z_find(H5Z_filter_t id)
{
size_t i;
- FUNC_ENTER(H5Z_find, NULL);
+ FUNC_ENTER_NOAPI(H5Z_find, NULL);
for (i=0; i<H5Z_table_used_g; i++) {
if (H5Z_table_g[i].id == id) {
@@ -383,7 +384,7 @@ H5Z_pipeline(H5F_t UNUSED *f, const H5O_pline_t *pline, unsigned flags,
H5_timer_t timer;
#endif
- FUNC_ENTER(H5Z_pipeline, FAIL);
+ FUNC_ENTER_NOAPI(H5Z_pipeline, FAIL);
assert(f);
assert(0==(flags & ~((unsigned)H5Z_FLAG_INVMASK)));