diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-06-05 03:35:31 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-06-05 03:35:31 (GMT) |
commit | a63ccc0c6b02c232744a35ed6fbb8c3708f7a3aa (patch) | |
tree | b7002279b63d901703df372a765d07e8619c3457 /src/H5T.c | |
parent | 15f2fb818498d5c1c377041493382a29e0d71a45 (diff) | |
download | hdf5-a63ccc0c6b02c232744a35ed6fbb8c3708f7a3aa.zip hdf5-a63ccc0c6b02c232744a35ed6fbb8c3708f7a3aa.tar.gz hdf5-a63ccc0c6b02c232744a35ed6fbb8c3708f7a3aa.tar.bz2 |
[svn-r409] Changes since 19980604
----------------------
./html/Datatypes.html
Updated documentation for named data types and type sharing.
./src/H5Farray.c
Split a couple long lines.
./src/H5T.c
The H5T_copy() demotes immutable types to read-only types so
they're cleaned up properly and memory is not leaked.
./test/dtypes.c
Modified to be more consistent with other tests. Removed all
internal header files, constants, types, and functions calls
since the API is now complete enough to test
everything. Temporary files are now removed.
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2874,10 +2874,12 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method) case H5T_COPY_ALL: /* * Return a transient type (locked or unlocked) or an unopened named - * type. + * type. Immutable transient types are degraded to read-only. */ if (H5T_STATE_OPEN==new_dt->state) { new_dt->state = H5T_STATE_NAMED; + } else if (H5T_STATE_IMMUTABLE==new_dt->state) { + new_dt->state = H5T_STATE_RDONLY; } break; |