Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00045
00046
00051 #ifndef F2C_INCLUDE
00052 #define F2C_INCLUDE
00053
00054 typedef long int integer;
00055
00056 typedef short int shortint;
00057 typedef float real;
00058 typedef double doublereal;
00059 typedef struct { real r, i; } complex;
00060 typedef struct { doublereal r, i; } doublecomplex;
00061 typedef long int logical;
00062 typedef short int shortlogical;
00063 typedef char logical1;
00064 typedef char integer1;
00065
00066
00067 #define TRUE_ (1)
00068 #define FALSE_ (0)
00069
00070
00071 #ifndef Extern
00072 #define Extern extern
00073 #endif
00074
00075
00076
00077 #ifdef f2c_i2
00078
00079 typedef short flag;
00080 typedef short ftnlen;
00081 typedef short ftnint;
00082 #else
00083 typedef long int flag;
00084 typedef long int ftnlen;
00085 typedef long int ftnint;
00086 #endif
00087
00088
00089 typedef struct
00090 {
00091 flag cierr;
00092 ftnint ciunit;
00093 flag ciend;
00094 char *cifmt;
00095 ftnint cirec;
00096 } cilist;
00097
00098
00099 typedef struct
00100 {
00101 flag icierr;
00102 char *iciunit;
00103 flag iciend;
00104 char *icifmt;
00105 ftnint icirlen;
00106 ftnint icirnum;
00107 } icilist;
00108
00109
00110 typedef struct
00111 {
00112 flag oerr;
00113 ftnint ounit;
00114 char *ofnm;
00115 ftnlen ofnmlen;
00116 char *osta;
00117 char *oacc;
00118 char *ofm;
00119 ftnint orl;
00120 char *oblnk;
00121 } olist;
00122
00123
00124 typedef struct
00125 {
00126 flag cerr;
00127 ftnint cunit;
00128 char *csta;
00129 } cllist;
00130
00131
00132 typedef struct
00133 {
00134 flag aerr;
00135 ftnint aunit;
00136 } alist;
00137
00138
00139 typedef struct
00140 {
00141 flag inerr;
00142 ftnint inunit;
00143 char *infile;
00144 ftnlen infilen;
00145 ftnint *inex;
00146 ftnint *inopen;
00147 ftnint *innum;
00148 ftnint *innamed;
00149 char *inname;
00150 ftnlen innamlen;
00151 char *inacc;
00152 ftnlen inacclen;
00153 char *inseq;
00154 ftnlen inseqlen;
00155 char *indir;
00156 ftnlen indirlen;
00157 char *infmt;
00158 ftnlen infmtlen;
00159 char *inform;
00160 ftnint informlen;
00161 char *inunf;
00162 ftnlen inunflen;
00163 ftnint *inrecl;
00164 ftnint *innrec;
00165 char *inblank;
00166 ftnlen inblanklen;
00167 } inlist;
00168
00169 #define VOID void
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186 struct Vardesc {
00187 char *name;
00188 char *addr;
00189 ftnlen *dims;
00190 int type;
00191 };
00192 typedef struct Vardesc Vardesc;
00193
00194 struct Namelist {
00195 char *name;
00196 Vardesc **vars;
00197 int nvars;
00198 };
00199 typedef struct Namelist Namelist;
00200
00201 #define abs(x) ((x) >= 0 ? (x) : -(x))
00202 #define dabs(x) (doublereal)abs(x)
00203 #define min(a,b) ((a) <= (b) ? (a) : (b))
00204 #define max(a,b) ((a) >= (b) ? (a) : (b))
00205 #define dmin(a,b) (doublereal)min(a,b)
00206 #define dmax(a,b) (doublereal)max(a,b)
00207
00208
00209
00210 #define F2C_proc_par_types 1
00211 #ifdef __cplusplus
00212 typedef int (*U_fp)(...);
00213 typedef shortint (*J_fp)(...);
00214 typedef integer (*I_fp)(...);
00215 typedef real (*R_fp)(...);
00216 typedef doublereal (*D_fp)(...), (*E_fp)(...);
00217 typedef VOID (*C_fp)(...);
00218 typedef VOID (*Z_fp)(...);
00219 typedef logical (*L_fp)(...);
00220 typedef shortlogical (*K_fp)(...);
00221 typedef VOID (*H_fp)(...);
00222 typedef int (*S_fp)(...);
00223 #else
00224 typedef int (*U_fp)();
00225 typedef shortint (*J_fp)();
00226 typedef integer (*I_fp)();
00227 typedef real (*R_fp)();
00228 typedef doublereal (*D_fp)(), (*E_fp)();
00229 typedef VOID (*C_fp)();
00230 typedef VOID (*Z_fp)();
00231 typedef logical (*L_fp)();
00232 typedef shortlogical (*K_fp)();
00233 typedef VOID (*H_fp)();
00234 typedef int (*S_fp)();
00235 #endif
00236
00237 typedef VOID C_f;
00238 typedef VOID H_f;
00239 typedef VOID Z_f;
00240 typedef doublereal E_f;
00241
00242
00243
00244 #ifndef Skip_f2c_Undefs
00245 #undef cray
00246 #undef gcos
00247 #undef mc68010
00248 #undef mc68020
00249 #undef mips
00250 #undef pdp11
00251 #undef sgi
00252 #undef sparc
00253 #undef sun
00254 #undef sun2
00255 #undef sun3
00256 #undef sun4
00257 #undef u370
00258 #undef u3b
00259 #undef u3b2
00260 #undef u3b5
00261 #undef unix
00262 #undef vax
00263 #endif
00264 #endif