Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
win32_f2c.h
1 /* f2c.h -- Standard Fortran to C header file */
2 
3 /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
4 
5  - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
6 
7 #ifndef F2C_INCLUDE
8 #define F2C_INCLUDE
9 
10 #include <Base/Common/BIASpragmaStart.hh>
11 
12 typedef long int integer;
13 typedef char *address;
14 typedef short int shortint;
15 typedef float real;
16 typedef double doublereal;
17 typedef struct { real r, i;} complex;
18 typedef struct { doublereal r, i;} doublecomplex;
19 typedef long int logical;
20 typedef short int shortlogical;
21 typedef char logical1;
22 typedef char integer1;
23 typedef long longint; /* system-dependent */
24 
25 #define TRUE_ (1)
26 #define FALSE_ (0)
27 
28 /* Extern is for use with -E */
29 #ifndef Extern
30 #define Extern extern
31 #endif
32 
33 /* I/O stuff */
34 
35 #ifdef f2c_i2
36 /* for -i2 */
37 typedef short flag;
38 typedef short ftnlen;
39 typedef short ftnint;
40 #else
41 typedef long flag;
42 typedef long ftnlen;
43 typedef long ftnint;
44 #endif
45 
46 /*external read, write*/
47 typedef struct
48 { flag cierr;
49  ftnint ciunit;
50  flag ciend;
51  char *cifmt;
52  ftnint cirec;
53 } cilist;
54 
55 /*internal read, write*/
56 typedef struct
57 { flag icierr;
58  char *iciunit;
59  flag iciend;
60  char *icifmt;
61  ftnint icirlen;
62  ftnint icirnum;
63 } icilist;
64 
65 /*open*/
66 typedef struct
67 { flag oerr;
68  ftnint ounit;
69  char *ofnm;
70  ftnlen ofnmlen;
71  char *osta;
72  char *oacc;
73  char *ofm;
74  ftnint orl;
75  char *oblnk;
76 } olist;
77 
78 /*close*/
79 typedef struct
80 { flag cerr;
81  ftnint cunit;
82  char *csta;
83 } cllist;
84 
85 /*rewind, backspace, endfile*/
86 typedef struct
87 { flag aerr;
88  ftnint aunit;
89 } alist;
90 
91 /* inquire */
92 typedef struct
93 { flag inerr;
94  ftnint inunit;
95  char *infile;
96  ftnlen infilen;
97  ftnint *inex; /*parameters in standard's order*/
98  ftnint *inopen;
99  ftnint *innum;
100  ftnint *innamed;
101  char *inname;
102  ftnlen innamlen;
103  char *inacc;
104  ftnlen inacclen;
105  char *inseq;
106  ftnlen inseqlen;
107  char *indir;
108  ftnlen indirlen;
109  char *infmt;
110  ftnlen infmtlen;
111  char *inform;
112  ftnint informlen;
113  char *inunf;
114  ftnlen inunflen;
115  ftnint *inrecl;
116  ftnint *innrec;
117  char *inblank;
118  ftnlen inblanklen;
119 } inlist;
120 
121 #define VOID void
122 
123 union Multitype { /* for multiple entry points */
124  integer1 g;
125  shortint h;
126  integer i;
127  longint j;
128  real r;
129  doublereal d;
130  complex c;
132  };
133 
134 typedef union Multitype Multitype;
135 
136 typedef long Long; /* No longer used; formerly in Namelist */
137 
138 struct Vardesc { /* for Namelist */
139  char *name;
140  char *addr;
141  ftnlen *dims;
142  int type;
143  };
144 typedef struct Vardesc Vardesc;
145 
146 struct Namelist {
147  char *name;
148  Vardesc **vars;
149  int nvars;
150  };
151 typedef struct Namelist Namelist;
152 
153 #define abs(x) ((x) >= 0 ? (x) : -(x))
154 #define dabs(x) (doublereal)abs(x)
155 #define min(a,b) ((a) <= (b) ? (a) : (b))
156 #define max(a,b) ((a) >= (b) ? (a) : (b))
157 #define dmin(a,b) (doublereal)min(a,b)
158 #define dmax(a,b) (doublereal)max(a,b)
159 
160 /* procedure parameter types for -A and -C++ */
161 
162 #define F2C_proc_par_types 1
163 #ifdef __cplusplus
164 typedef int /* Unknown procedure type */ (*U_fp)(...);
165 typedef shortint (*J_fp)(...);
166 typedef integer (*I_fp)(...);
167 typedef real (*R_fp)(...);
168 typedef doublereal (*D_fp)(...), (*E_fp)(...);
169 typedef /* Complex */ VOID (*C_fp)(...);
170 typedef /* Double Complex */ VOID (*Z_fp)(...);
171 typedef logical (*L_fp)(...);
172 typedef shortlogical (*K_fp)(...);
173 typedef /* Character */ VOID (*H_fp)(...);
174 typedef /* Subroutine */ int (*S_fp)(...);
175 #else
176 typedef int /* Unknown procedure type */ (*U_fp)();
177 typedef shortint (*J_fp)();
178 typedef integer (*I_fp)();
179 typedef real (*R_fp)();
180 typedef doublereal (*D_fp)(), (*E_fp)();
181 typedef /* Complex */ VOID (*C_fp)();
182 typedef /* Double Complex */ VOID (*Z_fp)();
183 typedef logical (*L_fp)();
184 typedef shortlogical (*K_fp)();
185 typedef /* Character */ VOID (*H_fp)();
186 typedef /* Subroutine */ int (*S_fp)();
187 #endif
188 /* E_fp is for real functions when -R is not specified */
189 typedef VOID C_f; /* complex function */
190 typedef VOID H_f; /* character function */
191 typedef VOID Z_f; /* double complex function */
192 typedef doublereal E_f; /* real function with -R not specified */
193 
194 /* undef any lower-case symbols that your C compiler predefines, e.g.: */
195 
196 #ifndef Skip_f2c_Undefs
197 #undef cray
198 #undef gcos
199 #undef mc68010
200 #undef mc68020
201 #undef mips
202 #undef pdp11
203 #undef sgi
204 #undef sparc
205 #undef sun
206 #undef sun2
207 #undef sun3
208 #undef sun4
209 #undef u370
210 #undef u3b
211 #undef u3b2
212 #undef u3b5
213 #undef unix
214 #undef vax
215 #endif
216 #endif
217 
218 
219 #ifdef WIN32
220 
221 #ifdef BLAS_EXPORTS
222 #pragma message("Compiling for DLL\n")
223 #define BLAS_API __declspec(dllexport)
224 
225 #else
226 #define BLAS_API __declspec(dllimport)
227 #endif
228 
229 #ifdef LAPACK_EXPORTS
230 #pragma message("Compiling for DLL\n")
231 #define LAPACK_API __declspec(dllexport)
232 #else
233 #define LAPACK_API __declspec(dllimport)
234 #endif
235 
236 #endif // WIN32
237 
238 #include <Base/Common/BIASpragmaEnd.hh>
doublereal d
Definition: f2c.h:135
shortint h
Definition: f2c.h:131
int type
Definition: f2c.h:148
complex c
Definition: f2c.h:136
char * name
Definition: f2c.h:153
Definition: f2c.h:152
char * name
Definition: f2c.h:145
char * addr
Definition: f2c.h:146
Definition: f2c.h:60
Definition: f2c.h:129
Definition: f2c.h:98
Definition: f2c.h:70
Vardesc ** vars
Definition: f2c.h:154
Definition: f2c.h:51
real r
Definition: f2c.h:134
longint j
Definition: win32_f2c.h:127
rewind, backspace, endfile
Definition: f2c.h:92
Definition: f2c.h:83
doublecomplex z
Definition: f2c.h:137
integer1 g
Definition: f2c.h:130
integer i
Definition: f2c.h:132
Definition: f2c.h:16
int nvars
Definition: f2c.h:155
Definition: f2c.h:144
ftnlen * dims
Definition: f2c.h:147