summaryrefslogtreecommitdiffstats
path: root/src/H5Tcompound.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/H5Tcompound.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/H5Tcompound.c')
-rw-r--r--src/H5Tcompound.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/H5Tcompound.c b/src/H5Tcompound.c
index 37c79ed..62681ce 100644
--- a/src/H5Tcompound.c
+++ b/src/H5Tcompound.c
@@ -41,7 +41,7 @@ NAME
H5T_init_compound_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_compound_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -104,7 +104,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_member_offset
*
- * Purpose: Private function for H5Tget_member_offset. Returns the byte
+ * Purpose: Private function for H5Tget_member_offset. Returns the byte
* offset of the beginning of a member with respect to the
* beginning of the compound datatype datum.
*
@@ -221,7 +221,7 @@ H5Tget_member_type(hid_t type_id, unsigned membno)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to retrieve member type")
if ((ret_value = H5I_register(H5I_DATATYPE, memb_dt)) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable register datatype atom")
-
+
done:
if(ret_value<0) {
if(memb_dt!=NULL)
@@ -236,17 +236,17 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_member_type
*
- * Purpose: Private function for H5Tget_member_type. Returns the data
+ * Purpose: Private function for H5Tget_member_type. Returns the data
* type of the specified member.
*
* Return: Success: A copy of the member datatype;
* modifying the returned datatype does not
* modify the member type.
*
- * Failure: NULL
+ * Failure: NULL
*
* Programmer: Raymond Lu
- * October 8, 2002
+ * October 8, 2002
*
* Modifications:
*
@@ -261,11 +261,11 @@ H5T_get_member_type(const H5T_t *dt, unsigned membno)
assert(dt);
assert(membno < dt->shared->u.compnd.nmembs);
-
+
/* Copy datatype into an atom */
if (NULL == (ret_value = H5T_copy(dt->shared->u.compnd.memb[membno].type, H5T_COPY_REOPEN)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "unable to copy member datatype")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -296,7 +296,7 @@ H5T_get_member_size(const H5T_t *dt, unsigned membno)
assert(dt);
assert(membno < dt->shared->u.compnd.nmembs);
-
+
/* Value */
ret_value = dt->shared->u.compnd.memb[membno].type->shared->size;
@@ -390,7 +390,7 @@ H5Tpack(hid_t type_id)
/* Pack */
if (H5T_pack(dt) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to pack compound datatype")
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -420,7 +420,7 @@ H5T_insert(const H5T_t *parent, const char *name, size_t offset, const H5T_t *me
unsigned idx, i;
size_t total_size;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_insert, FAIL)
/* check args */
@@ -572,7 +572,7 @@ H5T_pack(const H5T_t *dt)
dt->shared->u.compnd.packed=TRUE;
} /* end if */
} /* end if */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}