diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-05-20 18:15:13 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-05-20 18:15:13 (GMT) |
commit | 664d327923e64082bee37f99da62c1eb1276c9c9 (patch) | |
tree | 41e2df2eeca460e3da44ed7a7f114bb4b1430035 /src/H5detect.c | |
parent | 9f93209aee5d6b384480cce33ba62cee4387d56f (diff) | |
download | hdf5-664d327923e64082bee37f99da62c1eb1276c9c9.zip hdf5-664d327923e64082bee37f99da62c1eb1276c9c9.tar.gz hdf5-664d327923e64082bee37f99da62c1eb1276c9c9.tar.bz2 |
[svn-r8547] Purpose:
Bug fix. Backed out the byte order detection code. It was not
compatible with v1.6.
Platforms tested:
Tested in TG_NCSA.
Misc. update:
Diffstat (limited to 'src/H5detect.c')
-rw-r--r-- | src/H5detect.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/H5detect.c b/src/H5detect.c index fc6d4a7..670aed1 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -479,7 +479,7 @@ sigbus_handler(int UNUSED signo) static void print_results(int nd, detected_t *d, int na, malign_t *misc_align) { - int byte_order=0; + int i, j; /* Include files */ @@ -523,18 +523,6 @@ H5TN_init_interface(void)\n\ \n\ FUNC_ENTER_NOAPI(H5TN_init_interface, FAIL);\n"); - /* The native endianess of this machine */ - /* (Use the byte-order of a reasonably large type) */ - for (i = 0; i < nd; i++) - if(d[i].size>1) { - byte_order=d[i].perm[0]; - break; - } /* end if */ - printf("\n\ - /* Set the native order for this machine */\n\ - H5T_native_order_g = H5T_ORDER_%s;\n", - byte_order ? "BE" : "LE"); /*byte order */ - for (i = 0; i < nd; i++) { /* Print a comment to describe this section of definitions. */ @@ -560,7 +548,6 @@ H5TN_init_interface(void)\n\ d[i].perm[0] ? "BE" : "LE", /*byte order */ d[i].offset, /*offset */ d[i].precision); /*precision */ - assert(d[i].size<2 || (d[i].perm[0]>0)==(byte_order>0)); /* Double-check that byte-order doesn't change */ if (0 == d[i].msize) { /* The part unique to fixed point types */ |