Skip to content

Commit

Permalink
Fix filename defines
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Nov 1, 2024
1 parent 92960e2 commit 9f76df2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions HDF5Examples/C/H5D/16/h5ex_d_shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#include <stdio.h>
#include <stdlib.h>

#define FILE "h5ex_d_shuffle.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_shuffle.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8

int
main(void)
Expand Down
12 changes: 6 additions & 6 deletions HDF5Examples/C/H5T/200/h5ex_t_complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <stdlib.h>
#include <complex.h>

#define FILE "h5ex_t_complex.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_complex.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7

int
main(void)
Expand All @@ -45,7 +45,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

/*
* Create dataspace. Setting maximum size to NULL sets the maximum
Expand Down Expand Up @@ -80,7 +80,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);

/*
Expand Down
12 changes: 6 additions & 6 deletions HDF5Examples/C/H5T/200/h5ex_t_complex_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <stdlib.h>
#include <complex.h>

#define FILE "h5ex_t_complex_custom.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_complex_custom.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7

int
main(void)
Expand All @@ -45,7 +45,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

/*
* Create dataspace. Setting maximum size to NULL sets the maximum
Expand Down Expand Up @@ -87,7 +87,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);

/*
Expand Down
12 changes: 6 additions & 6 deletions HDF5Examples/C/H5T/200/h5ex_t_complex_msvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
#include <stdlib.h>
#include <complex.h>

#define FILE "h5ex_t_complex_msvc.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_complex_msvc.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7

int
main(void)
Expand All @@ -46,7 +46,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

/*
* Create dataspace. Setting maximum size to NULL sets the maximum
Expand Down Expand Up @@ -81,7 +81,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);

/*
Expand Down

0 comments on commit 9f76df2

Please sign in to comment.