00001 #ifndef FORTRAN_FROM_CPLUSPLUS
00002 #define FORTRAN_FROM_CPLUSPLUS
00003
00004
00005
00006
00007
00008
00009
00010
00011 typedef int INTEGER;
00012 typedef float REAL;
00013 typedef double DOUBLE_PRECISION;
00014 typedef int LOGICAL;
00015
00016 #include "f77char.h"
00017
00018 #include "f77matrix.h"
00019
00020
00021
00022 #define FALSE 0
00023 #define TRUE 1
00024
00025 #define F77_STUB_REQUIRED
00026
00027
00028 #ifdef F77_STUB_REQUIRED
00029
00030
00031
00032 #define SUBROUTINE inline void
00033 #define INTEGER_FUNCTION inline INTEGER
00034 #define REAL_FUNCTION inline REAL
00035 #define LOGICAL_FUNCTION inline LOGICAL
00036 #define DOUBLE_PRECISION_FUNCTION inline DOUBLE_PRECISION
00037
00038
00039 #define SUBROUTINE_F77 extern "C" void
00040 #define INTEGER_FUNCTION_F77 extern "C" int
00041 #define REAL_FUNCTION_F77 extern "C" float
00042 #define LOGICAL_FUNCTION_F77 extern "C" int
00043 #define DOUBLE_PRECISION_FUNCTION_F77 extern "C" double
00044 #else
00045
00046
00047
00048
00049 #define SUBROUTINE extern "C" void __stdcall
00050 #define INTEGER_FUNCTION extern "C" INTEGER __stdcall
00051 #define REAL_FUNCTION extern "C" REAL __stdcall
00052 #define LOGICAL_FUNCTION extern "C" LOGICAL __stdcall
00053 #define DOUBLE_PRECISION_FUNCTION extern "C" DOUBLE_PRECISION \
00054 __stdcall
00055
00056 #endif
00057
00058
00059
00060
00061
00062 #endif