diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-05 21:25:40 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-05 21:25:40 (GMT) |
commit | defe2fb64fd30bbb03391426c56077f9620ccc3c (patch) | |
tree | 6e3ec93e4ef521f7ddab475664e0569186f3ee58 /src/H5Tprivate.h | |
parent | c9c54b60413e004032f52c058c97e5734f2574fe (diff) | |
download | hdf5-defe2fb64fd30bbb03391426c56077f9620ccc3c.zip hdf5-defe2fb64fd30bbb03391426c56077f9620ccc3c.tar.gz hdf5-defe2fb64fd30bbb03391426c56077f9620ccc3c.tar.bz2 |
[svn-r7543] Purpose:
Bug fixes and code cleanup
Description:
Lots of changes here:
- Fixed bug #691 - when shared datatypes are used in attributes they
are incorrectly copied into the attribute instead of referring
the the named datatype in the file. This required bumping the
version of the attribute message. The new version of the attribute
message is only written out when a shared datatype is used in
the attribute. [Also, this format change made the size of the
attribute smaller.]
- Added information to attribute debugging routine so that shared
datatypes are displayed correctly with the h5debug tool.
- Refactored the H5O* routines to extract code that was common to
several routines into subroutines to call.
- Added 'link' method for H5O message sub-classes, which increments
the link count on shared objects when a message is created which
shares them.
- Corrected [unreported] bug where the link count was not being
decremented on the shared object when a object header message
with a reference to that object was deleted from the file.
- Reduced size of shared message from 49 bytes (which was incorrect
anyway and should have been 48 bytes) to 10 bytes, which required
bumping the version of "shared" messages.
- Refactored some of the shared datatype routines to allow for easier
queries of "committedness" internally to the library and also
added routine to easily increment/decrement the reference count of
a shared datatype.
Platforms tested:
FreeBSD 4.9 (sleipnir)
h5committest
Diffstat (limited to 'src/H5Tprivate.h')
-rw-r--r-- | src/H5Tprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tprivate.h b/src/H5Tprivate.h index deccfc5..9d40e85 100644 --- a/src/H5Tprivate.h +++ b/src/H5Tprivate.h @@ -71,6 +71,8 @@ H5_DLL herr_t H5T_convert(H5T_path_t *tpath, hid_t src_id, hid_t dst_id, H5_DLL herr_t H5T_vlen_reclaim(void *elem, hid_t type_id, hsize_t ndim, hssize_t *point, void *_op_data); H5_DLL htri_t H5T_vlen_mark(H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc); H5_DLL htri_t H5T_is_sensible(const H5T_t *dt); +H5_DLL htri_t H5T_committed(H5T_t *type); +H5_DLL int H5T_link(const H5T_t *type, int adjust, hid_t dxpl_id); /* Reference specific functions */ H5_DLL H5R_type_t H5T_get_ref_type(const H5T_t *dt); |