1 /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* f2c.h -- Standard Fortran to C header file */
4 /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
6 - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
12 typedef char *address;
13 typedef short int shortint;
15 typedef double doublereal;
16 typedef struct { real r, i; } complex;
17 typedef struct { doublereal r, i; } doublecomplex;
19 typedef short int shortlogical;
20 typedef char logical1;
21 typedef char integer1;
26 /* Extern is for use with -E */
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 */
130 typedef union Multitype Multitype;
132 typedef long Long; /* No longer used; formerly in Namelist */
134 struct Vardesc { /* for Namelist */
140 typedef struct Vardesc Vardesc;
147 typedef struct Namelist Namelist;
150 #define abs(x) ((x) >= 0 ? (x) : -(x))
152 #define dabs(x) (doublereal)abs(x)
154 #define min(a,b) ((a) <= (b) ? (a) : (b))
157 #define max(a,b) ((a) >= (b) ? (a) : (b))
159 #define dmin(a,b) (doublereal)min(a,b)
160 #define dmax(a,b) (doublereal)max(a,b)
162 /* procedure parameter types for -A and -C++ */
164 #define F2C_proc_par_types 1
166 typedef int /* Unknown procedure type */ (*U_fp)(...);
167 typedef shortint (*J_fp)(...);
168 typedef integer (*I_fp)(...);
169 typedef real (*R_fp)(...);
170 typedef doublereal (*D_fp)(...), (*E_fp)(...);
171 typedef /* Complex */ VOID (*C_fp)(...);
172 typedef /* Double Complex */ VOID (*Z_fp)(...);
173 typedef logical (*L_fp)(...);
174 typedef shortlogical (*K_fp)(...);
175 typedef /* Character */ VOID (*H_fp)(...);
176 typedef /* Subroutine */ int (*S_fp)(...);
178 typedef int /* Unknown procedure type */ (*U_fp)(void);
179 typedef shortint (*J_fp)(void);
180 typedef integer (*I_fp)(void);
181 typedef real (*R_fp)(void);
182 typedef doublereal (*D_fp)(void), (*E_fp)(void);
183 typedef /* Complex */ VOID (*C_fp)(void);
184 typedef /* Double Complex */ VOID (*Z_fp)(void);
185 typedef logical (*L_fp)(void);
186 typedef shortlogical (*K_fp)(void);
187 typedef /* Character */ VOID (*H_fp)(void);
188 typedef /* Subroutine */ int (*S_fp)(void);
190 /* E_fp is for real functions when -R is not specified */
191 typedef VOID C_f; /* complex function */
192 typedef VOID H_f; /* character function */
193 typedef VOID Z_f; /* double complex function */
194 typedef doublereal E_f; /* real function with -R not specified */
196 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
198 #ifndef Skip_f2c_Undefs