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;
23 /* Extern is for use with -E */
41 /*external read, write*/
50 /*internal read, write*/
80 /*rewind, backspace, endfile*/
92 ftnint *inex; /*parameters in standard's order*/
118 union Multitype { /* for multiple entry points */
127 typedef union Multitype Multitype;
131 struct Vardesc { /* for Namelist */
137 typedef struct Vardesc Vardesc;
144 typedef struct Namelist Namelist;
146 #define abs(x) ((x) >= 0 ? (x) : -(x))
147 #define dabs(x) (doublereal)abs(x)
148 #define min(a,b) ((a) <= (b) ? (a) : (b))
149 #define max(a,b) ((a) >= (b) ? (a) : (b))
150 #define dmin(a,b) (doublereal)min(a,b)
151 #define dmax(a,b) (doublereal)max(a,b)
153 /* procedure parameter types for -A and -C++ */
155 #define F2C_proc_par_types 1
157 typedef int /* Unknown procedure type */ (*U_fp)(...);
158 typedef shortint (*J_fp)(...);
159 typedef integer (*I_fp)(...);
160 typedef real (*R_fp)(...);
161 typedef doublereal (*D_fp)(...), (*E_fp)(...);
162 typedef /* Complex */ VOID (*C_fp)(...);
163 typedef /* Double Complex */ VOID (*Z_fp)(...);
164 typedef logical (*L_fp)(...);
165 typedef shortlogical (*K_fp)(...);
166 typedef /* Character */ VOID (*H_fp)(...);
167 typedef /* Subroutine */ int (*S_fp)(...);
169 typedef int /* Unknown procedure type */ (*U_fp)();
170 typedef shortint (*J_fp)();
171 typedef integer (*I_fp)();
172 typedef real (*R_fp)();
173 typedef doublereal (*D_fp)(), (*E_fp)();
174 typedef /* Complex */ VOID (*C_fp)();
175 typedef /* Double Complex */ VOID (*Z_fp)();
176 typedef logical (*L_fp)();
177 typedef shortlogical (*K_fp)();
178 typedef /* Character */ VOID (*H_fp)();
179 typedef /* Subroutine */ int (*S_fp)();
181 /* E_fp is for real functions when -R is not specified */
182 typedef VOID C_f; /* complex function */
183 typedef VOID H_f; /* character function */
184 typedef VOID Z_f; /* double complex function */
185 typedef doublereal E_f; /* real function with -R not specified */
187 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
189 #ifndef Skip_f2c_Undefs