]>
gcc.gnu.org Git - gcc.git/blob - libf2c/g2c.h.in
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.h.in. 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 @F2C_INTEGER@
/* long int */ integer
;
22 typedef unsigned @F2C_INTEGER@
/* long */ 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 @F2C_INTEGER@
/* long int */ logical
;
30 typedef short int shortlogical
;
31 typedef char logical1
;
32 typedef char integer1
;
33 typedef @F2C_LONGINT@
/* long long */ longint
; /* system-dependent */
34 typedef unsigned @F2C_LONGINT@
/* long long */ 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 @F2C_INTEGER@
/* long int */ flag
;
56 typedef @F2C_INTEGER@
/* long int */ ftnlen
;
57 typedef @F2C_INTEGER@
/* long int */ ftnint
;
60 /*external read, write*/
69 /*internal read, write*/
99 /*rewind, backspace, endfile*/
111 ftnint
*inex
; /*parameters in standard's order*/
137 union Multitype
{ /* for multiple entry points */
148 typedef union Multitype Multitype
;
150 /*typedef long int Long;*/ /* No longer used; formerly in Namelist */
152 struct Vardesc
{ /* for Namelist */
158 typedef struct Vardesc Vardesc
;
165 typedef struct Namelist Namelist
;
167 #define abs(x) ((x) >= 0 ? (x) : -(x))
168 #define dabs(x) (doublereal)abs(x)
169 #define min(a,b) ((a) <= (b) ? (a) : (b))
170 #define max(a,b) ((a) >= (b) ? (a) : (b))
171 #define dmin(a,b) (doublereal)min(a,b)
172 #define dmax(a,b) (doublereal)max(a,b)
173 #define bit_test(a,b) ((a) >> (b) & 1)
174 #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
175 #define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
177 /* procedure parameter types for -A and -C++ */
179 #define F2C_proc_par_types 1
181 typedef int /* Unknown procedure type */ (*U_fp
)(...);
182 typedef shortint (*J_fp
)(...);
183 typedef integer (*I_fp
)(...);
184 typedef real (*R_fp
)(...);
185 typedef doublereal (*D_fp
)(...), (*E_fp
)(...);
186 typedef /* Complex */ VOID (*C_fp
)(...);
187 typedef /* Double Complex */ VOID (*Z_fp
)(...);
188 typedef logical (*L_fp
)(...);
189 typedef shortlogical (*K_fp
)(...);
190 typedef /* Character */ VOID (*H_fp
)(...);
191 typedef /* Subroutine */ int (*S_fp
)(...);
193 typedef int /* Unknown procedure type */ (*U_fp
)();
194 typedef shortint (*J_fp
)();
195 typedef integer (*I_fp
)();
196 typedef real (*R_fp
)();
197 typedef doublereal (*D_fp
)(), (*E_fp
)();
198 typedef /* Complex */ VOID (*C_fp
)();
199 typedef /* Double Complex */ VOID (*Z_fp
)();
200 typedef logical (*L_fp
)();
201 typedef shortlogical (*K_fp
)();
202 typedef /* Character */ VOID (*H_fp
)();
203 typedef /* Subroutine */ int (*S_fp
)();
205 /* E_fp is for real functions when -R is not specified */
206 typedef VOID C_f
; /* complex function */
207 typedef VOID H_f
; /* character function */
208 typedef VOID Z_f
; /* double complex function */
209 typedef doublereal E_f
; /* real function with -R not specified */
211 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
213 #ifndef Skip_f2c_Undefs
214 /* (No such symbols should be defined in a strict ANSI C compiler.
215 We can avoid trouble with f2c-translated code by using
216 gcc -ansi [-traditional].) */
This page took 0.096285 seconds and 5 git commands to generate.