summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-12-06 20:40:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-12-06 20:40:12 (GMT)
commit211baa5e46802352cac761533f3f9a0749f1dd6c (patch)
treeedbc0a099b27bbdc25bac11c3a925270b52b5cf8 /src/H5Tvlen.c
parentf00ad1c5d6c592d9f559fbb5b39a45db28ba23aa (diff)
downloadhdf5-211baa5e46802352cac761533f3f9a0749f1dd6c.zip
hdf5-211baa5e46802352cac761533f3f9a0749f1dd6c.tar.gz
hdf5-211baa5e46802352cac761533f3f9a0749f1dd6c.tar.bz2
[svn-r7918] Purpose:
Code cleanup Description: Clean up compiler warnings, especially the 'FUNC' variable not used which comes out in production mode. Solution: Had to add a new FUNC_ENTER_NOAPI_NOINIT_NOFUNC macro for those non-API functions which don't need the 'FUNC' variable defined. (This will be _so_ much easier when C99 is standard on all our supposed platforms, since it has a __FUNC__ macro... ) Platforms tested: FreeBSD 4.9 (sleipnir) too minor for h5committest (although there were lots of files changed, the change was minor in each one)
Diffstat (limited to 'src/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index f6e1086..2027257 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -74,7 +74,7 @@ DESCRIPTION
static herr_t
H5T_init_vlen_interface(void)
{
- FUNC_ENTER_NOINIT(H5T_init_vlen_interface);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_init_vlen_interface);
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_vlen_interface() */
@@ -147,7 +147,7 @@ H5T_vlen_create(H5T_t *base)
H5T_t *dt = NULL; /*new VL data type */
H5T_t *ret_value; /*return value */
- FUNC_ENTER_NOINIT(H5T_vlen_create);
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_create);
/* Check args */
assert(base);
@@ -203,7 +203,7 @@ H5T_vlen_set_loc(H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc)
{
htri_t ret_value = 0; /* Indicate that success, but no location change */
- FUNC_ENTER_NOINIT(H5T_vlen_set_loc);
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_set_loc);
/* check parameters */
assert(dt);
@@ -303,7 +303,7 @@ H5T_vlen_seq_mem_getlen(void *_vl)
{
hvl_t *vl=(hvl_t *)_vl; /* Pointer to the user's hvl_t information */
- FUNC_ENTER_NOINIT(H5T_vlen_seq_mem_getlen)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_seq_mem_getlen)
/* check parameters */
assert(vl);
@@ -331,7 +331,7 @@ H5T_vlen_seq_mem_isnull(H5F_t UNUSED *f, void *_vl)
{
hvl_t *vl=(hvl_t *)_vl; /* Pointer to the user's hvl_t information */
- FUNC_ENTER_NOINIT(H5T_vlen_seq_mem_isnull)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_seq_mem_isnull)
/* check parameters */
assert(vl);
@@ -359,7 +359,7 @@ H5T_vlen_seq_mem_read(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, void *_vl, void *bu
{
hvl_t *vl=(hvl_t *)_vl; /* Pointer to the user's hvl_t information */
- FUNC_ENTER_NOINIT(H5T_vlen_seq_mem_read)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_seq_mem_read)
/* check parameters */
assert(vl && vl->p);
@@ -395,7 +395,7 @@ H5T_vlen_seq_mem_write(H5F_t UNUSED *f, hid_t dxpl_id, void *_vl, void *buf, voi
H5P_genplist_t *plist; /* Property list */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5T_vlen_seq_mem_write)
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_seq_mem_write)
/* check parameters */
assert(_vl);
@@ -461,7 +461,7 @@ H5T_vlen_seq_mem_setnull(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, void *_vl, void
{
hvl_t vl; /* Temporary hvl_t to use during operation */
- FUNC_ENTER_NOINIT(H5T_vlen_seq_mem_setnull)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_seq_mem_setnull)
/* check parameters */
assert(_vl);
@@ -496,7 +496,7 @@ H5T_vlen_str_mem_getlen(void *_vl)
{
char *s=*(char **)_vl; /* Pointer to the user's string information */
- FUNC_ENTER_NOINIT(H5T_vlen_str_mem_getlen)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_str_mem_getlen)
/* check parameters */
assert(s);
@@ -524,7 +524,7 @@ H5T_vlen_str_mem_isnull(H5F_t UNUSED *f, void *_vl)
{
char *s=*(char **)_vl; /* Pointer to the user's string information */
- FUNC_ENTER_NOINIT(H5T_vlen_str_mem_isnull)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_str_mem_isnull)
FUNC_LEAVE_NOAPI(s==NULL ? TRUE : FALSE);
} /* end H5T_vlen_str_mem_isnull() */
@@ -549,7 +549,7 @@ H5T_vlen_str_mem_read(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, void *_vl, void *bu
{
char *s=*(char **)_vl; /* Pointer to the user's hvl_t information */
- FUNC_ENTER_NOINIT(H5T_vlen_str_mem_read)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_str_mem_read)
/* check parameters */
assert(s);
@@ -586,7 +586,7 @@ H5T_vlen_str_mem_write(H5F_t UNUSED *f, hid_t dxpl_id, void *_vl, void *buf, voi
H5P_genplist_t *plist; /* Property list */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5T_vlen_str_mem_write)
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_str_mem_write)
/* check parameters */
assert(buf);
@@ -642,7 +642,7 @@ H5T_vlen_str_mem_setnull(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, void *_vl, void
{
char *t=NULL; /* Pointer to temporary buffer allocated */
- FUNC_ENTER_NOINIT(H5T_vlen_str_mem_write)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_str_mem_write)
/* Set pointer in user's buffer with memcpy, to avoid alignment issues */
HDmemcpy(_vl,&t,sizeof(char *));
@@ -671,7 +671,7 @@ H5T_vlen_disk_getlen(void *_vl)
uint8_t *vl=(uint8_t *)_vl; /* Pointer to the disk VL information */
hssize_t seq_len; /* Sequence length */
- FUNC_ENTER_NOINIT(H5T_vlen_disk_getlen)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_disk_getlen)
/* check parameters */
assert(vl);
@@ -702,7 +702,7 @@ H5T_vlen_disk_isnull(H5F_t *f, void *_vl)
uint8_t *vl=(uint8_t *)_vl; /* Pointer to the disk VL information */
haddr_t addr; /* Sequence's heap address */
- FUNC_ENTER_NOINIT(H5T_vlen_disk_isnull)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_vlen_disk_isnull)
/* check parameters */
assert(vl);
@@ -739,7 +739,7 @@ H5T_vlen_disk_read(H5F_t *f, hid_t dxpl_id, void *_vl, void *buf, size_t UNUSED
uint32_t seq_len;
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5T_vlen_disk_read)
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_disk_read)
/* check parameters */
assert(vl);
@@ -792,7 +792,7 @@ H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, void *_vl, void *buf, void *_bg, hs
size_t len; /* Size of new sequence on disk (in bytes) */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5T_vlen_disk_write)
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_disk_write)
/* check parameters */
assert(vl);
@@ -861,7 +861,7 @@ H5T_vlen_disk_setnull(H5F_t *f, hid_t dxpl_id, void *_vl, void *_bg)
H5HG_t hobjid; /* New VL sequence's heap ID */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_NOINIT(H5T_vlen_disk_setnull)
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_disk_setnull)
/* check parameters */
assert(f);
@@ -931,7 +931,7 @@ H5T_vlen_reclaim_recurse(void *elem, H5T_t *dt, H5MM_free_t free_func, void *fre
size_t j; /* local index variable */
herr_t ret_value = SUCCEED;
- FUNC_ENTER_NOINIT(H5T_vlen_reclaim_recurse);
+ FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_reclaim_recurse);
assert(elem);
assert(dt);