summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /src/H5Tvlen.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 4c93842..39f85c1 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -74,7 +74,7 @@ NAME
H5T_init_vlen_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_vlen_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -114,7 +114,7 @@ H5Tvlen_create(hid_t base_id)
H5T_t *base = NULL; /*base datatype */
H5T_t *dt = NULL; /*new datatype */
hid_t ret_value; /*return value */
-
+
FUNC_ENTER_API(H5Tvlen_create, FAIL)
H5TRACE1("i","i",base_id);
@@ -157,7 +157,7 @@ H5T_vlen_create(const H5T_t *base)
{
H5T_t *dt = NULL; /*new VL datatype */
H5T_t *ret_value; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_create)
/* Check args */
@@ -200,7 +200,7 @@ done:
*
* Purpose: Sets the location of a VL datatype to be either on disk or in memory
*
- * Return:
+ * Return:
* One of two values on success:
* TRUE - If the location of any vlen types changed
* FALSE - If the location of any vlen types is the same
@@ -272,7 +272,7 @@ H5T_vlen_set_loc(const H5T_t *dt, H5F_t *f, H5T_loc_t loc)
/* Mark this type as being stored on disk */
dt->shared->u.vlen.loc=H5T_LOC_DISK;
- /*
+ /*
* Size of element on disk is 4 bytes for the length, plus the size
* of an address in this file, plus 4 bytes for the size of a heap
* ID. Memory size is different
@@ -832,7 +832,7 @@ H5T_vlen_disk_read(H5F_t *f, hid_t dxpl_id, void *_vl, void *buf, size_t UNUSED
/* Skip the length of the sequence */
vl += 4;
-
+
/* Get the heap information */
H5F_addr_decode(f,(const uint8_t **)&vl,&(hobjid.addr));
INT32DECODE(vl,hobjid.idx);
@@ -883,7 +883,7 @@ H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, const H5T_vlen_alloc_info_t UNUSED
assert(vl);
assert(seq_len==0 || buf);
assert(f);
-
+
/* Free heap object for old data. */
if(bg!=NULL) {
H5HG_t bg_hobjid; /* "Background" VL info sequence's ID info */
@@ -905,7 +905,7 @@ H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, const H5T_vlen_alloc_info_t UNUSED
/* Set the length of the sequence */
UINT32ENCODE(vl, seq_len);
-
+
/* Write the VL information to disk (allocates space also) */
len=(seq_len*base_size);
if(H5HG_insert(f,dxpl_id,len,buf,&hobjid)<0)
@@ -947,7 +947,7 @@ H5T_vlen_disk_setnull(H5F_t *f, hid_t dxpl_id, void *_vl, void *_bg)
/* check parameters */
assert(f);
assert(vl);
-
+
/* Free heap object for old data. */
if(bg!=NULL) {
H5HG_t bg_hobjid; /* "Background" VL info sequence's ID info */
@@ -969,7 +969,7 @@ H5T_vlen_disk_setnull(H5F_t *f, hid_t dxpl_id, void *_vl, void *_bg)
/* Set the length of the sequence */
UINT32ENCODE(vl, seq_len);
-
+
/* Encode the "nil" heap pointer information */
H5F_addr_encode(f,&vl,(haddr_t)0);
INT32ENCODE(vl,0);
@@ -988,7 +988,7 @@ done:
herr_t H5T_vlen_reclaim(elem,dt)
void *elem; IN/OUT: Pointer to the dataset element
H5T_t *dt; IN: Datatype of dataset element
-
+
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -1000,7 +1000,7 @@ done:
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
-static herr_t
+static herr_t
H5T_vlen_reclaim_recurse(void *elem, const H5T_t *dt, H5MM_free_t free_func, void *free_info)
{
unsigned i; /* local index variable */
@@ -1100,7 +1100,7 @@ done:
unsigned ndim; IN: Number of dimensions in dataspace
hsize_t *point; IN: Coordinate location of element in dataspace
void *op_data IN: Operator data
-
+
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -1113,7 +1113,7 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
/* ARGSUSED */
-herr_t
+herr_t
H5T_vlen_reclaim(void *elem, hid_t type_id, unsigned UNUSED ndim, const hsize_t UNUSED *point, void *op_data)
{
H5T_vlen_alloc_info_t *vl_alloc_info = (H5T_vlen_alloc_info_t *)op_data; /* VL allocation info from iterator */
@@ -1146,8 +1146,8 @@ done:
USAGE
herr_t H5T_vlen_get_alloc_info(dxpl_id,vl_alloc_info)
hid_t dxpl_id; IN: Data transfer property list to query
- H5T_vlen_alloc_info_t *vl_alloc_info; IN/OUT: Pointer to VL allocation information to fill
-
+ H5T_vlen_alloc_info_t *vl_alloc_info; IN/OUT: Pointer to VL allocation information to fill
+
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -1161,7 +1161,7 @@ done:
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
-herr_t
+herr_t
H5T_vlen_get_alloc_info(hid_t dxpl_id, H5T_vlen_alloc_info_t **vl_alloc_info)
{
H5P_genplist_t *plist; /* DX property list */