summaryrefslogtreecommitdiffstats
path: root/test/gen_new_fill.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-10-20 21:36:24 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-10-20 21:36:24 (GMT)
commitcf7631c80cb8bd2a6b089dfce94102d219c358da (patch)
tree64c062675006b9bd1d21c1fbaba667257e8cf260 /test/gen_new_fill.c
parentc997f29d608d71d39ad61ddb241f1459f2670983 (diff)
downloadhdf5-cf7631c80cb8bd2a6b089dfce94102d219c358da.zip
hdf5-cf7631c80cb8bd2a6b089dfce94102d219c358da.tar.gz
hdf5-cf7631c80cb8bd2a6b089dfce94102d219c358da.tar.bz2
[svn-r11590] Purpose:
Bug fix Description: test/gen_new_fill.c used some old APIs that didn't compile with the current library. Brought it up-to-date. Some other files (test/gen_old_*) are designed to be compiled only with older versions of the library. Removed rules to try to build them in the current Makefiles. Platforms tested: mir
Diffstat (limited to 'test/gen_new_fill.c')
-rw-r--r--test/gen_new_fill.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gen_new_fill.c b/test/gen_new_fill.c
index 0615504..fc7c246 100644
--- a/test/gen_new_fill.c
+++ b/test/gen_new_fill.c
@@ -42,8 +42,8 @@ int main()
if((dcpl=H5Pcreate(H5P_DATASET_CREATE))<0) goto error;
/* Create a dataset with space being allocated and fill value written */
- if(H5Pset_space_time(dcpl, H5D_EARLY) < 0) goto error;
- if(H5Pset_fill_time(dcpl, H5D_ALLOC) < 0) goto error;
+ if(H5Pset_alloc_time(dcpl, H5D_ALLOC_TIME_EARLY) < 0) goto error;
+ if(H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0) goto error;
if(H5Pset_fill_value(dcpl, H5T_NATIVE_INT, &fill_val1)<0) goto error;
if((dset1 = H5Dcreate(file, "dset1", H5T_NATIVE_INT, space, dcpl))<0)
goto error;
@@ -56,8 +56,8 @@ int main()
if(H5Dclose(dset1)<0) goto error;
/* Create a dataset with space allocation being delayed */
- if(H5Pset_space_time(dcpl, H5D_LATE) < 0) goto error;
- if(H5Pset_fill_time(dcpl, H5D_ALLOC) < 0) goto error;
+ if(H5Pset_alloc_time(dcpl, H5D_ALLOC_TIME_LATE) < 0) goto error;
+ if(H5Pset_fill_time(dcpl, H5D_FILL_TIME_ALLOC) < 0) goto error;
if(H5Pset_fill_value(dcpl, H5T_NATIVE_INT, &fill_val2)<0) goto error;
if((dset2 = H5Dcreate(file, "dset2", H5T_NATIVE_INT, space, dcpl))<0)
goto error;