diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2011-10-18 21:27:58 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2011-10-18 21:27:58 (GMT) |
commit | 395c1c7db532897452716615889ad882c4ee935a (patch) | |
tree | 1625604f48f8d78b13efe29909fd1eff801fb766 /src/H5FO.c | |
parent | aca9bf5cf3039fa0179067c1ee8877870350e819 (diff) | |
download | hdf5-395c1c7db532897452716615889ad882c4ee935a.zip hdf5-395c1c7db532897452716615889ad882c4ee935a.tar.gz hdf5-395c1c7db532897452716615889ad882c4ee935a.tar.bz2 |
[svn-r21603] Purpose: Add generic skip list implementation
Description:
Added new H5SL_TYPE_GENERIC skip list type, which uses void *'s as keys and a
client-supplied callback for key comparison. This was added to support the
upcoming "merge named datatype" feature for H5Ocopy, but may be used in other
places as well. Also added testing.
Also fixed a potential bug with the H5SL_TYPE_OBJ implementation, and added
testing for that.
Tested: jam, koala, heiwa (h5committest), durandal
Diffstat (limited to 'src/H5FO.c')
-rw-r--r-- | src/H5FO.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ H5FO_create(const H5F_t *f) assert(f->shared); /* Create container used to store open object info */ - if((f->shared->open_objs = H5SL_create(H5SL_TYPE_HADDR)) == NULL) + if((f->shared->open_objs = H5SL_create(H5SL_TYPE_HADDR, NULL)) == NULL) HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to create open object container") done: @@ -400,7 +400,7 @@ H5FO_top_create(H5F_t *f) HDassert(f); /* Create container used to store open object info */ - if((f->obj_count = H5SL_create(H5SL_TYPE_HADDR)) == NULL) + if((f->obj_count = H5SL_create(H5SL_TYPE_HADDR, NULL)) == NULL) HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to create open object container") done: |