summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.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/H5Tvlen.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/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 32cad50..24a9a1e 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -149,7 +149,7 @@ hssize_t H5T_vlen_seq_mem_getlen(H5F_t UNUSED *f, void *vl_addr)
hvl_t *vl=(hvl_t *)vl_addr; /* Pointer to the user's hvl_t information */
hssize_t ret_value = FAIL; /*return value */
- FUNC_ENTER (H5T_vlen_seq_mem_getlen, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_seq_mem_getlen, FAIL);
/* check parameters */
assert(vl);
@@ -178,7 +178,7 @@ herr_t H5T_vlen_seq_mem_read(H5F_t UNUSED *f, void *vl_addr, void *buf, size_t l
{
hvl_t *vl=(hvl_t *)vl_addr; /* Pointer to the user's hvl_t information */
- FUNC_ENTER (H5T_vlen_seq_mem_read, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_seq_mem_read, FAIL);
/* check parameters */
assert(vl && vl->p);
@@ -212,7 +212,7 @@ herr_t H5T_vlen_seq_mem_write(hid_t plist_id, H5F_t UNUSED *f, void *vl_addr, vo
size_t len;
H5P_genplist_t *plist; /* Property list */
- FUNC_ENTER (H5T_vlen_seq_mem_write, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_seq_mem_write, FAIL);
/* check parameters */
assert(vl);
@@ -277,7 +277,7 @@ hssize_t H5T_vlen_str_mem_getlen(H5F_t UNUSED *f, void *vl_addr)
char *s=*(char **)vl_addr; /* Pointer to the user's hvl_t information */
hssize_t ret_value = FAIL; /*return value */
- FUNC_ENTER (H5T_vlen_str_mem_getlen, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_str_mem_getlen, FAIL);
/* check parameters */
assert(s);
@@ -306,7 +306,7 @@ herr_t H5T_vlen_str_mem_read(H5F_t UNUSED *f, void *vl_addr, void *buf, size_t l
{
char *s=*(char **)vl_addr; /* Pointer to the user's hvl_t information */
- FUNC_ENTER (H5T_vlen_str_mem_read, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_str_mem_read, FAIL);
/* check parameters */
assert(s);
@@ -340,7 +340,7 @@ herr_t H5T_vlen_str_mem_write(hid_t plist_id, H5F_t UNUSED *f, void *vl_addr, vo
size_t len;
H5P_genplist_t *plist; /* Property list */
- FUNC_ENTER (H5T_vlen_str_mem_write, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_str_mem_write, FAIL);
/* check parameters */
assert(buf);
@@ -396,7 +396,7 @@ hssize_t H5T_vlen_disk_getlen(H5F_t UNUSED *f, void *vl_addr)
uint8_t *vl=(uint8_t *)vl_addr; /* Pointer to the disk VL information */
hssize_t ret_value = FAIL; /*return value */
- FUNC_ENTER (H5T_vlen_disk_getlen, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_disk_getlen, FAIL);
/* check parameters */
assert(vl);
@@ -427,7 +427,7 @@ herr_t H5T_vlen_disk_read(H5F_t *f, void *vl_addr, void *buf, size_t UNUSED len)
H5HG_t hobjid;
uint32_t seq_len;
- FUNC_ENTER (H5T_vlen_disk_read, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_disk_read, FAIL);
/* check parameters */
assert(vl);
@@ -472,7 +472,7 @@ herr_t H5T_vlen_disk_write(hid_t UNUSED plist_id, H5F_t *f, void *vl_addr, void
H5HG_t hobjid;
size_t len;
- FUNC_ENTER (H5T_vlen_disk_write, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_disk_write, FAIL);
/* check parameters */
assert(vl);
@@ -645,7 +645,7 @@ H5T_vlen_reclaim(void *elem, hid_t type_id, hsize_t UNUSED ndim, hssize_t UNUSED
H5P_genplist_t *plist; /* Property list */
herr_t ret_value = FAIL;
- FUNC_ENTER(H5T_vlen_reclaim, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_reclaim, FAIL);
assert(elem);
assert(H5I_DATATYPE == H5I_get_type(type_id));
@@ -709,7 +709,7 @@ H5T_vlen_mark(H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc)
int accum_change=0; /* Amount of change in the offset of the fields */
size_t old_size; /* Previous size of a field */
- FUNC_ENTER(H5T_vlen_mark, FAIL);
+ FUNC_ENTER_NOAPI(H5T_vlen_mark, FAIL);
assert(dt);
assert(loc>H5T_VLEN_BADLOC && loc<H5T_VLEN_MAXLOC);