summaryrefslogtreecommitdiffstats
path: root/test/gen_bounds.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 20:43:30 (GMT)
committerGitHub <noreply@github.com>2023-07-27 20:43:30 (GMT)
commit1e91d96fa02466ffe451319bdac1005f84dc7993 (patch)
tree4de04ef502c313dfd766497b20235188761146c0 /test/gen_bounds.c
parent95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff)
downloadhdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'test/gen_bounds.c')
-rw-r--r--test/gen_bounds.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/gen_bounds.c b/test/gen_bounds.c
index fb765f7..57b8026 100644
--- a/test/gen_bounds.c
+++ b/test/gen_bounds.c
@@ -148,7 +148,7 @@ gen_earliest_latest(void)
/*
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -210,7 +210,7 @@ gen_earliest_latest(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -234,7 +234,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -293,7 +293,7 @@ gen_earliest_v18(void)
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -325,7 +325,7 @@ gen_earliest_v18(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -349,7 +349,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -402,7 +402,7 @@ gen_latest_latest(void)
* Add a chunked dataset with layout version 4 (H5Pset_chunk_opts)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -437,7 +437,7 @@ gen_latest_latest(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -459,7 +459,7 @@ error:
H5Sclose(space);
H5Pclose(dcpl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -520,7 +520,7 @@ gen_v18_latest(void)
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -551,7 +551,7 @@ gen_v18_latest(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close property list and dataset, will reuse dataspace */
@@ -575,7 +575,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -635,7 +635,7 @@ gen_v18_v18(void)
* Add a chunked dataset with layout version 3 (default)
*/
- buf = (float *)HDmalloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
+ buf = (float *)malloc((size_t)DIM1 * (size_t)DIM2 * sizeof(float));
if (buf == NULL)
TEST_ERROR;
@@ -712,7 +712,7 @@ gen_v18_v18(void)
TEST_ERROR;
/* Release allocated buffer */
- HDfree(buf);
+ free(buf);
bufp = buf = NULL;
/* Close everything */
@@ -737,7 +737,7 @@ error:
H5Pclose(fcpl);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(buf);
+ free(buf);
}
H5E_END_TRY;
return FAIL;
@@ -1018,7 +1018,7 @@ gen_ref_files(const char *filename, H5F_libver_t low_bound, H5F_libver_t high_bo
* Create test file, attribute, group and dataset
*/
- if ((dwbuf = HDcalloc(sizeof(unsigned), 100)) == NULL)
+ if ((dwbuf = calloc(sizeof(unsigned), 100)) == NULL)
TEST_ERROR;
/* Create the test file */
@@ -1068,7 +1068,7 @@ gen_ref_files(const char *filename, H5F_libver_t low_bound, H5F_libver_t high_bo
TEST_ERROR;
if (dwbuf) {
- HDfree(dwbuf);
+ free(dwbuf);
dwbuf = NULL;
}
@@ -1201,7 +1201,7 @@ error:
H5Sclose(sid);
H5Pclose(fapl);
H5Fclose(fid);
- HDfree(dwbuf);
+ free(dwbuf);
}
H5E_END_TRY;