diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-10-27 22:23:49 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-10-27 22:23:49 (GMT) |
commit | 376a788840fe6db1f253a371e3bcde527b4bfd3f (patch) | |
tree | 5aff621b28ab1ff02f41b1ea83325b11d287d13f /src/H5Tpkg.h | |
parent | 597739142f65d71f1ccf9eeeda6568b147e506b5 (diff) | |
download | hdf5-376a788840fe6db1f253a371e3bcde527b4bfd3f.zip hdf5-376a788840fe6db1f253a371e3bcde527b4bfd3f.tar.gz hdf5-376a788840fe6db1f253a371e3bcde527b4bfd3f.tar.bz2 |
[svn-r17760] Purpose: Fix problem with H5TB API
Description:
The H5TB API makes some improper assumptions about the order of compound
datatype members. Namely, it assumes that members remain in the order in which
they were inserted. Unfortunately, this assumption is inherent in the design of
the interface. The library has been patched so that this assumption holds in
situations relevant to H5TB.
Tested: jam, linew, amani (h5committest)
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r-- | src/H5Tpkg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h index 18bf7cf..45b0e7f 100644 --- a/src/H5Tpkg.h +++ b/src/H5Tpkg.h @@ -307,6 +307,7 @@ typedef struct H5T_compnd_t { H5T_sort_t sorted; /*how are members sorted? */ hbool_t packed; /*are members packed together? */ H5T_cmemb_t *memb; /*array of struct members */ + size_t memb_size; /*total of all member sizes */ } H5T_compnd_t; /* An enumeration datatype */ @@ -1388,6 +1389,7 @@ H5_DLL herr_t H5T_insert(H5T_t *parent, const char *name, size_t offset, const H5T_t *member); H5_DLL size_t H5T_get_member_size(const H5T_t *dt, unsigned membno); H5_DLL htri_t H5T_is_packed(const H5T_t *dt); +H5_DLL void H5T_update_packed(const H5T_t *dt); H5_DLL H5T_subset_info_t *H5T_conv_struct_subset(const H5T_cdata_t *cdata); /* Enumerated type functions */ |