2 * Grace - Graphics for Exploratory Data Analysis
4 * Home page: http://plasma-gate.weizmann.ac.il/Grace/
6 * Copyright (c) 1991-95 Paul J Turner, Portland, OR
7 * Copyright (c) 1996-98 GRACE Development Team
9 * Maintained by Evgeny Stambulchik
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 /* f2c.h -- Standard Fortran to C header file */
31 /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
33 - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
38 typedef long int integer
;
39 typedef unsigned long uinteger
;
40 typedef char *address
;
41 typedef short int shortint
;
43 typedef double doublereal
;
44 typedef struct { real r
, i
; } complex;
45 typedef struct { doublereal r
, i
; } doublecomplex
;
46 typedef long int logical
;
47 typedef short int shortlogical
;
48 typedef char logical1
;
49 typedef char integer1
;
50 #if 0 /* Adjust for integer*8. */
51 typedef long long longint
; /* system-dependent */
52 typedef unsigned long long ulongint
; /* system-dependent */
53 #define qbit_clear(a,b) ((a) & ~((ulongint)1 << (b)))
54 #define qbit_set(a,b) ((a) | ((ulongint)1 << (b)))
60 /* Extern is for use with -E */
73 typedef long int flag
;
74 typedef long int ftnlen
;
75 typedef long int ftnint
;
78 /*external read, write*/
87 /*internal read, write*/
117 /*rewind, backspace, endfile*/
129 ftnint
*inex
; /*parameters in standard's order*/
155 union Multitype
{ /* for multiple entry points */
166 typedef union Multitype Multitype
;
168 /*typedef long int Long;*/ /* No longer used; formerly in Namelist */
170 struct Vardesc
{ /* for Namelist */
176 typedef struct Vardesc Vardesc
;
183 typedef struct Namelist Namelist
;
185 /* AIX has abs() defined */
190 #define abs(x) ((x) >= 0 ? (x) : -(x))
191 #define dabs(x) (doublereal)abs(x)
192 #define min(a,b) ((a) <= (b) ? (a) : (b))
193 #define max(a,b) ((a) >= (b) ? (a) : (b))
194 #define dmin(a,b) (doublereal)min(a,b)
195 #define dmax(a,b) (doublereal)max(a,b)
196 #define bit_test(a,b) ((a) >> (b) & 1)
197 #define bit_clear(a,b) ((a) & ~((uinteger)1 << (b)))
198 #define bit_set(a,b) ((a) | ((uinteger)1 << (b)))
200 /* procedure parameter types for -A and -C++ */
202 #define F2C_proc_par_types 1
204 typedef int /* Unknown procedure type */ (*U_fp
)(...);
205 typedef shortint (*J_fp
)(...);
206 typedef integer (*I_fp
)(...);
207 typedef real (*R_fp
)(...);
208 typedef doublereal (*D_fp
)(...), (*E_fp
)(...);
209 typedef /* Complex */ VOID (*C_fp
)(...);
210 typedef /* Double Complex */ VOID (*Z_fp
)(...);
211 typedef logical (*L_fp
)(...);
212 typedef shortlogical (*K_fp
)(...);
213 typedef /* Character */ VOID (*H_fp
)(...);
214 typedef /* Subroutine */ int (*S_fp
)(...);
216 typedef int /* Unknown procedure type */ (*U_fp
)();
217 typedef shortint (*J_fp
)();
218 typedef integer (*I_fp
)();
219 typedef real (*R_fp
)();
220 typedef doublereal (*D_fp
)(), (*E_fp
)();
221 typedef /* Complex */ VOID (*C_fp
)();
222 typedef /* Double Complex */ VOID (*Z_fp
)();
223 typedef logical (*L_fp
)();
224 typedef shortlogical (*K_fp
)();
225 typedef /* Character */ VOID (*H_fp
)();
226 typedef /* Subroutine */ int (*S_fp
)();
228 /* E_fp is for real functions when -R is not specified */
229 typedef VOID C_f
; /* complex function */
230 typedef VOID H_f
; /* character function */
231 typedef VOID Z_f
; /* double complex function */
232 typedef doublereal E_f
; /* real function with -R not specified */
234 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
236 #ifndef Skip_f2c_Undefs