diff options
author | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-04 13:50:51 (GMT) |
---|---|---|
committer | Robert E. McGrath <mcgrath@ncsa.uiuc.edu> | 2005-02-04 13:50:51 (GMT) |
commit | 8203695e5502df86ac4df7af4777f0ab6310f09e (patch) | |
tree | 17c76014895b0bb93c3e14a9e7590d42190da066 | |
parent | 95d3adfd1997487d3d6efa53c5413e522aabf667 (diff) | |
download | hdf5-8203695e5502df86ac4df7af4777f0ab6310f09e.zip hdf5-8203695e5502df86ac4df7af4777f0ab6310f09e.tar.gz hdf5-8203695e5502df86ac4df7af4777f0ab6310f09e.tar.bz2 |
[svn-r9935] Purpose:
Bug
Description:
Refinement to bug fix for bug #282
Solution:
See other checkin
Platforms tested:
verbena
Misc. update:
-rwxr-xr-x | tools/h5import/h5import.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c index 55bedd9..db3020c 100755 --- a/tools/h5import/h5import.c +++ b/tools/h5import/h5import.c @@ -43,7 +43,6 @@ int main(int argc, char *argv[]) (void) setvbuf(stderr, (char *) NULL, _IOLBF, 0); (void) setvbuf(stdout, (char *) NULL, _IOLBF, 0); - /* * validate the number of command line arguments */ @@ -1827,7 +1826,7 @@ setDefaultValues(struct Input *in, int count) HDstrcpy(in->path.group[0], temp); in->outputArchitecture = 0; /* NATIVE */ - in->outputByteOrder = 0; /* BE */ + in->outputByteOrder = -1; /* use default */ in->compressionType = 0; /* GZIP */ for (i=0; i<NUM_KEYS; i++) in->configOptionVector[i] = 0; @@ -1865,6 +1864,8 @@ createOutputDataType(struct Input *in) } switch(in->outputByteOrder) { + case -1: /* default */ + break; case 0: H5Tset_order (new_type,H5T_ORDER_BE); break; @@ -1881,6 +1882,7 @@ createOutputDataType(struct Input *in) case 8: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_I8BE); break; @@ -1894,6 +1896,7 @@ createOutputDataType(struct Input *in) case 16: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_I16BE); break; @@ -1907,6 +1910,7 @@ createOutputDataType(struct Input *in) case 32: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_I32BE); break; @@ -1920,6 +1924,7 @@ createOutputDataType(struct Input *in) case 64: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_I64BE); break; @@ -1951,6 +1956,8 @@ createOutputDataType(struct Input *in) } switch(in->outputByteOrder) { + case -1: /* DEFAULT */ + break; case 0: H5Tset_order (new_type,H5T_ORDER_BE); break; @@ -1971,6 +1978,7 @@ createOutputDataType(struct Input *in) case 32: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_IEEE_F32BE); break; @@ -1984,6 +1992,7 @@ createOutputDataType(struct Input *in) case 64: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_IEEE_F64BE); break; @@ -2023,6 +2032,8 @@ createOutputDataType(struct Input *in) } switch(in->outputByteOrder) { + case -1: /* Default */ + break; case 0: H5Tset_order (new_type,H5T_ORDER_BE); break; @@ -2039,6 +2050,7 @@ createOutputDataType(struct Input *in) case 8: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_U8BE); break; @@ -2052,6 +2064,7 @@ createOutputDataType(struct Input *in) case 16: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_U16BE); break; @@ -2065,6 +2078,7 @@ createOutputDataType(struct Input *in) case 32: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_U32BE); break; @@ -2078,6 +2092,7 @@ createOutputDataType(struct Input *in) case 64: switch(in->outputByteOrder) { + case -1: case 0: new_type = H5Tcopy (H5T_STD_U64BE); break; |