diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 14:30:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 14:30:54 (GMT) |
commit | 6df077953ed8be3ac9ed247aaeac0c7f502161c9 (patch) | |
tree | 9c75a06d0c52c788a144435508d6a38e34c50757 /test/API | |
parent | f5ca9237a296f6deefb633b6fb1d61daea4b4f6e (diff) | |
download | hdf5-6df077953ed8be3ac9ed247aaeac0c7f502161c9.zip hdf5-6df077953ed8be3ac9ed247aaeac0c7f502161c9.tar.gz hdf5-6df077953ed8be3ac9ed247aaeac0c7f502161c9.tar.bz2 |
Rename HDqsort() to qsort() (#3193)
* Rename HDqsort() to qsort()
* Committing clang-format changes
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/API')
-rw-r--r-- | test/API/titerate.c | 8 | ||||
-rw-r--r-- | test/API/tselect.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/API/titerate.c b/test/API/titerate.c index 6d86130..e528803 100644 --- a/test/API/titerate.c +++ b/test/API/titerate.c @@ -205,7 +205,7 @@ test_iter_group(hid_t fapl, hbool_t new_format) CHECK(ret, FAIL, "H5Fclose"); /* Sort the dataset names */ - HDqsort(lnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp); + qsort(lnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp); /* Iterate through the datasets in the root group in various ways */ file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, fapl); @@ -749,7 +749,7 @@ test_iter_group_large(hid_t fapl) CHECK(ret, FAIL, "H5Tclose"); /* Need to sort the names in the root group, cause that's what the library does */ - HDqsort(names, (size_t)(ITER_NGROUPS + 2), sizeof(iter_info), iter_strcmp2); + qsort(names, (size_t)(ITER_NGROUPS + 2), sizeof(iter_info), iter_strcmp2); /* Iterate through the file to see members of the root group */ curr_name = &names[0]; @@ -848,7 +848,7 @@ test_grp_memb_funcs(hid_t fapl) CHECK(ret, FAIL, "H5Fclose"); /* Sort the dataset names */ - HDqsort(dnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp); + qsort(dnames, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp); /* Iterate through the datasets in the root group in various ways */ file = H5Fopen(DATAFILE, H5F_ACC_RDONLY, fapl); @@ -905,7 +905,7 @@ test_grp_memb_funcs(hid_t fapl) VERIFY(ret, FAIL, "H5Lget_name_by_idx"); /* Sort the dataset names */ - HDqsort(obj_names, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp); + qsort(obj_names, (size_t)(NDATASETS + 2), sizeof(char *), iter_strcmp); /* Compare object names */ for (i = 0; i < (int)ginfo.nlinks; i++) { diff --git a/test/API/tselect.c b/test/API/tselect.c index a2f377d..292bf84 100644 --- a/test/API/tselect.c +++ b/test/API/tselect.c @@ -1383,8 +1383,8 @@ test_select_hyper_stride(hid_t xfer_plist) CHECK(ret, FAIL, "H5Dread"); /* Sort the locations into the proper order */ - HDqsort(loc1, (size_t)72, sizeof(size_t), compare_size_t); - HDqsort(loc2, (size_t)72, sizeof(size_t), compare_size_t); + qsort(loc1, (size_t)72, sizeof(size_t), compare_size_t); + qsort(loc2, (size_t)72, sizeof(size_t), compare_size_t); /* Compare data read with data written out */ for (i = 0; i < 72; i++) { tbuf = wbuf + loc1[i]; |