1 /* f2c.h -- Standard Fortran to C header file */
3 /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
5 - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
10 typedef long int integer;
11 typedef char *address;
12 typedef short int shortint;
14 typedef double doublereal;
15 typedef struct { real r, i; } complex;
16 typedef struct { doublereal r, i; } doublecomplex;
17 typedef long int logical;
18 typedef short int shortlogical;
19 typedef char logical1;
20 typedef char integer1;
21 /* typedef long long longint; */ /* system-dependent */
26 /* Extern is for use with -E */
39 typedef long int flag;
40 typedef long int ftnlen;
41 typedef long int ftnint;
44 /*external read, write*/
53 /*internal read, write*/
83 /*rewind, backspace, endfile*/
95 ftnint *inex; /*parameters in standard's order*/
121 union Multitype { /* for multiple entry points */
132 typedef union Multitype Multitype;
134 /*typedef long int Long;*/ /* No longer used; formerly in Namelist */
136 struct Vardesc { /* for Namelist */
142 typedef struct Vardesc Vardesc;
149 typedef struct Namelist Namelist;
151 #define abs(x) ((x) >= 0 ? (x) : -(x))
152 #define dabs(x) (doublereal)abs(x)
153 #define min(a,b) ((a) <= (b) ? (a) : (b))
154 #define max(a,b) ((a) >= (b) ? (a) : (b))
155 #define dmin(a,b) (doublereal)min(a,b)
156 #define dmax(a,b) (doublereal)max(a,b)
158 /* procedure parameter types for -A and -C++ */
160 #define F2C_proc_par_types 1
162 typedef int /* Unknown procedure type */ (*U_fp)(...);
163 typedef shortint (*J_fp)(...);
164 typedef integer (*I_fp)(...);
165 typedef real (*R_fp)(...);
166 typedef doublereal (*D_fp)(...), (*E_fp)(...);
167 typedef /* Complex */ VOID (*C_fp)(...);
168 typedef /* Double Complex */ VOID (*Z_fp)(...);
169 typedef logical (*L_fp)(...);
170 typedef shortlogical (*K_fp)(...);
171 typedef /* Character */ VOID (*H_fp)(...);
172 typedef /* Subroutine */ int (*S_fp)(...);
174 typedef int /* Unknown procedure type */ (*U_fp)();
175 typedef shortint (*J_fp)();
176 typedef integer (*I_fp)();
177 typedef real (*R_fp)();
178 typedef doublereal (*D_fp)(), (*E_fp)();
179 typedef /* Complex */ VOID (*C_fp)();
180 typedef /* Double Complex */ VOID (*Z_fp)();
181 typedef logical (*L_fp)();
182 typedef shortlogical (*K_fp)();
183 typedef /* Character */ VOID (*H_fp)();
184 typedef /* Subroutine */ int (*S_fp)();
186 /* E_fp is for real functions when -R is not specified */
187 typedef VOID C_f; /* complex function */
188 typedef VOID H_f; /* character function */
189 typedef VOID Z_f; /* double complex function */
190 typedef doublereal E_f; /* real function with -R not specified */
192 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
194 #ifndef Skip_f2c_Undefs