1 /* g2c.h -- g77 version of f2c (Standard Fortran to C header file) */
3 /* This file is generated by the g77 libg2c configuration process from a
4 file named g2c.hin. This process sets up the appropriate types,
5 defines the appropriate macros, and so on. The resulting g2c.h file
6 is used to build g77's copy of libf2c, named libg2c, and also can
7 be used when compiling C code produced by f2c to link the resulting
8 object file(s) with those produced by the same version of g77 that
9 produced this file, allowing inter-operability of f2c-compiled and
12 /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
14 - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
19 /* F2C_INTEGER will normally be `int' but would be `long' on 16-bit systems */
20 /* we assume short, float are OK */
21 typedef __g77_integer integer;
22 typedef __g77_uinteger uinteger;
23 typedef char *address;
24 typedef short int shortint;
26 typedef double doublereal;
27 typedef struct { real r, i; } complex;
28 typedef struct { doublereal r, i; } doublecomplex;
29 typedef __g77_integer logical;
30 typedef short int shortlogical;
31 typedef char logical1;
32 typedef char integer1;
33 typedef __g77_longint longint; /* system-dependent */
34 typedef __g77_ulongint ulongint; /* system-dependent */
35 #define qbit_clear(a,b) ((a) & ~((ulongint)1 << (b)))
36 #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
41 /* Extern is for use with -E */
49 #error "f2c_i2 will not work with g77!!!!"
55 typedef __g77_integer flag;
56 typedef __g77_integer ftnlen;
57 typedef __g77_integer ftnint;
60 /*external read, write*/
69 /*internal read, write*/
99 /*rewind, backspace, endfile*/
111 ftnint *inex; /*parameters in standard's order*/
135 union Multitype { /* for multiple entry points */
146 typedef union Multitype Multitype;
148 /*typedef long int Long;*/ /* No longer used; formerly in Namelist */
150 struct Vardesc { /* for Namelist */
156 typedef struct Vardesc Vardesc;
163 typedef struct Namelist Namelist;
165 #define abs(x) ((x) >= 0 ? (x) : -(x))
166 #define dabs(x) (doublereal)abs(x)
167 #define min(a,b) ((a) <= (b) ? (a) : (b))
168 #define max(a,b) ((a) >= (b) ? (a) : (b))
169 #define dmin(a,b) (doublereal)min(a,b)
170 #define dmax(a,b) (doublereal)max(a,b)
171 #define bit_test(a,b) ((a) >> (b) & 1)
172 #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
173 #define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
175 /* procedure parameter types for -A and -C++ */
177 #define F2C_proc_par_types 1
179 typedef int /* Unknown procedure type */ (*U_fp)(...);
180 typedef shortint (*J_fp)(...);
181 typedef integer (*I_fp)(...);
182 typedef real (*R_fp)(...);
183 typedef doublereal (*D_fp)(...), (*E_fp)(...);
184 typedef /* Complex */ void (*C_fp)(...);
185 typedef /* Double Complex */ void (*Z_fp)(...);
186 typedef logical (*L_fp)(...);
187 typedef shortlogical (*K_fp)(...);
188 typedef /* Character */ void (*H_fp)(...);
189 typedef /* Subroutine */ int (*S_fp)(...);
191 typedef int /* Unknown procedure type */ (*U_fp)();
192 typedef shortint (*J_fp)();
193 typedef integer (*I_fp)();
194 typedef real (*R_fp)();
195 typedef doublereal (*D_fp)(), (*E_fp)();
196 typedef /* Complex */ void (*C_fp)();
197 typedef /* Double Complex */ void (*Z_fp)();
198 typedef logical (*L_fp)();
199 typedef shortlogical (*K_fp)();
200 typedef /* Character */ void (*H_fp)();
201 typedef /* Subroutine */ int (*S_fp)();
203 /* E_fp is for real functions when -R is not specified */
204 typedef void C_f; /* complex function */
205 typedef void H_f; /* character function */
206 typedef void Z_f; /* double complex function */
207 typedef doublereal E_f; /* real function with -R not specified */
209 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
211 #ifndef Skip_f2c_Undefs
212 /* (No such symbols should be defined in a strict ANSI C compiler.
213 We can avoid trouble with f2c-translated code by using
214 gcc -ansi [-traditional].) */