summaryrefslogtreecommitdiffstats
path: root/tools/h5import/h5import.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5import/h5import.c')
-rwxr-xr-xtools/h5import/h5import.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c
index d07745d..b24aa84 100755
--- a/tools/h5import/h5import.c
+++ b/tools/h5import/h5import.c
@@ -1830,7 +1830,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;
@@ -1868,6 +1868,8 @@ createOutputDataType(struct Input *in)
}
switch(in->outputByteOrder)
{
+ case -1: /* default */
+ break;
case 0:
H5Tset_order (new_type,H5T_ORDER_BE);
break;
@@ -1884,6 +1886,7 @@ createOutputDataType(struct Input *in)
case 8:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_I8BE);
break;
@@ -1897,6 +1900,7 @@ createOutputDataType(struct Input *in)
case 16:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_I16BE);
break;
@@ -1910,6 +1914,7 @@ createOutputDataType(struct Input *in)
case 32:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_I32BE);
break;
@@ -1923,6 +1928,7 @@ createOutputDataType(struct Input *in)
case 64:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_I64BE);
break;
@@ -1954,6 +1960,8 @@ createOutputDataType(struct Input *in)
}
switch(in->outputByteOrder)
{
+ case -1: /* DEFAULT */
+ break;
case 0:
H5Tset_order (new_type,H5T_ORDER_BE);
break;
@@ -1974,6 +1982,7 @@ createOutputDataType(struct Input *in)
case 32:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_IEEE_F32BE);
break;
@@ -1987,6 +1996,7 @@ createOutputDataType(struct Input *in)
case 64:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_IEEE_F64BE);
break;
@@ -2026,6 +2036,8 @@ createOutputDataType(struct Input *in)
}
switch(in->outputByteOrder)
{
+ case -1: /* Default */
+ break;
case 0:
H5Tset_order (new_type,H5T_ORDER_BE);
break;
@@ -2042,6 +2054,7 @@ createOutputDataType(struct Input *in)
case 8:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_U8BE);
break;
@@ -2055,6 +2068,7 @@ createOutputDataType(struct Input *in)
case 16:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_U16BE);
break;
@@ -2068,6 +2082,7 @@ createOutputDataType(struct Input *in)
case 32:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_U32BE);
break;
@@ -2081,6 +2096,7 @@ createOutputDataType(struct Input *in)
case 64:
switch(in->outputByteOrder)
{
+ case -1:
case 0:
new_type = H5Tcopy (H5T_STD_U64BE);
break;