summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-04-28 08:34:17 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-04-28 08:34:17 (GMT)
commit73683e4380583563699330b8e32b1a34a476447a (patch)
tree546dc25c90c284a3630788ebef4693791810e028 /src/H5.c
parenteb09629a45ce8b1fbc435c4f27f1cf4e297d6826 (diff)
downloadhdf5-73683e4380583563699330b8e32b1a34a476447a.zip
hdf5-73683e4380583563699330b8e32b1a34a476447a.tar.gz
hdf5-73683e4380583563699330b8e32b1a34a476447a.tar.bz2
[svn-r5278] Purpose:
Migrate from configure macros of XYZ_ABC to H5_XYZ_ABC Description: configure generates many macros definitions on the fly and were stored in src/H5config.h which is included by H5public.h. But other software that uses hdf5 may also run their own configure. There can be a clash in macro name space. We decided awhile ago to prepend all generated macros with "H5_" to avoid conflicts. The process has started and this commit completes it (at least attempt to). Solution: Many macros symbols (e.g. SIZEOF_xxx and HAVE_xxx were changed to H5_SIZEOF_xxx and H5_HAVE_xxx). Then H5private.h no longer includes H5config.h. This cuts H5config.h away from HDF5 source code. Pending issues: The module of fortran and pablo are to be resolved in a different commit. Platforms tested: eirene (parallel), arabica (solaris 7 --enable-fortran, --enable-cxx)
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5.c b/src/H5.c
index c2c76d2..1fefa4f 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -805,7 +805,7 @@ HDfprintf (FILE *stream, const char *fmt, ...)
} else if (sizeof(hsize_t)==sizeof(long)) {
HDstrcpy (modifier, "l");
} else {
- HDstrcpy (modifier, PRINTF_LL_WIDTH);
+ HDstrcpy (modifier, H5_PRINTF_LL_WIDTH);
}
break;
case 'Z':
@@ -814,7 +814,7 @@ HDfprintf (FILE *stream, const char *fmt, ...)
} else if (sizeof(size_t)==sizeof(long)) {
HDstrcpy (modifier, "l");
} else {
- HDstrcpy (modifier, PRINTF_LL_WIDTH);
+ HDstrcpy (modifier, H5_PRINTF_LL_WIDTH);
}
break;
default:
@@ -917,7 +917,7 @@ HDfprintf (FILE *stream, const char *fmt, ...)
* Some compilers complain when `long double' and
* `double' are the same thing.
*/
-#if SIZEOF_LONG_DOUBLE != SIZEOF_DOUBLE
+#if H5_SIZEOF_LONG_DOUBLE != H5_SIZEOF_DOUBLE
long double x = va_arg (ap, long double);
n = fprintf (stream, format_templ, x);
#else
@@ -938,12 +938,12 @@ HDfprintf (FILE *stream, const char *fmt, ...)
if (fwidth>0) {
sprintf(format_templ+HDstrlen(format_templ), "%d", fwidth);
}
- if (sizeof(x)==SIZEOF_INT) {
+ if (sizeof(x)==H5_SIZEOF_INT) {
HDstrcat(format_templ, "d");
- } else if (sizeof(x)==SIZEOF_LONG) {
+ } else if (sizeof(x)==H5_SIZEOF_LONG) {
HDstrcat(format_templ, "ld");
- } else if (sizeof(x)==SIZEOF_LONG_LONG) {
- HDstrcat(format_templ, PRINTF_LL_WIDTH);
+ } else if (sizeof(x)==H5_SIZEOF_LONG_LONG) {
+ HDstrcat(format_templ, H5_PRINTF_LL_WIDTH);
HDstrcat(format_templ, "d");
}
n = fprintf(stream, format_templ, x);