diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-05-10 15:59:13 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-05-10 15:59:13 (GMT) |
commit | 445c805a4cd1222703e0294afa3af9631c7d6c99 (patch) | |
tree | fd23d7bd1bc9fa2ed6390483e7d4c926e92582b5 /tools/test/misc | |
parent | 9d50ed52875549dad6e5253111c0356aca3c2c05 (diff) | |
download | hdf5-445c805a4cd1222703e0294afa3af9631c7d6c99.zip hdf5-445c805a4cd1222703e0294afa3af9631c7d6c99.tar.gz hdf5-445c805a4cd1222703e0294afa3af9631c7d6c99.tar.bz2 |
HDFFV-10186 Add endianess to bitfield and fix tests
Diffstat (limited to 'tools/test/misc')
-rw-r--r-- | tools/test/misc/talign.c | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/tools/test/misc/talign.c b/tools/test/misc/talign.c index d905e37..9a72557 100644 --- a/tools/test/misc/talign.c +++ b/tools/test/misc/talign.c @@ -86,8 +86,7 @@ int main(void) H5Tinsert(cmp, "Not Ok", sizeof(fok) + sizeof(string5), array_dt); H5Tclose(array_dt); - fix = h5tools_get_native_type(cmp); - + fix = H5Tget_native_type(cmp, H5T_DIR_DEFAULT); cmp1 = H5Tcreate(H5T_COMPOUND, sizeof(fok)); cdim[0] = sizeof(fok) / sizeof(float); @@ -208,35 +207,3 @@ out: return result; } -/*------------------------------------------------------------------------- - * Function: h5tools_get_native_type - * - * Purpose: Wrapper around H5Tget_native_type() to work around - * Problems with bitfields. - * - * Return: Success: datatype ID - * - * Failure: FAIL - * - * Programmer: Quincey Koziol - * Tuesday, October 5, 2004 - * - * Modifications: - * - *------------------------------------------------------------------------- - */ -hid_t -h5tools_get_native_type(hid_t type) -{ - hid_t p_type; - H5T_class_t type_class; - - type_class = H5Tget_class(type); - if(type_class==H5T_BITFIELD) - p_type=H5Tcopy(type); - else - p_type = H5Tget_native_type(type,H5T_DIR_DEFAULT); - - return(p_type); -} - |