summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2010-02-23 15:39:06 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2010-02-23 15:39:06 (GMT)
commitbd73a66ef7c16b277086b8254d5c6b9b418552c0 (patch)
treedbefc8884304cfa1f7a9b15d5bb3dbec0b5b046b /tools
parentae71cdc7af9ddb3a414924eae599e784cbb1688c (diff)
downloadhdf5-bd73a66ef7c16b277086b8254d5c6b9b418552c0.zip
hdf5-bd73a66ef7c16b277086b8254d5c6b9b418552c0.tar.gz
hdf5-bd73a66ef7c16b277086b8254d5c6b9b418552c0.tar.bz2
[svn-r18313] Description:
move data1,data2 array declaration on top of each functions for Windows build Tested on Jam
Diffstat (limited to 'tools')
-rw-r--r--tools/h5diff/h5diffgentest.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/tools/h5diff/h5diffgentest.c b/tools/h5diff/h5diffgentest.c
index c62da08..57abc04 100644
--- a/tools/h5diff/h5diffgentest.c
+++ b/tools/h5diff/h5diffgentest.c
@@ -1011,6 +1011,8 @@ static int test_soft_links(const char *fname1)
hid_t fid1=0;
hid_t gid1=0;
hsize_t dims2[2] = {2,4};
+ int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
+ int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
herr_t status = SUCCEED;
/*-----------------------------------------------------------------------
@@ -1038,9 +1040,6 @@ static int test_soft_links(const char *fname1)
/*-----------------------------------------------------------------------
* Datasets
*------------------------------------------------------------------------*/
- int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
- int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
-
/* file1 */
status = write_dset(fid1,2,dims2,"target_dset1",H5T_NATIVE_INT,data1);
if (status == FAIL)
@@ -1144,6 +1143,8 @@ static int test_linked_softlinks(const char *fname1)
hid_t gid2=0;
hid_t gid3=0;
hsize_t dims2[2] = {2,4};
+ int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
+ int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
herr_t status = SUCCEED;
/*-----------------------------------------------------------------------
@@ -1187,9 +1188,6 @@ static int test_linked_softlinks(const char *fname1)
/*-----------------------------------------------------------------------
* Datasets
*------------------------------------------------------------------------*/
- int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
- int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
-
/* file1 */
status = write_dset(fid1,2,dims2,"target_dset1",H5T_NATIVE_INT,data1);
if (status == FAIL)
@@ -1345,6 +1343,8 @@ static int test_external_links(const char *fname1, const char *fname2)
hid_t gid1=0;
hid_t gid2=0;
hsize_t dims2[2] = {2,4};
+ int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
+ int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
herr_t status = SUCCEED;
/*-----------------------------------------------------------------------
@@ -1391,9 +1391,6 @@ static int test_external_links(const char *fname1, const char *fname2)
/*-----------------------------------------------------------------------
* Datasets
*------------------------------------------------------------------------*/
- int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
- int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
-
/*--------------
* target file */
status = write_dset(fid2,2,dims2,"target_dset1",H5T_NATIVE_INT,data1);
@@ -1503,6 +1500,8 @@ static int test_ext2soft_links(const char *fname1, const char *fname2)
hid_t fid2=0;
hid_t gid2=0;
hsize_t dims2[2] = {2,4};
+ int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
+ int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
herr_t status = SUCCEED;
/*-----------------------------------------------------------------------
@@ -1541,9 +1540,6 @@ static int test_ext2soft_links(const char *fname1, const char *fname2)
/*-----------------------------------------------------------------------
* Datasets
*------------------------------------------------------------------------*/
- int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
- int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
-
/*--------------
* target file */
status = write_dset(fid2,2,dims2,"dset1",H5T_NATIVE_INT,data2);
@@ -1638,6 +1634,8 @@ static int test_dangle_links(const char *fname1, const char *fname2)
hid_t fid1=0;
hid_t fid2=0;
hsize_t dims2[2] = {2,4};
+ int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
+ int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
herr_t status = SUCCEED;
/*-----------------------------------------------------------------------
@@ -1662,9 +1660,6 @@ static int test_dangle_links(const char *fname1, const char *fname2)
/*-----------------------------------------------------------------------
* Datasets
*------------------------------------------------------------------------*/
- int data1[4][2] = {{0,1},{2,3},{1,2},{3,4}};
- int data2[4][2] = {{0,0},{0,0},{0,0},{0,0}};
-
/* file1 */
status = write_dset(fid1,2,dims2,"dset1",H5T_NATIVE_INT,data1);
if (status == FAIL)