summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5f90i.h
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-04-25 19:00:06 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-04-25 19:00:06 (GMT)
commita05061f512a52832cc69211db0e382d30eecaaa5 (patch)
tree1a4d5a3e93700a3b493171e9e32527ae151d63f6 /fortran/src/H5f90i.h
parent1cc3666a270a15783574a2f2a7c6d9bc1209a76b (diff)
downloadhdf5-a05061f512a52832cc69211db0e382d30eecaaa5.zip
hdf5-a05061f512a52832cc69211db0e382d30eecaaa5.tar.gz
hdf5-a05061f512a52832cc69211db0e382d30eecaaa5.tar.bz2
[svn-r10657] Purpose:
Configuration feature Description: Fortran integer types (not reals) are now automatically detected at build-time. Solution: Two helper programs are used, one to detect what types the Fortran compiler has access to, and one to generate header files for C and Fortran matching up types. Platforms tested: mir, copper, modi4, pommier (last week) Misc. update: MANIFEST updated, H5f90fortran_types.f90 removed from configure.in, since it is not longer generated by configure.
Diffstat (limited to 'fortran/src/H5f90i.h')
-rw-r--r--fortran/src/H5f90i.h101
1 files changed, 6 insertions, 95 deletions
diff --git a/fortran/src/H5f90i.h b/fortran/src/H5f90i.h
index c1a390c..221e854 100644
--- a/fortran/src/H5f90i.h
+++ b/fortran/src/H5f90i.h
@@ -22,17 +22,17 @@
#include "H5private.h"
+/*
+ * Include generated header. This header defines integer types,
+ * so this file only needs to define _fcd and real_f.
+ */
+#include "H5f90i_gen.h"
+
#if (defined (UNICOS) || (defined (_UNICOS)))
#include <fortran.h>
/*typedef char* _fcd;*/
-typedef long haddr_t_f;
-typedef long hsize_t_f;
-typedef long hssize_t_f;
-typedef long size_t_f;
-typedef long int_f;
-typedef long hid_t_f;
typedef double real_f;
#endif /* UNICOS */
@@ -40,12 +40,6 @@ typedef double real_f;
#if defined(IBM6000) || defined(_AIX)
typedef char *_fcd;
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef int size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
#endif /*IBM6000*/
@@ -53,12 +47,6 @@ typedef float real_f;
/* MAC APPLE definitions with IBM XL compiler*/
#if defined(__APPLE__)
typedef char *_fcd;
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef int size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
@@ -69,47 +57,24 @@ typedef float real_f;
/* Common definitions */
typedef char *_fcd;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
/* IA32 specific definitions */
#if (defined(i386) || defined(__i386) || defined(__i386__))
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef int size_t_f;
-
/* AMD64 specific definitions */
#elif defined __x86_64__
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef int size_t_f;
-
/* IA64 specific definitions */
#elif defined __ia64
-typedef long haddr_t_f;
-typedef long hsize_t_f;
-typedef long hssize_t_f;
-typedef long size_t_f;
-
#endif /* IA64 */
#endif /* LINUX*/
#if defined(IRIX) || defined(IRIS4) || defined(sgi) || defined(__sgi__) || defined(__sgi)
typedef char *_fcd;
-typedef long haddr_t_f;
-typedef long hsize_t_f;
-typedef long hssize_t_f;
-typedef long size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
#endif /* IRIX */
@@ -117,12 +82,6 @@ typedef float real_f;
#if (defined(SUN) || defined(sun) || defined(__sun__) || defined(__SUNPRO_C)) & !defined(__i386)
typedef char *_fcd;
-typedef long long haddr_t_f;
-typedef long long hssize_t_f;
-typedef long long hsize_t_f;
-typedef int size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
@@ -131,12 +90,6 @@ typedef float real_f;
#if defined DEC_ALPHA || (defined __alpha && defined __unix__ && !defined __linux__)
typedef char *_fcd;
-typedef long haddr_t_f;
-typedef long hsize_t_f;
-typedef long hssize_t_f;
-typedef long size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
@@ -145,12 +98,6 @@ typedef float real_f;
#if defined __alpha__ && defined __linux__
typedef char *_fcd;
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef long long size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
@@ -159,27 +106,14 @@ typedef float real_f;
#if defined(HP9000) || (!defined(__convexc__) && (defined(hpux) || defined(__hpux)))
typedef char *_fcd;
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef long size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
#endif /* HP9000 */
-
#if defined _WINDOWS || defined WIN32
typedef char *_fcd;
-typedef int haddr_t_f;
-typedef int hsize_t_f;
-typedef int hssize_t_f;
-typedef int size_t_f;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
@@ -191,32 +125,9 @@ typedef float real_f;
/* Common definitions */
typedef char *_fcd;
-typedef int int_f;
-typedef int hid_t_f;
typedef float real_f;
#define _fcdtocp(desc) (desc)
-/* IA32 specific definitions */
-#if (defined(i386) || defined(__i386) || defined(__i386__))
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef int size_t_f;
-/* AMD64 specific definitions */
-#elif defined __x86_64__
-typedef long long haddr_t_f;
-typedef long long hsize_t_f;
-typedef long long hssize_t_f;
-typedef int size_t_f;
-/* IA64 specific definitions */
-#elif defined __ia64
-typedef long haddr_t_f;
-typedef long hsize_t_f;
-typedef long hssize_t_f;
-typedef long size_t_f;
-#endif /* IA64 */
-
-
#endif /* FreeBSD */
#endif /* _H5f90i_H */