summaryrefslogtreecommitdiffstats
path: root/src/H5detect.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-07-15 21:21:15 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-07-15 21:21:15 (GMT)
commit077d7c8c864c5452911117ee6b97c855487ff4cd (patch)
tree00bd45ce9d0085d0f0a73ddff6dc1a20820051b3 /src/H5detect.c
parent8ad2f1aae0e4b88dce6d97d32f91d305fa169f30 (diff)
downloadhdf5-077d7c8c864c5452911117ee6b97c855487ff4cd.zip
hdf5-077d7c8c864c5452911117ee6b97c855487ff4cd.tar.gz
hdf5-077d7c8c864c5452911117ee6b97c855487ff4cd.tar.bz2
[svn-r511] Changes since 19980715
---------------------- ./src/H5Flow.c ./src/H5Fprivate.h ./src/H5Fsplit.c Changed the allocation size request from `size_t' to `hsize_t' because it was overflowing for the `big' test. ./src/H5detect.c If `long double' and `double' are the same size then we define H5T_NATIVE_LDOUBLE to be the same as H5T_NATIVE_DOUBLE. Similarly for `long' vs. `long long' and `unsigned long' vs. `unsigned long long'. ./test/Makefile.in Added `big' to the list of tests to normally run. ./test/big.c Added a check to see if the file system supports holes and if it doesn't then the test is skipped.
Diffstat (limited to 'src/H5detect.c')
-rw-r--r--src/H5detect.c48
1 files changed, 35 insertions, 13 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index 9e07688..7398cc1 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -937,19 +937,41 @@ main(void)
print_header();
- DETECT_I (signed char, CHAR, d[nd]); nd++;
- DETECT_I (unsigned char, UCHAR, d[nd]); nd++;
- DETECT_I (short, SHORT, d[nd]); nd++;
- DETECT_I (unsigned short, USHORT, d[nd]); nd++;
- DETECT_I (int, INT, d[nd]); nd++;
- DETECT_I (unsigned int, UINT, d[nd]); nd++;
- DETECT_I (long, LONG, d[nd]); nd++;
- DETECT_I (unsigned long, ULONG, d[nd]); nd++;
- DETECT_I (long long, LLONG, d[nd]); nd++;
- DETECT_I (unsigned long long, ULLONG, d[nd]); nd++;
- DETECT_F (float, FLOAT, d[nd]); nd++;
- DETECT_F (double, DOUBLE, d[nd]); nd++;
- DETECT_F (long double, LDOUBLE, d[nd]); nd++;
+ DETECT_I(signed char, CHAR, d[nd]); nd++;
+ DETECT_I(unsigned char, UCHAR, d[nd]); nd++;
+ DETECT_I(short, SHORT, d[nd]); nd++;
+ DETECT_I(unsigned short, USHORT, d[nd]); nd++;
+ DETECT_I(int, INT, d[nd]); nd++;
+ DETECT_I(unsigned int, UINT, d[nd]); nd++;
+ DETECT_I(long, LONG, d[nd]); nd++;
+ DETECT_I(unsigned long, ULONG, d[nd]); nd++;
+
+#if SIZEOF_LONG == SIZEOF_LONG_LONG
+ /*
+ * If sizeof(long)==sizeof(long long) then assume that `long long' isn't
+ * supported and use `long' instead. This suppresses warnings on some
+ * systems.
+ */
+ DETECT_I(long, LLONG, d[nd]); nd++;
+ DETECT_I(unsigned long, ULLONG, d[nd]); dn++;
+#else
+ DETECT_I(long long, LLONG, d[nd]); nd++;
+ DETECT_I(unsigned long long, ULLONG, d[nd]); nd++;
+#endif
+
+ DETECT_F(float, FLOAT, d[nd]); nd++;
+ DETECT_F(double, DOUBLE, d[nd]); nd++;
+
+#if SIZEOF_DOUBLE == SIZEOF_LONG_DOUBLE
+ /*
+ * If sizeof(double)==sizeof(long double) then assume that `long double'
+ * isn't supported and use `double' instead. This suppresses warnings on
+ * some systems.
+ */
+ DETECT_F(double, LDOUBLE, d[nd]); nd++;
+#else
+ DETECT_F(long double, LDOUBLE, d[nd]); nd++;
+#endif
print_results (nd, d);
return 0;