summaryrefslogtreecommitdiffstats
path: root/tools/lib/talign.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-25 20:00:56 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-25 20:00:56 (GMT)
commit32220914a5313c0586dc59c89946d31334ad8b63 (patch)
tree8bc3eebbdb4591ea3439c20e626b7197e83c8a20 /tools/lib/talign.c
parentf841a942427dd5d5fc139e30e07125de634e1863 (diff)
downloadhdf5-32220914a5313c0586dc59c89946d31334ad8b63.zip
hdf5-32220914a5313c0586dc59c89946d31334ad8b63.tar.gz
hdf5-32220914a5313c0586dc59c89946d31334ad8b63.tar.bz2
[svn-r7401] Purpose:
Code cleanup Description: Remove various "fixtype" routines which duplicate (and actually pre-date) the functionality in H5Tget_native_type in favor of having the tools call H5Tget_native_type(). This provides the same functionality (actually better functionality, since the old "fixtype" routines didn't handle alignment of compound fields correctly) and reduces the amount of code to maintain. Add additional tests to dump out a "complex" compound datatype which exercises more code in the library for aligning compound fields correctly. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
Diffstat (limited to 'tools/lib/talign.c')
-rw-r--r--tools/lib/talign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/talign.c b/tools/lib/talign.c
index 5c4f88d..e24cabf 100644
--- a/tools/lib/talign.c
+++ b/tools/lib/talign.c
@@ -1,6 +1,6 @@
/*
* Small program to illustrate the "misalignment" of members within a compound
- * datatype, in a datatype fixed by h5tools_fixtype().
+ * datatype, in a datatype fixed by H5Tget_native_type().
*/
#include <string.h>
#include <stdlib.h>
@@ -72,7 +72,7 @@ int main(void)
H5Tinsert(cmp, "Not Ok", sizeof(fok) + sizeof(string5), array_dt);
H5Tclose(array_dt);
- fix = h5tools_fixtype(cmp);
+ fix = H5Tget_native_type(cmp,H5T_DIR_DEFAULT);
cmp1 = H5Tcreate(H5T_COMPOUND, sizeof(fok));