00001
00002
00003
00004
00005 #ifndef __CFORTRAN_LOADED
00006 #define __CFORTRAN_LOADED
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef ANSI_C_preprocessor
00024 #ifdef __CF__KnR
00025 #define ANSI_C_preprocessor 0
00026 #else
00027 #ifdef __STDC__
00028 #define ANSI_C_preprocessor 1
00029 #else
00030 #define _cfleft 1
00031 #define _cfright
00032 #define _cfleft_cfright 0
00033 #define ANSI_C_preprocessor _cfleft_cfright
00034 #endif
00035 #endif
00036 #endif
00037
00038 #if ANSI_C_preprocessor
00039 #define _0(A,B) A##B
00040 #define _(A,B) _0(A,B)
00041 #define _2(A,B) A##B
00042 #define _3(A,B,C) _(A,_(B,C))
00043 #else
00044 #define _(A,B) AB
00045 #define _2(A,B) AB
00046 #define _3(A,B,C) ABC
00047 #endif
00048
00049 #if (defined(vax)&&defined(unix)) || (defined(__vax__)&&defined(__unix__))
00050 #define VAXUltrix
00051 #endif
00052
00053 #include <stdio.h>
00054 #include <string.h>
00055 #if !( defined(VAXUltrix) || defined(sun) || (defined(apollo)&&!defined(__STDCPP__)) )
00056 #include <stdlib.h>
00057 #else
00058 #include <malloc.h>
00059 #ifdef apollo
00060 #define __CF__APOLLO67
00061 #endif
00062 #endif
00063
00064 #if !defined(__GNUC__) && !defined(__sun) && (defined(sun)||defined(VAXUltrix)||defined(lynx))
00065 #define __CF__KnR
00066
00067 #endif
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078 #if defined(CLIPPERFortran) || defined(pgiFortran)
00079 #define f2cFortran
00080 #endif
00081
00082
00083
00084 #if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran))
00085 #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
00086
00087 #if defined(lynx) || defined(VAXUltrix)
00088 #define f2cFortran
00089
00090
00091
00092 #endif
00093 #if defined(__hpux)
00094 #define hpuxFortran
00095 #endif
00096 #if defined(apollo)
00097 #define apolloFortran
00098 #endif
00099 #if defined(sun) || defined(__sun)
00100 #define sunFortran
00101 #endif
00102 #if defined(_IBMR2)
00103 #define IBMR2Fortran
00104 #endif
00105 #if defined(_CRAY)
00106 #define CRAYFortran
00107 #endif
00108 #if defined(_SX)
00109 #define SXFortran
00110 #endif
00111 #if defined(mips) || defined(__mips)
00112 #define mipsFortran
00113 #endif
00114 #if defined(vms) || defined(__vms)
00115 #define vmsFortran
00116 #endif
00117 #if defined(__alpha) && defined(__unix__)
00118 #define DECFortran
00119 #endif
00120 #if defined(__convex__)
00121 #define CONVEXFortran
00122 #endif
00123 #if defined(VISUAL_CPLUSPLUS)
00124 #define PowerStationFortran
00125 #endif
00126 #endif
00127 #endif
00128
00129
00130 #if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran))
00131 #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
00132
00133 #error "cfortran.h: Can't find your environment among:\
00134 - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) \
00135 - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 \
00136 - VAX VMS CC 3.1 and FORTRAN 5.4. \
00137 - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0. \
00138 - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2 \
00139 - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7. \
00140 - CRAY \
00141 - NEC SX-4 SUPER-UX \
00142 - CONVEX \
00143 - Sun \
00144 - PowerStation Fortran with Visual C++ \
00145 - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730 \
00146 - LynxOS: cc or gcc with f2c. \
00147 - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77. \
00148 - f77 with vcc works; but missing link magic for f77 I/O. \
00149 - NO fort. None of gcc, cc or vcc generate required names.\
00150 - f2c : Use #define f2cFortran, or cc -Df2cFortran \
00151 - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran \
00152 - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran \
00153 - Absoft Pro Fortran: Use #define AbsoftProFortran \
00154 - Portland Group Fortran: Use #define pgiFortran"
00155
00156 #endif
00157 #endif
00158
00159
00160 #if defined(VAXC) && !defined(__VAXC)
00161 #define OLD_VAXC
00162 #pragma nostandard
00163 #endif
00164
00165
00166
00167 #if defined(f2cFortran) || defined(NAGf90Fortran) || defined(DECFortran) || defined(mipsFortran) || defined(apolloFortran) || defined(sunFortran) || defined(CONVEXFortran) || defined(SXFortran) || defined(extname)
00168 #define CFC_(UN,LN) _(LN,_)
00169 #define orig_fcallsc(UN,LN) CFC_(UN,LN)
00170 #else
00171 #if defined(CRAYFortran) || defined(PowerStationFortran) || defined(AbsoftProFortran)
00172 #ifdef _CRAY
00173 #define CFC_(UN,LN) (UN)
00174 #else
00175 #define CFC_(UN,LN) UN
00176 #endif
00177 #define orig_fcallsc(UN,LN) CFC_(UN,LN)
00178 #else
00179 #define CF_SAME_NAMESPACE
00180 #ifdef vmsFortran
00181 #define CFC_(UN,LN) LN
00182
00183
00184 #define orig_fcallsc(UN,LN) UN
00185 #else
00186 #define CFC_(UN,LN) LN
00187 #define orig_fcallsc(UN,LN) CFC_(UN,LN)
00188 #endif
00189 #endif
00190 #endif
00191
00192 #define fcallsc(UN,LN) orig_fcallsc(UN,LN)
00193 #define preface_fcallsc(P,p,UN,LN) CFC_(_(P,UN),_(p,LN))
00194 #define append_fcallsc(P,p,UN,LN) CFC_(_(UN,P),_(LN,p))
00195
00196 #define C_FUNCTION(UN,LN) fcallsc(UN,LN)
00197 #define FORTRAN_FUNCTION(UN,LN) CFC_(UN,LN)
00198
00199 #ifndef COMMON_BLOCK
00200 #ifndef CONVEXFortran
00201 #ifndef CLIPPERFortran
00202 #if !(defined(AbsoftUNIXFortran)||defined(AbsoftProFortran))
00203 #define COMMON_BLOCK(UN,LN) CFC_(UN,LN)
00204 #else
00205 #define COMMON_BLOCK(UN,LN) _(_C,LN)
00206 #endif
00207 #else
00208 #define COMMON_BLOCK(UN,LN) _(LN,__)
00209 #endif
00210 #else
00211 #define COMMON_BLOCK(UN,LN) _3(_,LN,_)
00212 #endif
00213 #endif
00214
00215 #ifndef DOUBLE_PRECISION
00216 #if defined(CRAYFortran) && !defined(_CRAYT3E)
00217 #define DOUBLE_PRECISION long double
00218 #else
00219 #define DOUBLE_PRECISION double
00220 #endif
00221 #endif
00222
00223 #ifndef FORTRAN_REAL
00224 #if defined(CRAYFortran) && defined(_CRAYT3E)
00225 #define FORTRAN_REAL double
00226 #else
00227 #define FORTRAN_REAL float
00228 #endif
00229 #endif
00230
00231 #ifdef CRAYFortran
00232 #ifdef _CRAY
00233 #include <fortran.h>
00234 #else
00235 #include "fortran.h"
00236 #endif
00237 #define FLOATVVVVVVV_cfPP (FORTRAN_REAL *)
00238
00239 #define VOIDP (void *)
00240
00241 #else
00242 #define FLOATVVVVVVV_cfPP
00243 #define VOIDP
00244 #endif
00245
00246 #ifdef vmsFortran
00247 #if defined(vms) || defined(__vms)
00248 #include <descrip.h>
00249 #else
00250 #include "descrip.h"
00251 #endif
00252 #endif
00253
00254 #ifdef sunFortran
00255 #if defined(sun) || defined(__sun)
00256 #include <math.h>
00257 #else
00258 #include "math.h"
00259 #endif
00260
00261
00262
00263
00264
00265
00266
00267
00268 #endif
00269
00270 #ifndef apolloFortran
00271 #define COMMON_BLOCK_DEF(DEFINITION, NAME) extern DEFINITION NAME
00272 #define CF_NULL_PROTO
00273 #else
00274
00275
00276 #define CF_NULL_PROTO ...
00277 #ifndef __CF__APOLLO67
00278 #define COMMON_BLOCK_DEF(DEFINITION, NAME) \
00279 DEFINITION NAME __attribute((__section(NAME)))
00280 #else
00281 #define COMMON_BLOCK_DEF(DEFINITION, NAME) \
00282 DEFINITION NAME #attribute[section(NAME)]
00283 #endif
00284 #endif
00285
00286 #ifdef __cplusplus
00287 #undef CF_NULL_PROTO
00288 #define CF_NULL_PROTO ...
00289 #endif
00290
00291
00292 #ifndef USE_NEW_DELETE
00293 #ifdef __cplusplus
00294 #define USE_NEW_DELETE 1
00295 #else
00296 #define USE_NEW_DELETE 0
00297 #endif
00298 #endif
00299 #if USE_NEW_DELETE
00300 #define _cf_malloc(N) new char[N]
00301 #define _cf_free(P) delete[] P
00302 #else
00303 #define _cf_malloc(N) (char *)malloc(N)
00304 #define _cf_free(P) free(P)
00305 #endif
00306
00307 #ifdef mipsFortran
00308 #define CF_DECLARE_GETARG int f77argc; char **f77argv
00309 #define CF_SET_GETARG(ARGC,ARGV) f77argc = ARGC; f77argv = ARGV
00310 #else
00311 #define CF_DECLARE_GETARG
00312 #define CF_SET_GETARG(ARGC,ARGV)
00313 #endif
00314
00315 #ifdef OLD_VAXC
00316 #pragma standard
00317 #endif
00318
00319 #define AcfCOMMA ,
00320 #define AcfCOLON ;
00321
00322
00323
00324
00325
00326 #define _cfMIN(A,B) (A<B?A:B)
00327
00328
00329
00330
00331
00332 #define firstindexlength(A) (sizeof(A[0])==1 ? 1 : (sizeof(A) / sizeof(A[0])) )
00333 #define secondindexlength(A) (sizeof(A[0])==1 ? sizeof(A) : sizeof(A[0]) )
00334
00335
00336
00337
00338
00339
00340
00341
00342
00343
00344
00345
00346 #if defined(NAGf90Fortran) || defined(f2cFortran) || defined(mipsFortran) || defined(PowerStationFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran) || defined(AbsoftProFortran) || defined(SXFortran)
00347
00348
00349 #define LOGICAL_STRICT
00350 #endif
00351
00352 #define C2FLOGICALV(A,I) \
00353 do {int __i; for(__i=0;__i<I;__i++) A[__i]=C2FLOGICAL(A[__i]); } while (0)
00354 #define F2CLOGICALV(A,I) \
00355 do {int __i; for(__i=0;__i<I;__i++) A[__i]=F2CLOGICAL(A[__i]); } while (0)
00356
00357 #if defined(apolloFortran)
00358 #define C2FLOGICAL(L) ((L)?-1:(L)&~((unsigned)1<<sizeof(int)*8-1))
00359 #define F2CLOGICAL(L) ((L)<0?(L):0)
00360 #else
00361 #if defined(CRAYFortran)
00362 #define C2FLOGICAL(L) _btol(L)
00363 #define F2CLOGICAL(L) _ltob(&(L))
00364 #else
00365 #if defined(IBMR2Fortran) || defined(vmsFortran) || defined(DECFortran) || defined(AbsoftUNIXFortran)
00366
00367 #define C2FLOGICAL(L) ((L)?(L)|1:(L)&~(int)1)
00368 #define F2CLOGICAL(L) ((L)&1?(L):0)
00369 #else
00370 #if defined(CONVEXFortran)
00371 #define C2FLOGICAL(L) ((L) ? ~0 : 0 )
00372 #define F2CLOGICAL(L) (L)
00373 #else
00374 #define C2FLOGICAL(L) (L)
00375 #define F2CLOGICAL(L) (L)
00376 #ifndef LOGICAL_STRICT
00377 #undef C2FLOGICALV
00378 #undef F2CLOGICALV
00379 #define C2FLOGICALV(A,I)
00380 #define F2CLOGICALV(A,I)
00381 #endif
00382 #endif
00383 #endif
00384 #endif
00385 #endif
00386
00387
00388
00389 #if defined(LOGICAL_STRICT) && !defined(CRAYFortran)
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401 #undef C2FLOGICAL
00402 #ifdef hpuxFortran800
00403 #define C2FLOGICAL(L) ((L)?0x01000000:0)
00404 #else
00405 #if defined(apolloFortran) || defined(vmsFortran) || defined(DECFortran)
00406 #define C2FLOGICAL(L) ((L)?-1:0)
00407 #else
00408 #define C2FLOGICAL(L) ((L)? 1:0)
00409 #endif
00410 #endif
00411 #endif
00412
00413
00414 #ifndef __CF__KnR
00415 static char *c2fstrv(char* cstr, char *fstr, int elem_len, int sizeofcstr)
00416 #else
00417 static char *c2fstrv( cstr, fstr, elem_len, sizeofcstr)
00418 char* cstr; char *fstr; int elem_len; int sizeofcstr;
00419 #endif
00420 { int i,j;
00421
00422
00423 for (i=0; i<sizeofcstr/elem_len; i++) {
00424 for (j=1; j<elem_len && *cstr; j++) *fstr++ = *cstr++;
00425 cstr += 1+elem_len-j;
00426 for (; j<elem_len; j++) *fstr++ = ' ';
00427 }
00428 return fstr-sizeofcstr+sizeofcstr/elem_len; }
00429
00430
00431 #ifndef __CF__KnR
00432 static char *f2cstrv(char *fstr, char* cstr, int elem_len, int sizeofcstr)
00433 #else
00434 static char *f2cstrv( fstr, cstr, elem_len, sizeofcstr)
00435 char *fstr; char* cstr; int elem_len; int sizeofcstr;
00436 #endif
00437 { int i,j;
00438
00439
00440 cstr += sizeofcstr;
00441 fstr += sizeofcstr - sizeofcstr/elem_len;
00442 for (i=0; i<sizeofcstr/elem_len; i++) {
00443 *--cstr = '\0';
00444 for (j=1; j<elem_len; j++) *--cstr = *--fstr;
00445 } return cstr; }
00446
00447
00448 #ifndef __CF__KnR
00449 static char *kill_trailing(char *s, char t)
00450 #else
00451 static char *kill_trailing( s, t) char *s; char t;
00452 #endif
00453 {char *e;
00454 e = s + strlen(s);
00455 if (e>s) {
00456 while (e>s && *--e==t);
00457 e[*e==t?0:1] = '\0';
00458 } return s; }
00459
00460
00461
00462
00463
00464 #ifndef __CF__KnR
00465 static char *kill_trailingn(char *s, char t, char *e)
00466 #else
00467 static char *kill_trailingn( s, t, e) char *s; char t; char *e;
00468 #endif
00469 {
00470 if (e==s) *e = '\0';
00471 else if (e>s) {
00472 while (e>s && *--e==t);
00473 e[*e==t?0:1] = '\0';
00474 } return s; }
00475
00476
00477
00478 #ifndef __CF__KnR
00479 static char *vkill_trailing(char* cstr, int elem_len, int sizeofcstr, char t)
00480 #else
00481 static char *vkill_trailing( cstr, elem_len, sizeofcstr, t)
00482 char* cstr; int elem_len; int sizeofcstr; char t;
00483 #endif
00484 { int i;
00485 for (i=0; i<sizeofcstr/elem_len; i++)
00486 kill_trailingn(cstr+elem_len*i,t,cstr+elem_len*(i+1)-1);
00487 return cstr; }
00488
00489 #ifdef vmsFortran
00490 typedef struct dsc$descriptor_s fstring;
00491 #define DSC$DESCRIPTOR_A(DIMCT) \
00492 struct { \
00493 unsigned short dsc$w_length; unsigned char dsc$b_dtype; \
00494 unsigned char dsc$b_class; char *dsc$a_pointer; \
00495 char dsc$b_scale; unsigned char dsc$b_digits; \
00496 struct { \
00497 unsigned : 3; unsigned dsc$v_fl_binscale : 1; \
00498 unsigned dsc$v_fl_redim : 1; unsigned dsc$v_fl_column : 1; \
00499 unsigned dsc$v_fl_coeff : 1; unsigned dsc$v_fl_bounds : 1; \
00500 } dsc$b_aflags; \
00501 unsigned char dsc$b_dimct; unsigned long dsc$l_arsize; \
00502 char *dsc$a_a0; long dsc$l_m [DIMCT]; \
00503 struct { \
00504 long dsc$l_l; long dsc$l_u; \
00505 } dsc$bounds [DIMCT]; \
00506 }
00507 typedef DSC$DESCRIPTOR_A(1) fstringvector;
00508
00509
00510 #define initfstr(F,C,ELEMNO,ELEMLEN) \
00511 ( (F).dsc$l_arsize= ( (F).dsc$w_length =(ELEMLEN) ) \
00512 *( (F).dsc$l_m[0]=(F).dsc$bounds[0].dsc$l_u=(ELEMNO) ), \
00513 (F).dsc$a_a0 = ( (F).dsc$a_pointer=(C) ) - (F).dsc$w_length ,(F))
00514
00515 #else
00516 #define _NUM_ELEMS -1
00517 #define _NUM_ELEM_ARG -2
00518 #define NUM_ELEMS(A) A,_NUM_ELEMS
00519 #define NUM_ELEM_ARG(B) *_2(A,B),_NUM_ELEM_ARG
00520 #define TERM_CHARS(A,B) A,B
00521 #ifndef __CF__KnR
00522 static int num_elem(char *strv, unsigned elem_len, int term_char, int num_term)
00523 #else
00524 static int num_elem( strv, elem_len, term_char, num_term)
00525 char *strv; unsigned elem_len; int term_char; int num_term;
00526 #endif
00527
00528
00529
00530
00531 {
00532 unsigned num,i;
00533 if (num_term == _NUM_ELEMS || num_term == _NUM_ELEM_ARG)
00534 return term_char;
00535 if (num_term <=0) num_term = (int)elem_len;
00536 for (num=0; ; num++) {
00537 for (i=0; i<(unsigned)num_term && *strv==term_char; i++,strv++);
00538 if (i==(unsigned)num_term) break;
00539 else strv += elem_len-i;
00540 }
00541 return (int)num;
00542 }
00543 #endif
00544
00545
00546
00547
00548
00549
00550
00551 #define C2FCBSTR(CSTR,FSTR,DIM) \
00552 c2fstrv((char *)CSTR, (char *)FSTR, sizeof(FSTR)/cfelementsof(FSTR,DIM)+1, \
00553 sizeof(FSTR)+cfelementsof(FSTR,DIM))
00554
00555
00556 #define FCB2CSTR(FSTR,CSTR,DIM) \
00557 vkill_trailing(f2cstrv((char *)FSTR, (char *)CSTR, \
00558 sizeof(FSTR)/cfelementsof(FSTR,DIM)+1, \
00559 sizeof(FSTR)+cfelementsof(FSTR,DIM)), \
00560 sizeof(FSTR)/cfelementsof(FSTR,DIM)+1, \
00561 sizeof(FSTR)+cfelementsof(FSTR,DIM), ' ')
00562
00563 #define cfDEREFERENCE0
00564 #define cfDEREFERENCE1 *
00565 #define cfDEREFERENCE2 **
00566 #define cfDEREFERENCE3 ***
00567 #define cfDEREFERENCE4 ****
00568 #define cfDEREFERENCE5 *****
00569 #define cfelementsof(A,D) (sizeof(A)/sizeof(_(cfDEREFERENCE,D)(A)))
00570
00571
00572
00573
00574
00575
00576
00577 #ifdef OLD_VAXC
00578 #pragma nostandard
00579 #endif
00580
00581 #define ZTRINGV_NUM(I) I
00582 #define ZTRINGV_ARGFP(I) (*(_2(A,I)))
00583 #define ZTRINGV_ARGF(I) _2(A,I)
00584 #ifdef CFSUBASFUN
00585 #define ZTRINGV_ARGS(I) ZTRINGV_ARGF(I)
00586 #else
00587 #define ZTRINGV_ARGS(I) _2(B,I)
00588 #endif
00589
00590 #define PBYTE_cfVP(A,B) PINT_cfVP(A,B)
00591 #define PDOUBLE_cfVP(A,B)
00592 #define PFLOAT_cfVP(A,B)
00593 #ifdef ZTRINGV_ARGS_allows_Pvariables
00594
00595
00596
00597 #define PINT_cfVP(A,B) int B = (int)A;
00598 #else
00599 #define PINT_cfVP(A,B)
00600 #endif
00601 #define PLOGICAL_cfVP(A,B) int *B;
00602 #define PLONG_cfVP(A,B) PINT_cfVP(A,B)
00603 #define PSHORT_cfVP(A,B) PINT_cfVP(A,B)
00604
00605 #define VCF_INT_S(T,A,B) _(T,VVVVVVV_cfTYPE) B = A;
00606 #define VCF_INT_F(T,A,B) _(T,_cfVCF)(A,B)
00607
00608 #define BYTE_cfVCF(A,B)
00609 #define DOUBLE_cfVCF(A,B)
00610 #if !defined(__CF__KnR)
00611 #define FLOAT_cfVCF(A,B)
00612 #else
00613 #define FLOAT_cfVCF(A,B) FORTRAN_REAL B = A;
00614 #endif
00615 #define INT_cfVCF(A,B)
00616 #define LOGICAL_cfVCF(A,B)
00617 #define LONG_cfVCF(A,B)
00618 #define SHORT_cfVCF(A,B)
00619
00620
00621
00622
00623
00624
00625 typedef void (*cfCAST_FUNCTION)(CF_NULL_PROTO);
00626
00627 #define VCF(TN,I) _Icf4(4,V,TN,_(A,I),_(B,I),F)
00628 #define VVCF(TN,AI,BI) _Icf4(4,V,TN,AI,BI,S)
00629 #define INT_cfV(T,A,B,F) _(VCF_INT_,F)(T,A,B)
00630 #define INTV_cfV(T,A,B,F)
00631 #define INTVV_cfV(T,A,B,F)
00632 #define INTVVV_cfV(T,A,B,F)
00633 #define INTVVVV_cfV(T,A,B,F)
00634 #define INTVVVVV_cfV(T,A,B,F)
00635 #define INTVVVVVV_cfV(T,A,B,F)
00636 #define INTVVVVVVV_cfV(T,A,B,F)
00637 #define PINT_cfV( T,A,B,F) _(T,_cfVP)(A,B)
00638 #define PVOID_cfV( T,A,B,F)
00639 #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran) || defined(AbsoftProFortran)
00640 #define ROUTINE_cfV(T,A,B,F) void (*B)(CF_NULL_PROTO) = (cfCAST_FUNCTION)A;
00641 #else
00642 #define ROUTINE_cfV(T,A,B,F)
00643 #endif
00644 #define SIMPLE_cfV(T,A,B,F)
00645 #ifdef vmsFortran
00646 #define STRING_cfV(T,A,B,F) static struct {fstring f; unsigned clen;} B = \
00647 {{0,DSC$K_DTYPE_T,DSC$K_CLASS_S,NULL},0};
00648 #define PSTRING_cfV(T,A,B,F) static fstring B={0,DSC$K_DTYPE_T,DSC$K_CLASS_S,NULL};
00649 #define STRINGV_cfV(T,A,B,F) static fstringvector B = \
00650 {sizeof(A),DSC$K_DTYPE_T,DSC$K_CLASS_A,NULL,0,0,{0,0,1,1,1},1,0,NULL,0,{1,0}};
00651 #define PSTRINGV_cfV(T,A,B,F) static fstringvector B = \
00652 {0,DSC$K_DTYPE_T,DSC$K_CLASS_A,NULL,0,0,{0,0,1,1,1},1,0,NULL,0,{1,0}};
00653 #else
00654 #define STRING_cfV(T,A,B,F) struct {unsigned int clen, flen;} B;
00655 #define STRINGV_cfV(T,A,B,F) struct {char *s, *fs; unsigned flen;} B;
00656 #define PSTRING_cfV(T,A,B,F) int B;
00657 #define PSTRINGV_cfV(T,A,B,F) struct{char *fs; unsigned int sizeofA,flen;}B;
00658 #endif
00659 #define ZTRINGV_cfV(T,A,B,F) STRINGV_cfV(T,A,B,F)
00660 #define PZTRINGV_cfV(T,A,B,F) PSTRINGV_cfV(T,A,B,F)
00661
00662
00663
00664
00665 #define ACF(NAME,TN,AI,I) _(TN,_cfSTR)(4,A,NAME,I,AI,_(B,I),0)
00666 #define DEFAULT_cfA(M,I,A,B)
00667 #define LOGICAL_cfA(M,I,A,B) B=C2FLOGICAL(B);
00668 #define PLOGICAL_cfA(M,I,A,B) A=C2FLOGICAL(A);
00669 #define STRING_cfA(M,I,A,B) STRING_cfC(M,I,A,B,sizeof(A))
00670 #define PSTRING_cfA(M,I,A,B) PSTRING_cfC(M,I,A,B,sizeof(A))
00671 #ifdef vmsFortran
00672 #define AATRINGV_cfA( A,B, sA,filA,silA) \
00673 initfstr(B,_cf_malloc((sA)-(filA)),(filA),(silA)-1), \
00674 c2fstrv(A,B.dsc$a_pointer,(silA),(sA));
00675 #define APATRINGV_cfA( A,B, sA,filA,silA) \
00676 initfstr(B,A,(filA),(silA)-1),c2fstrv(A,A,(silA),(sA));
00677 #else
00678 #define AATRINGV_cfA( A,B, sA,filA,silA) \
00679 (B.s=_cf_malloc((sA)-(filA)),B.fs=c2fstrv(A,B.s,(B.flen=(silA)-1)+1,(sA)));
00680 #define APATRINGV_cfA( A,B, sA,filA,silA) \
00681 B.fs=c2fstrv(A,A,(B.flen=(silA)-1)+1,B.sizeofA=(sA));
00682 #endif
00683 #define STRINGV_cfA(M,I,A,B) \
00684 AATRINGV_cfA((char *)A,B,sizeof(A),firstindexlength(A),secondindexlength(A))
00685 #define PSTRINGV_cfA(M,I,A,B) \
00686 APATRINGV_cfA((char *)A,B,sizeof(A),firstindexlength(A),secondindexlength(A))
00687 #define ZTRINGV_cfA(M,I,A,B) AATRINGV_cfA( (char *)A,B, \
00688 (_3(M,_ELEMS_,I))*(( _3(M,_ELEMLEN_,I))+1), \
00689 (_3(M,_ELEMS_,I)),(_3(M,_ELEMLEN_,I))+1)
00690 #define PZTRINGV_cfA(M,I,A,B) APATRINGV_cfA( (char *)A,B, \
00691 (_3(M,_ELEMS_,I))*(( _3(M,_ELEMLEN_,I))+1), \
00692 (_3(M,_ELEMS_,I)),(_3(M,_ELEMLEN_,I))+1)
00693
00694 #define PBYTE_cfAAP(A,B) &A
00695 #define PDOUBLE_cfAAP(A,B) &A
00696 #define PFLOAT_cfAAP(A,B) FLOATVVVVVVV_cfPP &A
00697 #define PINT_cfAAP(A,B) &A
00698 #define PLOGICAL_cfAAP(A,B) B= &A
00699 #define PLONG_cfAAP(A,B) &A
00700 #define PSHORT_cfAAP(A,B) &A
00701
00702 #define AACF(TN,AI,I,C) _SEP_(TN,C,cfCOMMA) _Icf(3,AA,TN,AI,_(B,I))
00703 #define INT_cfAA(T,A,B) &B
00704 #define INTV_cfAA(T,A,B) _(T,VVVVVV_cfPP) A
00705 #define INTVV_cfAA(T,A,B) _(T,VVVVV_cfPP) A[0]
00706 #define INTVVV_cfAA(T,A,B) _(T,VVVV_cfPP) A[0][0]
00707 #define INTVVVV_cfAA(T,A,B) _(T,VVV_cfPP) A[0][0][0]
00708 #define INTVVVVV_cfAA(T,A,B) _(T,VV_cfPP) A[0][0][0][0]
00709 #define INTVVVVVV_cfAA(T,A,B) _(T,V_cfPP) A[0][0][0][0][0]
00710 #define INTVVVVVVV_cfAA(T,A,B) _(T,_cfPP) A[0][0][0][0][0][0]
00711 #define PINT_cfAA(T,A,B) _(T,_cfAAP)(A,B)
00712 #define PVOID_cfAA(T,A,B) (void *) A
00713 #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran)
00714 #define ROUTINE_cfAA(T,A,B) &B
00715 #else
00716 #define ROUTINE_cfAA(T,A,B) (cfCAST_FUNCTION)A
00717 #endif
00718 #define STRING_cfAA(T,A,B) STRING_cfCC(T,A,B)
00719 #define PSTRING_cfAA(T,A,B) PSTRING_cfCC(T,A,B)
00720 #ifdef vmsFortran
00721 #define STRINGV_cfAA(T,A,B) &B
00722 #else
00723 #ifdef CRAYFortran
00724 #define STRINGV_cfAA(T,A,B) _cptofcd(B.fs,B.flen)
00725 #else
00726 #define STRINGV_cfAA(T,A,B) B.fs
00727 #endif
00728 #endif
00729 #define PSTRINGV_cfAA(T,A,B) STRINGV_cfAA(T,A,B)
00730 #define ZTRINGV_cfAA(T,A,B) STRINGV_cfAA(T,A,B)
00731 #define PZTRINGV_cfAA(T,A,B) STRINGV_cfAA(T,A,B)
00732
00733 #if defined(vmsFortran) || defined(CRAYFortran)
00734 #define JCF(TN,I)
00735 #define KCF(TN,I)
00736 #else
00737 #define JCF(TN,I) _(TN,_cfSTR)(1,J,_(B,I), 0,0,0,0)
00738 #if defined(AbsoftUNIXFortran)
00739 #define DEFAULT_cfJ(B) ,0
00740 #else
00741 #define DEFAULT_cfJ(B)
00742 #endif
00743 #define LOGICAL_cfJ(B) DEFAULT_cfJ(B)
00744 #define PLOGICAL_cfJ(B) DEFAULT_cfJ(B)
00745 #define STRING_cfJ(B) ,B.flen
00746 #define PSTRING_cfJ(B) ,B
00747 #define STRINGV_cfJ(B) STRING_cfJ(B)
00748 #define PSTRINGV_cfJ(B) STRING_cfJ(B)
00749 #define ZTRINGV_cfJ(B) STRING_cfJ(B)
00750 #define PZTRINGV_cfJ(B) STRING_cfJ(B)
00751
00752
00753 #define KCF(TN,I) _(TN,_cfSTR)(1,KK,_(B,I), 0,0,0,0)
00754 #if defined(AbsoftUNIXFortran)
00755 #define DEFAULT_cfKK(B) , unsigned B
00756 #else
00757 #define DEFAULT_cfKK(B)
00758 #endif
00759 #define LOGICAL_cfKK(B) DEFAULT_cfKK(B)
00760 #define PLOGICAL_cfKK(B) DEFAULT_cfKK(B)
00761 #define STRING_cfKK(B) , unsigned B
00762 #define PSTRING_cfKK(B) STRING_cfKK(B)
00763 #define STRINGV_cfKK(B) STRING_cfKK(B)
00764 #define PSTRINGV_cfKK(B) STRING_cfKK(B)
00765 #define ZTRINGV_cfKK(B) STRING_cfKK(B)
00766 #define PZTRINGV_cfKK(B) STRING_cfKK(B)
00767 #endif
00768
00769 #define WCF(TN,AN,I) _(TN,_cfSTR)(2,W,AN,_(B,I), 0,0,0)
00770 #define DEFAULT_cfW(A,B)
00771 #define LOGICAL_cfW(A,B)
00772 #define PLOGICAL_cfW(A,B) *B=F2CLOGICAL(*B);
00773 #define STRING_cfW(A,B) (A[B.clen]!='\0'?A[B.clen]='\0':0);
00774 #define PSTRING_cfW(A,B) kill_trailing(A,' ');
00775 #ifdef vmsFortran
00776 #define STRINGV_cfW(A,B) _cf_free(B.dsc$a_pointer);
00777 #define PSTRINGV_cfW(A,B) \
00778 vkill_trailing(f2cstrv((char*)A, (char*)A, \
00779 B.dsc$w_length+1, B.dsc$l_arsize+B.dsc$l_m[0]), \
00780 B.dsc$w_length+1, B.dsc$l_arsize+B.dsc$l_m[0], ' ');
00781 #else
00782 #define STRINGV_cfW(A,B) _cf_free(B.s);
00783 #define PSTRINGV_cfW(A,B) vkill_trailing( \
00784 f2cstrv((char*)A,(char*)A,B.flen+1,B.sizeofA), B.flen+1,B.sizeofA,' ');
00785 #endif
00786 #define ZTRINGV_cfW(A,B) STRINGV_cfW(A,B)
00787 #define PZTRINGV_cfW(A,B) PSTRINGV_cfW(A,B)
00788
00789 #define NCF(TN,I,C) _SEP_(TN,C,cfCOMMA) _Icf(2,N,TN,_(A,I),0)
00790 #define NNCF(TN,I,C) UUCF(TN,I,C)
00791 #define NNNCF(TN,I,C) _SEP_(TN,C,cfCOLON) _Icf(2,N,TN,_(A,I),0)
00792 #define INT_cfN(T,A) _(T,VVVVVVV_cfTYPE) * A
00793 #define INTV_cfN(T,A) _(T,VVVVVV_cfTYPE) * A
00794 #define INTVV_cfN(T,A) _(T,VVVVV_cfTYPE) * A
00795 #define INTVVV_cfN(T,A) _(T,VVVV_cfTYPE) * A
00796 #define INTVVVV_cfN(T,A) _(T,VVV_cfTYPE) * A
00797 #define INTVVVVV_cfN(T,A) _(T,VV_cfTYPE) * A
00798 #define INTVVVVVV_cfN(T,A) _(T,V_cfTYPE) * A
00799 #define INTVVVVVVV_cfN(T,A) _(T,_cfTYPE) * A
00800 #define PINT_cfN(T,A) _(T,_cfTYPE) * A
00801 #define PVOID_cfN(T,A) void * A
00802 #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran)
00803 #define ROUTINE_cfN(T,A) void (**A)(CF_NULL_PROTO)
00804 #else
00805 #define ROUTINE_cfN(T,A) void ( *A)(CF_NULL_PROTO)
00806 #endif
00807 #ifdef vmsFortran
00808 #define STRING_cfN(T,A) fstring * A
00809 #define STRINGV_cfN(T,A) fstringvector * A
00810 #else
00811 #ifdef CRAYFortran
00812 #define STRING_cfN(T,A) _fcd A
00813 #define STRINGV_cfN(T,A) _fcd A
00814 #else
00815 #define STRING_cfN(T,A) char * A
00816 #define STRINGV_cfN(T,A) char * A
00817 #endif
00818 #endif
00819 #define PSTRING_cfN(T,A) STRING_cfN(T,A)
00820 #define PNSTRING_cfN(T,A) STRING_cfN(T,A)
00821 #define PPSTRING_cfN(T,A) STRING_cfN(T,A)
00822 #define PSTRINGV_cfN(T,A) STRINGV_cfN(T,A)
00823 #define ZTRINGV_cfN(T,A) STRINGV_cfN(T,A)
00824 #define PZTRINGV_cfN(T,A) PSTRINGV_cfN(T,A)
00825
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835
00836 #ifndef MAX_PREPRO_ARGS
00837 #if !defined(__GNUC__) && (defined(VAXUltrix) || defined(__CF__APOLLO67) || (defined(sun)&&!defined(__sun)) || defined(_CRAY) || defined(__ultrix__) || (defined(__hpux)&&defined(__CF__KnR)))
00838 #define MAX_PREPRO_ARGS 31
00839 #else
00840 #define MAX_PREPRO_ARGS 99
00841 #endif
00842 #endif
00843
00844 #if defined(AbsoftUNIXFortran) || defined(AbsoftProFortran)
00845
00846
00847
00848
00849
00850 #define ABSOFT_cf1(T0) _(T0,_cfSTR)(0,ABSOFT1,0,0,0,0,0)
00851 #define ABSOFT_cf2(T0) _(T0,_cfSTR)(0,ABSOFT2,0,0,0,0,0)
00852 #define ABSOFT_cf3(T0) _(T0,_cfSTR)(0,ABSOFT3,0,0,0,0,0)
00853 #define DEFAULT_cfABSOFT1
00854 #define LOGICAL_cfABSOFT1
00855 #define STRING_cfABSOFT1 ,MAX_LEN_FORTRAN_FUNCTION_STRING
00856 #define DEFAULT_cfABSOFT2
00857 #define LOGICAL_cfABSOFT2
00858 #define STRING_cfABSOFT2 ,unsigned D0
00859 #define DEFAULT_cfABSOFT3
00860 #define LOGICAL_cfABSOFT3
00861 #define STRING_cfABSOFT3 ,D0
00862 #else
00863 #define ABSOFT_cf1(T0)
00864 #define ABSOFT_cf2(T0)
00865 #define ABSOFT_cf3(T0)
00866 #endif
00867
00868
00869
00870
00871 #define _Z
00872
00873 #define CFARGT14S(S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
00874 S(T1,1) S(T2,2) S(T3,3) S(T4,4) S(T5,5) S(T6,6) S(T7,7) \
00875 S(T8,8) S(T9,9) S(TA,10) S(TB,11) S(TC,12) S(TD,13) S(TE,14)
00876 #define CFARGT27S(S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
00877 S(T1,1) S(T2,2) S(T3,3) S(T4,4) S(T5,5) S(T6,6) S(T7,7) \
00878 S(T8,8) S(T9,9) S(TA,10) S(TB,11) S(TC,12) S(TD,13) S(TE,14) \
00879 S(TF,15) S(TG,16) S(TH,17) S(TI,18) S(TJ,19) S(TK,20) S(TL,21) \
00880 S(TM,22) S(TN,23) S(TO,24) S(TP,25) S(TQ,26) S(TR,27)
00881
00882 #define CFARGT14FS(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
00883 F(T1,1,0) F(T2,2,1) F(T3,3,1) F(T4,4,1) F(T5,5,1) F(T6,6,1) F(T7,7,1) \
00884 F(T8,8,1) F(T9,9,1) F(TA,10,1) F(TB,11,1) F(TC,12,1) F(TD,13,1) F(TE,14,1) \
00885 M CFARGT14S(S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)
00886 #define CFARGT27FS(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
00887 F(T1,1,0) F(T2,2,1) F(T3,3,1) F(T4,4,1) F(T5,5,1) F(T6,6,1) F(T7,7,1) \
00888 F(T8,8,1) F(T9,9,1) F(TA,10,1) F(TB,11,1) F(TC,12,1) F(TD,13,1) F(TE,14,1) \
00889 F(TF,15,1) F(TG,16,1) F(TH,17,1) F(TI,18,1) F(TJ,19,1) F(TK,20,1) F(TL,21,1) \
00890 F(TM,22,1) F(TN,23,1) F(TO,24,1) F(TP,25,1) F(TQ,26,1) F(TR,27,1) \
00891 M CFARGT27S(S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)
00892
00893 #if !(defined(PowerStationFortran)||defined(hpuxFortran800))
00894
00895
00896
00897
00898
00899
00900
00901
00902
00903
00904
00905
00906
00907 #define CFARGT14(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
00908 F(T1,1,0) F(T2,2,1) F(T3,3,1) F(T4,4,1) F(T5,5,1) F(T6,6,1) F(T7,7,1) \
00909 F(T8,8,1) F(T9,9,1) F(TA,10,1) F(TB,11,1) F(TC,12,1) F(TD,13,1) F(TE,14,1) \
00910 M CFARGT14S(S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)
00911 #define CFARGT27(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
00912 F(T1,1,0) F(T2,2,1) F(T3,3,1) F(T4,4,1) F(T5,5,1) F(T6,6,1) F(T7,7,1) \
00913 F(T8,8,1) F(T9,9,1) F(TA,10,1) F(TB,11,1) F(TC,12,1) F(TD,13,1) F(TE,14,1) \
00914 F(TF,15,1) F(TG,16,1) F(TH,17,1) F(TI,18,1) F(TJ,19,1) F(TK,20,1) F(TL,21,1) \
00915 F(TM,22,1) F(TN,23,1) F(TO,24,1) F(TP,25,1) F(TQ,26,1) F(TR,27,1) \
00916 M CFARGT27S(S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)
00917
00918 #define CFARGT20(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
00919 F(T1,1,0) F(T2,2,1) F(T3,3,1) F(T4,4,1) F(T5,5,1) F(T6,6,1) F(T7,7,1) \
00920 F(T8,8,1) F(T9,9,1) F(TA,10,1) F(TB,11,1) F(TC,12,1) F(TD,13,1) F(TE,14,1) \
00921 F(TF,15,1) F(TG,16,1) F(TH,17,1) F(TI,18,1) F(TJ,19,1) F(TK,20,1) \
00922 S(T1,1) S(T2,2) S(T3,3) S(T4,4) S(T5,5) S(T6,6) S(T7,7) \
00923 S(T8,8) S(T9,9) S(TA,10) S(TB,11) S(TC,12) S(TD,13) S(TE,14) \
00924 S(TF,15) S(TG,16) S(TH,17) S(TI,18) S(TJ,19) S(TK,20)
00925 #define CFARGTA14(F,S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE) \
00926 F(T1,A1,1,0) F(T2,A2,2,1) F(T3,A3,3,1) F(T4,A4,4,1) F(T5,A5,5,1) F(T6,A6,6,1) \
00927 F(T7,A7,7,1) F(T8,A8,8,1) F(T9,A9,9,1) F(TA,AA,10,1) F(TB,AB,11,1) F(TC,AC,12,1) \
00928 F(TD,AD,13,1) F(TE,AE,14,1) S(T1,1) S(T2,2) S(T3,3) S(T4,4) \
00929 S(T5,5) S(T6,6) S(T7,7) S(T8,8) S(T9,9) S(TA,10) \
00930 S(TB,11) S(TC,12) S(TD,13) S(TE,14)
00931 #if MAX_PREPRO_ARGS>31
00932 #define CFARGTA20(F,S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK) \
00933 F(T1,A1,1,0) F(T2,A2,2,1) F(T3,A3,3,1) F(T4,A4,4,1) F(T5,A5,5,1) F(T6,A6,6,1) \
00934 F(T7,A7,7,1) F(T8,A8,8,1) F(T9,A9,9,1) F(TA,AA,10,1) F(TB,AB,11,1) F(TC,AC,12,1) \
00935 F(TD,AD,13,1) F(TE,AE,14,1) F(TF,AF,15,1) F(TG,AG,16,1) F(TH,AH,17,1) F(TI,AI,18,1) \
00936 F(TJ,AJ,19,1) F(TK,AK,20,1) S(T1,1) S(T2,2) S(T3,3) S(T4,4) \
00937 S(T5,5) S(T6,6) S(T7,7) S(T8,8) S(T9,9) S(TA,10) \
00938 S(TB,11) S(TC,12) S(TD,13) S(TE,14) S(TF,15) S(TG,16) \
00939 S(TH,17) S(TI,18) S(TJ,19) S(TK,20)
00940 #define CFARGTA27(F,S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR) \
00941 F(T1,A1,1,0) F(T2,A2,2,1) F(T3,A3,3,1) F(T4,A4,4,1) F(T5,A5,5,1) F(T6,A6,6,1) \
00942 F(T7,A7,7,1) F(T8,A8,8,1) F(T9,A9,9,1) F(TA,AA,10,1) F(TB,AB,11,1) F(TC,AC,12,1) \
00943 F(TD,AD,13,1) F(TE,AE,14,1) F(TF,AF,15,1) F(TG,AG,16,1) F(TH,AH,17,1) F(TI,AI,18,1) \
00944 F(TJ,AJ,19,1) F(TK,AK,20,1) F(TL,AL,21,1) F(TM,AM,22,1) F(TN,AN,23,1) F(TO,AO,24,1) \
00945 F(TP,AP,25,1) F(TQ,AQ,26,1) F(TR,AR,27,1) S(T1,1) S(T2,2) S(T3,3) \
00946 S(T4,4) S(T5,5) S(T6,6) S(T7,7) S(T8,8) S(T9,9) \
00947 S(TA,10) S(TB,11) S(TC,12) S(TD,13) S(TE,14) S(TF,15) \
00948 S(TG,16) S(TH,17) S(TI,18) S(TJ,19) S(TK,20) S(TL,21) \
00949 S(TM,22) S(TN,23) S(TO,24) S(TP,25) S(TQ,26) S(TR,27)
00950 #endif
00951 #else
00952 #define CFARGT14(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
00953 F(T1,1,0) S(T1,1) F(T2,2,1) S(T2,2) F(T3,3,1) S(T3,3) F(T4,4,1) S(T4,4) \
00954 F(T5,5,1) S(T5,5) F(T6,6,1) S(T6,6) F(T7,7,1) S(T7,7) F(T8,8,1) S(T8,8) \
00955 F(T9,9,1) S(T9,9) F(TA,10,1) S(TA,10) F(TB,11,1) S(TB,11) F(TC,12,1) S(TC,12) \
00956 F(TD,13,1) S(TD,13) F(TE,14,1) S(TE,14)
00957 #define CFARGT27(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
00958 F(T1,1,0) S(T1,1) F(T2,2,1) S(T2,2) F(T3,3,1) S(T3,3) F(T4,4,1) S(T4,4) \
00959 F(T5,5,1) S(T5,5) F(T6,6,1) S(T6,6) F(T7,7,1) S(T7,7) F(T8,8,1) S(T8,8) \
00960 F(T9,9,1) S(T9,9) F(TA,10,1) S(TA,10) F(TB,11,1) S(TB,11) F(TC,12,1) S(TC,12) \
00961 F(TD,13,1) S(TD,13) F(TE,14,1) S(TE,14) F(TF,15,1) S(TF,15) F(TG,16,1) S(TG,16) \
00962 F(TH,17,1) S(TH,17) F(TI,18,1) S(TI,18) F(TJ,19,1) S(TJ,19) F(TK,20,1) S(TK,20) \
00963 F(TL,21,1) S(TL,21) F(TM,22,1) S(TM,22) F(TN,23,1) S(TN,23) F(TO,24,1) S(TO,24) \
00964 F(TP,25,1) S(TP,25) F(TQ,26,1) S(TQ,26) F(TR,27,1) S(TR,27)
00965
00966 #define CFARGT20(F,S,M,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
00967 F(T1,1,0) S(T1,1) F(T2,2,1) S(T2,2) F(T3,3,1) S(T3,3) F(T4,4,1) S(T4,4) \
00968 F(T5,5,1) S(T5,5) F(T6,6,1) S(T6,6) F(T7,7,1) S(T7,7) F(T8,8,1) S(T8,8) \
00969 F(T9,9,1) S(T9,9) F(TA,10,1) S(TA,10) F(TB,11,1) S(TB,11) F(TC,12,1) S(TC,12) \
00970 F(TD,13,1) S(TD,13) F(TE,14,1) S(TE,14) F(TF,15,1) S(TF,15) F(TG,16,1) S(TG,16) \
00971 F(TH,17,1) S(TH,17) F(TI,18,1) S(TI,18) F(TJ,19,1) S(TJ,19) F(TK,20,1) S(TK,20)
00972 #define CFARGTA14(F,S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE) \
00973 F(T1,A1,1,0) S(T1,1) F(T2,A2,2,1) S(T2,2) F(T3,A3,3,1) S(T3,3) \
00974 F(T4,A4,4,1) S(T4,4) F(T5,A5,5,1) S(T5,5) F(T6,A6,6,1) S(T6,6) \
00975 F(T7,A7,7,1) S(T7,7) F(T8,A8,8,1) S(T8,8) F(T9,A9,9,1) S(T9,9) \
00976 F(TA,AA,10,1) S(TA,10) F(TB,AB,11,1) S(TB,11) F(TC,AC,12,1) S(TC,12) \
00977 F(TD,AD,13,1) S(TD,13) F(TE,AE,14,1) S(TE,14)
00978 #if MAX_PREPRO_ARGS>31
00979 #define CFARGTA20(F,S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK) \
00980 F(T1,A1,1,0) S(T1,1) F(T2,A2,2,1) S(T2,2) F(T3,A3,3,1) S(T3,3) \
00981 F(T4,A4,4,1) S(T4,4) F(T5,A5,5,1) S(T5,5) F(T6,A6,6,1) S(T6,6) \
00982 F(T7,A7,7,1) S(T7,7) F(T8,A8,8,1) S(T8,8) F(T9,A9,9,1) S(T9,9) \
00983 F(TA,AA,10,1) S(TA,10) F(TB,AB,11,1) S(TB,11) F(TC,AC,12,1) S(TC,12) \
00984 F(TD,AD,13,1) S(TD,13) F(TE,AE,14,1) S(TE,14) F(TF,AF,15,1) S(TF,15) \
00985 F(TG,AG,16,1) S(TG,16) F(TH,AH,17,1) S(TH,17) F(TI,AI,18,1) S(TI,18) \
00986 F(TJ,AJ,19,1) S(TJ,19) F(TK,AK,20,1) S(TK,20)
00987 #define CFARGTA27(F,S,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR) \
00988 F(T1,A1,1,0) S(T1,1) F(T2,A2,2,1) S(T2,2) F(T3,A3,3,1) S(T3,3) \
00989 F(T4,A4,4,1) S(T4,4) F(T5,A5,5,1) S(T5,5) F(T6,A6,6,1) S(T6,6) \
00990 F(T7,A7,7,1) S(T7,7) F(T8,A8,8,1) S(T8,8) F(T9,A9,9,1) S(T9,9) \
00991 F(TA,AA,10,1) S(TA,10) F(TB,AB,11,1) S(TB,11) F(TC,AC,12,1) S(TC,12) \
00992 F(TD,AD,13,1) S(TD,13) F(TE,AE,14,1) S(TE,14) F(TF,AF,15,1) S(TF,15) \
00993 F(TG,AG,16,1) S(TG,16) F(TH,AH,17,1) S(TH,17) F(TI,AI,18,1) S(TI,18) \
00994 F(TJ,AJ,19,1) S(TJ,19) F(TK,AK,20,1) S(TK,20) F(TL,AL,21,1) S(TL,21) \
00995 F(TM,AM,22,1) S(TM,22) F(TN,AN,23,1) S(TN,23) F(TO,AO,24,1) S(TO,24) \
00996 F(TP,AP,25,1) S(TP,25) F(TQ,AQ,26,1) S(TQ,26) F(TR,AR,27,1) S(TR,27)
00997 #endif
00998 #endif
00999
01000
01001 #define PROTOCCALLSFSUB1( UN,LN,T1) \
01002 PROTOCCALLSFSUB14(UN,LN,T1,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01003 #define PROTOCCALLSFSUB2( UN,LN,T1,T2) \
01004 PROTOCCALLSFSUB14(UN,LN,T1,T2,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01005 #define PROTOCCALLSFSUB3( UN,LN,T1,T2,T3) \
01006 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01007 #define PROTOCCALLSFSUB4( UN,LN,T1,T2,T3,T4) \
01008 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01009 #define PROTOCCALLSFSUB5( UN,LN,T1,T2,T3,T4,T5) \
01010 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01011 #define PROTOCCALLSFSUB6( UN,LN,T1,T2,T3,T4,T5,T6) \
01012 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01013 #define PROTOCCALLSFSUB7( UN,LN,T1,T2,T3,T4,T5,T6,T7) \
01014 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01015 #define PROTOCCALLSFSUB8( UN,LN,T1,T2,T3,T4,T5,T6,T7,T8) \
01016 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01017 #define PROTOCCALLSFSUB9( UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9) \
01018 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,CF_0,CF_0,CF_0,CF_0,CF_0)
01019 #define PROTOCCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA) \
01020 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,CF_0,CF_0,CF_0,CF_0)
01021 #define PROTOCCALLSFSUB11(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB) \
01022 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,CF_0,CF_0,CF_0)
01023 #define PROTOCCALLSFSUB12(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC) \
01024 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,CF_0,CF_0)
01025 #define PROTOCCALLSFSUB13(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD) \
01026 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,CF_0)
01027
01028
01029 #define PROTOCCALLSFSUB15(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF) \
01030 PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,CF_0,CF_0,CF_0,CF_0,CF_0)
01031 #define PROTOCCALLSFSUB16(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG) \
01032 PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,CF_0,CF_0,CF_0,CF_0)
01033 #define PROTOCCALLSFSUB17(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH) \
01034 PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,CF_0,CF_0,CF_0)
01035 #define PROTOCCALLSFSUB18(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI) \
01036 PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,CF_0,CF_0)
01037 #define PROTOCCALLSFSUB19(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ) \
01038 PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,CF_0)
01039
01040 #define PROTOCCALLSFSUB21(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL) \
01041 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
01042 #define PROTOCCALLSFSUB22(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM) \
01043 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,CF_0,CF_0,CF_0,CF_0,CF_0)
01044 #define PROTOCCALLSFSUB23(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN) \
01045 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,CF_0,CF_0,CF_0,CF_0)
01046 #define PROTOCCALLSFSUB24(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO) \
01047 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,CF_0,CF_0,CF_0)
01048 #define PROTOCCALLSFSUB25(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP) \
01049 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,CF_0,CF_0)
01050 #define PROTOCCALLSFSUB26(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ) \
01051 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,CF_0)
01052
01053
01054 #ifndef FCALLSC_QUALIFIER
01055 #ifdef VISUAL_CPLUSPLUS
01056 #define FCALLSC_QUALIFIER __stdcall
01057 #else
01058 #define FCALLSC_QUALIFIER
01059 #endif
01060 #endif
01061
01062 #ifdef __cplusplus
01063 #define CFextern extern "C"
01064 #else
01065 #define CFextern extern
01066 #endif
01067
01068
01069 #ifdef CFSUBASFUN
01070 #define PROTOCCALLSFSUB0(UN,LN) \
01071 PROTOCCALLSFFUN0( VOID,UN,LN)
01072 #define PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01073 PROTOCCALLSFFUN14(VOID,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)
01074 #define PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK)\
01075 PROTOCCALLSFFUN20(VOID,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK)
01076 #define PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)\
01077 PROTOCCALLSFFUN27(VOID,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)
01078 #else
01079
01080
01081
01082 #define PROTOCCALLSFSUB0(UN,LN) _(VOID,_cfPU)(CFC_(UN,LN))();
01083 #ifndef __CF__KnR
01084 #define PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01085 _(VOID,_cfPU)(CFC_(UN,LN))( CFARGT14(NCF,KCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) );
01086 #define PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK)\
01087 _(VOID,_cfPU)(CFC_(UN,LN))( CFARGT20(NCF,KCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) );
01088 #define PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)\
01089 _(VOID,_cfPU)(CFC_(UN,LN))( CFARGT27(NCF,KCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) );
01090 #else
01091 #define PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01092 PROTOCCALLSFSUB0(UN,LN)
01093 #define PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
01094 PROTOCCALLSFSUB0(UN,LN)
01095 #define PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
01096 PROTOCCALLSFSUB0(UN,LN)
01097 #endif
01098 #endif
01099
01100
01101 #ifdef OLD_VAXC
01102 #pragma standard
01103 #endif
01104
01105
01106 #define CCALLSFSUB1( UN,LN,T1, A1) \
01107 CCALLSFSUB5 (UN,LN,T1,CF_0,CF_0,CF_0,CF_0,A1,0,0,0,0)
01108 #define CCALLSFSUB2( UN,LN,T1,T2, A1,A2) \
01109 CCALLSFSUB5 (UN,LN,T1,T2,CF_0,CF_0,CF_0,A1,A2,0,0,0)
01110 #define CCALLSFSUB3( UN,LN,T1,T2,T3, A1,A2,A3) \
01111 CCALLSFSUB5 (UN,LN,T1,T2,T3,CF_0,CF_0,A1,A2,A3,0,0)
01112 #define CCALLSFSUB4( UN,LN,T1,T2,T3,T4, A1,A2,A3,A4)\
01113 CCALLSFSUB5 (UN,LN,T1,T2,T3,T4,CF_0,A1,A2,A3,A4,0)
01114 #define CCALLSFSUB5( UN,LN,T1,T2,T3,T4,T5, A1,A2,A3,A4,A5) \
01115 CCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,CF_0,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,0,0,0,0,0)
01116 #define CCALLSFSUB6( UN,LN,T1,T2,T3,T4,T5,T6, A1,A2,A3,A4,A5,A6) \
01117 CCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,T6,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,0,0,0,0)
01118 #define CCALLSFSUB7( UN,LN,T1,T2,T3,T4,T5,T6,T7, A1,A2,A3,A4,A5,A6,A7) \
01119 CCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,T6,T7,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,0,0,0)
01120 #define CCALLSFSUB8( UN,LN,T1,T2,T3,T4,T5,T6,T7,T8, A1,A2,A3,A4,A5,A6,A7,A8) \
01121 CCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,0,0)
01122 #define CCALLSFSUB9( UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,A1,A2,A3,A4,A5,A6,A7,A8,A9)\
01123 CCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,0)
01124 #define CCALLSFSUB10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA)\
01125 CCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,0,0,0,0)
01126 #define CCALLSFSUB11(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB)\
01127 CCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,0,0,0)
01128 #define CCALLSFSUB12(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC)\
01129 CCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,0,0)
01130 #define CCALLSFSUB13(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD)\
01131 CCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,0)
01132
01133 #ifdef __cplusplus
01134 #define CPPPROTOCLSFSUB0( UN,LN)
01135 #define CPPPROTOCLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)
01136 #define CPPPROTOCLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK)
01137 #define CPPPROTOCLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)
01138 #else
01139 #define CPPPROTOCLSFSUB0(UN,LN) \
01140 PROTOCCALLSFSUB0(UN,LN)
01141 #define CPPPROTOCLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01142 PROTOCCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)
01143 #define CPPPROTOCLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
01144 PROTOCCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK)
01145 #define CPPPROTOCLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
01146 PROTOCCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)
01147 #endif
01148
01149 #ifdef CFSUBASFUN
01150 #define CCALLSFSUB0(UN,LN) CCALLSFFUN0(UN,LN)
01151 #define CCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE)\
01152 CCALLSFFUN14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE)
01153 #else
01154
01155 #define CCALLSFSUB0( UN,LN) do{CPPPROTOCLSFSUB0(UN,LN) CFC_(UN,LN)();}while(0)
01156 #define CCALLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE)\
01157 do{VVCF(T1,A1,B1) VVCF(T2,A2,B2) VVCF(T3,A3,B3) VVCF(T4,A4,B4) VVCF(T5,A5,B5) \
01158 VVCF(T6,A6,B6) VVCF(T7,A7,B7) VVCF(T8,A8,B8) VVCF(T9,A9,B9) VVCF(TA,AA,B10) \
01159 VVCF(TB,AB,B11) VVCF(TC,AC,B12) VVCF(TD,AD,B13) VVCF(TE,AE,B14) \
01160 CPPPROTOCLSFSUB14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01161 ACF(LN,T1,A1,1) ACF(LN,T2,A2,2) ACF(LN,T3,A3,3) \
01162 ACF(LN,T4,A4,4) ACF(LN,T5,A5,5) ACF(LN,T6,A6,6) ACF(LN,T7,A7,7) \
01163 ACF(LN,T8,A8,8) ACF(LN,T9,A9,9) ACF(LN,TA,AA,10) ACF(LN,TB,AB,11) \
01164 ACF(LN,TC,AC,12) ACF(LN,TD,AD,13) ACF(LN,TE,AE,14) \
01165 CFC_(UN,LN)( CFARGTA14(AACF,JCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE) );\
01166 WCF(T1,A1,1) WCF(T2,A2,2) WCF(T3,A3,3) WCF(T4,A4,4) WCF(T5,A5,5) \
01167 WCF(T6,A6,6) WCF(T7,A7,7) WCF(T8,A8,8) WCF(T9,A9,9) WCF(TA,AA,10) \
01168 WCF(TB,AB,11) WCF(TC,AC,12) WCF(TD,AD,13) WCF(TE,AE,14) }while(0)
01169 #endif
01170
01171
01172 #if MAX_PREPRO_ARGS>31
01173 #define CCALLSFSUB15(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF)\
01174 CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,CF_0,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,0,0,0,0,0)
01175 #define CCALLSFSUB16(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG)\
01176 CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,0,0,0,0)
01177 #define CCALLSFSUB17(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH)\
01178 CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,0,0,0)
01179 #define CCALLSFSUB18(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI)\
01180 CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,0,0)
01181 #define CCALLSFSUB19(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ)\
01182 CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,0)
01183
01184 #ifdef CFSUBASFUN
01185 #define CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH, \
01186 TI,TJ,TK, A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK) \
01187 CCALLSFFUN20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH, \
01188 TI,TJ,TK, A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK)
01189 #else
01190 #define CCALLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH, \
01191 TI,TJ,TK, A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK) \
01192 do{VVCF(T1,A1,B1) VVCF(T2,A2,B2) VVCF(T3,A3,B3) VVCF(T4,A4,B4) VVCF(T5,A5,B5) \
01193 VVCF(T6,A6,B6) VVCF(T7,A7,B7) VVCF(T8,A8,B8) VVCF(T9,A9,B9) VVCF(TA,AA,B10) \
01194 VVCF(TB,AB,B11) VVCF(TC,AC,B12) VVCF(TD,AD,B13) VVCF(TE,AE,B14) VVCF(TF,AF,B15) \
01195 VVCF(TG,AG,B16) VVCF(TH,AH,B17) VVCF(TI,AI,B18) VVCF(TJ,AJ,B19) VVCF(TK,AK,B20) \
01196 CPPPROTOCLSFSUB20(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
01197 ACF(LN,T1,A1,1) ACF(LN,T2,A2,2) ACF(LN,T3,A3,3) ACF(LN,T4,A4,4) \
01198 ACF(LN,T5,A5,5) ACF(LN,T6,A6,6) ACF(LN,T7,A7,7) ACF(LN,T8,A8,8) \
01199 ACF(LN,T9,A9,9) ACF(LN,TA,AA,10) ACF(LN,TB,AB,11) ACF(LN,TC,AC,12) \
01200 ACF(LN,TD,AD,13) ACF(LN,TE,AE,14) ACF(LN,TF,AF,15) ACF(LN,TG,AG,16) \
01201 ACF(LN,TH,AH,17) ACF(LN,TI,AI,18) ACF(LN,TJ,AJ,19) ACF(LN,TK,AK,20) \
01202 CFC_(UN,LN)( CFARGTA20(AACF,JCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK) ); \
01203 WCF(T1,A1,1) WCF(T2,A2,2) WCF(T3,A3,3) WCF(T4,A4,4) WCF(T5,A5,5) WCF(T6,A6,6) \
01204 WCF(T7,A7,7) WCF(T8,A8,8) WCF(T9,A9,9) WCF(TA,AA,10) WCF(TB,AB,11) WCF(TC,AC,12) \
01205 WCF(TD,AD,13) WCF(TE,AE,14) WCF(TF,AF,15) WCF(TG,AG,16) WCF(TH,AH,17) WCF(TI,AI,18) \
01206 WCF(TJ,AJ,19) WCF(TK,AK,20) }while(0)
01207 #endif
01208 #endif
01209
01210 #if MAX_PREPRO_ARGS>31
01211 #define CCALLSFSUB21(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL)\
01212 CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,0,0,0,0,0,0)
01213 #define CCALLSFSUB22(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM)\
01214 CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,CF_0,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,0,0,0,0,0)
01215 #define CCALLSFSUB23(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN)\
01216 CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,0,0,0,0)
01217 #define CCALLSFSUB24(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO)\
01218 CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,0,0,0)
01219 #define CCALLSFSUB25(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP)\
01220 CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,0,0)
01221 #define CCALLSFSUB26(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ)\
01222 CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,0)
01223
01224 #ifdef CFSUBASFUN
01225 #define CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR, \
01226 A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR) \
01227 CCALLSFFUN27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR, \
01228 A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR)
01229 #else
01230 #define CCALLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR, \
01231 A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR) \
01232 do{VVCF(T1,A1,B1) VVCF(T2,A2,B2) VVCF(T3,A3,B3) VVCF(T4,A4,B4) VVCF(T5,A5,B5) \
01233 VVCF(T6,A6,B6) VVCF(T7,A7,B7) VVCF(T8,A8,B8) VVCF(T9,A9,B9) VVCF(TA,AA,B10) \
01234 VVCF(TB,AB,B11) VVCF(TC,AC,B12) VVCF(TD,AD,B13) VVCF(TE,AE,B14) VVCF(TF,AF,B15) \
01235 VVCF(TG,AG,B16) VVCF(TH,AH,B17) VVCF(TI,AI,B18) VVCF(TJ,AJ,B19) VVCF(TK,AK,B20) \
01236 VVCF(TL,AL,B21) VVCF(TM,AM,B22) VVCF(TN,AN,B23) VVCF(TO,AO,B24) VVCF(TP,AP,B25) \
01237 VVCF(TQ,AQ,B26) VVCF(TR,AR,B27) \
01238 CPPPROTOCLSFSUB27(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
01239 ACF(LN,T1,A1,1) ACF(LN,T2,A2,2) ACF(LN,T3,A3,3) ACF(LN,T4,A4,4) \
01240 ACF(LN,T5,A5,5) ACF(LN,T6,A6,6) ACF(LN,T7,A7,7) ACF(LN,T8,A8,8) \
01241 ACF(LN,T9,A9,9) ACF(LN,TA,AA,10) ACF(LN,TB,AB,11) ACF(LN,TC,AC,12) \
01242 ACF(LN,TD,AD,13) ACF(LN,TE,AE,14) ACF(LN,TF,AF,15) ACF(LN,TG,AG,16) \
01243 ACF(LN,TH,AH,17) ACF(LN,TI,AI,18) ACF(LN,TJ,AJ,19) ACF(LN,TK,AK,20) \
01244 ACF(LN,TL,AL,21) ACF(LN,TM,AM,22) ACF(LN,TN,AN,23) ACF(LN,TO,AO,24) \
01245 ACF(LN,TP,AP,25) ACF(LN,TQ,AQ,26) ACF(LN,TR,AR,27) \
01246 CFC_(UN,LN)( CFARGTA27(AACF,JCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR,\
01247 A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR) ); \
01248 WCF(T1,A1,1) WCF(T2,A2,2) WCF(T3,A3,3) WCF(T4,A4,4) WCF(T5,A5,5) WCF(T6,A6,6) \
01249 WCF(T7,A7,7) WCF(T8,A8,8) WCF(T9,A9,9) WCF(TA,AA,10) WCF(TB,AB,11) WCF(TC,AC,12) \
01250 WCF(TD,AD,13) WCF(TE,AE,14) WCF(TF,AF,15) WCF(TG,AG,16) WCF(TH,AH,17) WCF(TI,AI,18) \
01251 WCF(TJ,AJ,19) WCF(TK,AK,20) WCF(TL,AL,21) WCF(TM,AM,22) WCF(TN,AN,23) WCF(TO,AO,24) \
01252 WCF(TP,AP,25) WCF(TQ,AQ,26) WCF(TR,AR,27) }while(0)
01253 #endif
01254 #endif
01255
01256
01257
01258
01259
01260
01261
01262
01263
01264
01265
01266
01267
01268
01269
01270
01271 #define MAX_LEN_FORTRAN_FUNCTION_STRING 0x4FE
01272
01273
01274
01275 #define CFORTRAN_NON_CHAR 0x7F
01276
01277 #ifdef OLD_VAXC
01278 #pragma nostandard
01279 #endif
01280
01281 #define _SEP_(TN,C,cfCOMMA) _(__SEP_,C)(TN,cfCOMMA)
01282 #define __SEP_0(TN,cfCOMMA)
01283 #define __SEP_1(TN,cfCOMMA) _Icf(2,SEP,TN,cfCOMMA,0)
01284 #define INT_cfSEP(T,B) _(A,B)
01285 #define INTV_cfSEP(T,B) INT_cfSEP(T,B)
01286 #define INTVV_cfSEP(T,B) INT_cfSEP(T,B)
01287 #define INTVVV_cfSEP(T,B) INT_cfSEP(T,B)
01288 #define INTVVVV_cfSEP(T,B) INT_cfSEP(T,B)
01289 #define INTVVVVV_cfSEP(T,B) INT_cfSEP(T,B)
01290 #define INTVVVVVV_cfSEP(T,B) INT_cfSEP(T,B)
01291 #define INTVVVVVVV_cfSEP(T,B) INT_cfSEP(T,B)
01292 #define PINT_cfSEP(T,B) INT_cfSEP(T,B)
01293 #define PVOID_cfSEP(T,B) INT_cfSEP(T,B)
01294 #define ROUTINE_cfSEP(T,B) INT_cfSEP(T,B)
01295 #define SIMPLE_cfSEP(T,B) INT_cfSEP(T,B)
01296 #define VOID_cfSEP(T,B) INT_cfSEP(T,B)
01297 #define STRING_cfSEP(T,B) INT_cfSEP(T,B)
01298 #define STRINGV_cfSEP(T,B) INT_cfSEP(T,B)
01299 #define PSTRING_cfSEP(T,B) INT_cfSEP(T,B)
01300 #define PSTRINGV_cfSEP(T,B) INT_cfSEP(T,B)
01301 #define PNSTRING_cfSEP(T,B) INT_cfSEP(T,B)
01302 #define PPSTRING_cfSEP(T,B) INT_cfSEP(T,B)
01303 #define ZTRINGV_cfSEP(T,B) INT_cfSEP(T,B)
01304 #define PZTRINGV_cfSEP(T,B) INT_cfSEP(T,B)
01305
01306 #if defined(SIGNED_BYTE) || !defined(UNSIGNED_BYTE)
01307 #ifdef OLD_VAXC
01308 #define INTEGER_BYTE char
01309 #else
01310 #define INTEGER_BYTE signed char
01311 #endif
01312 #else
01313 #define INTEGER_BYTE unsigned char
01314 #endif
01315 #define BYTEVVVVVVV_cfTYPE INTEGER_BYTE
01316 #define DOUBLEVVVVVVV_cfTYPE DOUBLE_PRECISION
01317 #define FLOATVVVVVVV_cfTYPE FORTRAN_REAL
01318 #define INTVVVVVVV_cfTYPE int
01319 #define LOGICALVVVVVVV_cfTYPE int
01320 #define LONGVVVVVVV_cfTYPE long
01321 #define SHORTVVVVVVV_cfTYPE short
01322 #define PBYTE_cfTYPE INTEGER_BYTE
01323 #define PDOUBLE_cfTYPE DOUBLE_PRECISION
01324 #define PFLOAT_cfTYPE FORTRAN_REAL
01325 #define PINT_cfTYPE int
01326 #define PLOGICAL_cfTYPE int
01327 #define PLONG_cfTYPE long
01328 #define PSHORT_cfTYPE short
01329
01330 #define CFARGS0(A,T,V,W,X,Y,Z) _3(T,_cf,A)
01331 #define CFARGS1(A,T,V,W,X,Y,Z) _3(T,_cf,A)(V)
01332 #define CFARGS2(A,T,V,W,X,Y,Z) _3(T,_cf,A)(V,W)
01333 #define CFARGS3(A,T,V,W,X,Y,Z) _3(T,_cf,A)(V,W,X)
01334 #define CFARGS4(A,T,V,W,X,Y,Z) _3(T,_cf,A)(V,W,X,Y)
01335 #define CFARGS5(A,T,V,W,X,Y,Z) _3(T,_cf,A)(V,W,X,Y,Z)
01336
01337 #define _Icf(N,T,I,X,Y) _(I,_cfINT)(N,T,I,X,Y,0)
01338 #define _Icf4(N,T,I,X,Y,Z) _(I,_cfINT)(N,T,I,X,Y,Z)
01339 #define BYTE_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z)
01340 #define DOUBLE_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INT,B,X,Y,Z,0)
01341 #define FLOAT_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z)
01342 #define INT_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z)
01343 #define LOGICAL_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z)
01344 #define LONG_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z)
01345 #define SHORT_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z)
01346 #define PBYTE_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z)
01347 #define PDOUBLE_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,PINT,B,X,Y,Z,0)
01348 #define PFLOAT_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z)
01349 #define PINT_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z)
01350 #define PLOGICAL_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z)
01351 #define PLONG_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z)
01352 #define PSHORT_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z)
01353 #define BYTEV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z)
01354 #define BYTEVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z)
01355 #define BYTEVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
01356 #define BYTEVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z)
01357 #define BYTEVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
01358 #define BYTEVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
01359 #define BYTEVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
01360 #define DOUBLEV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTV,B,X,Y,Z,0)
01361 #define DOUBLEVV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTVV,B,X,Y,Z,0)
01362 #define DOUBLEVVV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTVVV,B,X,Y,Z,0)
01363 #define DOUBLEVVVV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTVVVV,B,X,Y,Z,0)
01364 #define DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTVVVVV,B,X,Y,Z,0)
01365 #define DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTVVVVVV,B,X,Y,Z,0)
01366 #define DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,INTVVVVVVV,B,X,Y,Z,0)
01367 #define FLOATV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z)
01368 #define FLOATVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z)
01369 #define FLOATVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
01370 #define FLOATVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z)
01371 #define FLOATVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
01372 #define FLOATVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
01373 #define FLOATVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
01374 #define INTV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z)
01375 #define INTVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z)
01376 #define INTVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
01377 #define INTVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z)
01378 #define INTVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
01379 #define INTVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
01380 #define INTVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
01381 #define LOGICALV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z)
01382 #define LOGICALVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z)
01383 #define LOGICALVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
01384 #define LOGICALVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z)
01385 #define LOGICALVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
01386 #define LOGICALVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
01387 #define LOGICALVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
01388 #define LONGV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z)
01389 #define LONGVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z)
01390 #define LONGVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
01391 #define LONGVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z)
01392 #define LONGVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
01393 #define LONGVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
01394 #define LONGVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
01395 #define SHORTV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z)
01396 #define SHORTVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z)
01397 #define SHORTVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z)
01398 #define SHORTVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z)
01399 #define SHORTVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z)
01400 #define SHORTVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z)
01401 #define SHORTVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z)
01402 #define PVOID_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,B,B,X,Y,Z,0)
01403 #define ROUTINE_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01404
01405
01406
01407
01408
01409
01410 #define SIMPLE_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01411 #define VOID_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01412 #define STRING_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01413 #define STRINGV_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01414 #define PSTRING_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01415 #define PSTRINGV_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01416 #define PNSTRING_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01417 #define PPSTRING_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01418 #define ZTRINGV_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01419 #define PZTRINGV_cfINT(N,A,B,X,Y,Z) PVOID_cfINT(N,A,B,X,Y,Z)
01420 #define CF_0_cfINT(N,A,B,X,Y,Z)
01421
01422
01423 #define UCF(TN,I,C) _SEP_(TN,C,cfCOMMA) _Icf(2,U,TN,_(A,I),0)
01424 #define UUCF(TN,I,C) _SEP_(TN,C,cfCOMMA) _SEP_(TN,1,I)
01425 #define UUUCF(TN,I,C) _SEP_(TN,C,cfCOLON) _Icf(2,U,TN,_(A,I),0)
01426 #define INT_cfU(T,A) _(T,VVVVVVV_cfTYPE) A
01427 #define INTV_cfU(T,A) _(T,VVVVVV_cfTYPE) * A
01428 #define INTVV_cfU(T,A) _(T,VVVVV_cfTYPE) * A
01429 #define INTVVV_cfU(T,A) _(T,VVVV_cfTYPE) * A
01430 #define INTVVVV_cfU(T,A) _(T,VVV_cfTYPE) * A
01431 #define INTVVVVV_cfU(T,A) _(T,VV_cfTYPE) * A
01432 #define INTVVVVVV_cfU(T,A) _(T,V_cfTYPE) * A
01433 #define INTVVVVVVV_cfU(T,A) _(T,_cfTYPE) * A
01434 #define PINT_cfU(T,A) _(T,_cfTYPE) * A
01435 #define PVOID_cfU(T,A) void *A
01436 #define ROUTINE_cfU(T,A) void (*A)(CF_NULL_PROTO)
01437 #define VOID_cfU(T,A) void A
01438 #define STRING_cfU(T,A) char *A
01439 #define STRINGV_cfU(T,A) char *A
01440 #define PSTRING_cfU(T,A) char *A
01441 #define PSTRINGV_cfU(T,A) char *A
01442 #define ZTRINGV_cfU(T,A) char *A
01443 #define PZTRINGV_cfU(T,A) char *A
01444
01445
01446 #define INT_cfUU(T,A) _(T,VVVVVVV_cfTYPE) A
01447 #define VOID_cfUU(T,A)
01448 #define STRING_cfUU(T,A) char *A
01449
01450
01451 #define BYTE_cfPU(A) CFextern INTEGER_BYTE FCALLSC_QUALIFIER A
01452 #define DOUBLE_cfPU(A) CFextern DOUBLE_PRECISION FCALLSC_QUALIFIER A
01453 #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
01454 #define FLOAT_cfPU(A) CFextern FORTRAN_REAL FCALLSC_QUALIFIER A
01455 #else
01456 #define FLOAT_cfPU(A) CFextern FLOATFUNCTIONTYPE FCALLSC_QUALIFIER A
01457 #endif
01458 #define INT_cfPU(A) CFextern int FCALLSC_QUALIFIER A
01459 #define LOGICAL_cfPU(A) CFextern int FCALLSC_QUALIFIER A
01460 #define LONG_cfPU(A) CFextern long FCALLSC_QUALIFIER A
01461 #define SHORT_cfPU(A) CFextern short FCALLSC_QUALIFIER A
01462 #define STRING_cfPU(A) CFextern void FCALLSC_QUALIFIER A
01463 #define VOID_cfPU(A) CFextern void FCALLSC_QUALIFIER A
01464
01465 #define BYTE_cfE INTEGER_BYTE A0;
01466 #define DOUBLE_cfE DOUBLE_PRECISION A0;
01467 #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
01468 #define FLOAT_cfE FORTRAN_REAL A0;
01469 #else
01470 #define FLOAT_cfE FORTRAN_REAL AA0; FLOATFUNCTIONTYPE A0;
01471 #endif
01472 #define INT_cfE int A0;
01473 #define LOGICAL_cfE int A0;
01474 #define LONG_cfE long A0;
01475 #define SHORT_cfE short A0;
01476 #define VOID_cfE
01477 #ifdef vmsFortran
01478 #define STRING_cfE static char AA0[1+MAX_LEN_FORTRAN_FUNCTION_STRING]; \
01479 static fstring A0 = \
01480 {MAX_LEN_FORTRAN_FUNCTION_STRING,DSC$K_DTYPE_T,DSC$K_CLASS_S,AA0};\
01481 memset(AA0, CFORTRAN_NON_CHAR, MAX_LEN_FORTRAN_FUNCTION_STRING);\
01482 *(AA0+MAX_LEN_FORTRAN_FUNCTION_STRING)='\0';
01483 #else
01484 #ifdef CRAYFortran
01485 #define STRING_cfE static char AA0[1+MAX_LEN_FORTRAN_FUNCTION_STRING]; \
01486 static _fcd A0; *(AA0+MAX_LEN_FORTRAN_FUNCTION_STRING)='\0';\
01487 memset(AA0,CFORTRAN_NON_CHAR, MAX_LEN_FORTRAN_FUNCTION_STRING);\
01488 A0 = _cptofcd(AA0,MAX_LEN_FORTRAN_FUNCTION_STRING);
01489 #else
01490
01491
01492 #define STRING_cfE static char A0[1+MAX_LEN_FORTRAN_FUNCTION_STRING]; \
01493 memset(A0, CFORTRAN_NON_CHAR, \
01494 MAX_LEN_FORTRAN_FUNCTION_STRING); \
01495 *(A0+MAX_LEN_FORTRAN_FUNCTION_STRING)='\0';
01496 #endif
01497 #endif
01498
01499
01500
01501
01502
01503
01504
01505 #define INT_cfGZ(T,UN,LN) A0=CFC_(UN,LN)(
01506 #define VOID_cfGZ(T,UN,LN) CFC_(UN,LN)(
01507 #ifdef vmsFortran
01508 #define STRING_cfGZ(T,UN,LN) CFC_(UN,LN)(&A0
01509 #else
01510 #if defined(CRAYFortran) || defined(AbsoftUNIXFortran) || defined(AbsoftProFortran)
01511 #define STRING_cfGZ(T,UN,LN) CFC_(UN,LN)( A0
01512 #else
01513 #define STRING_cfGZ(T,UN,LN) CFC_(UN,LN)( A0,MAX_LEN_FORTRAN_FUNCTION_STRING
01514 #endif
01515 #endif
01516
01517 #define INT_cfG(T,UN,LN) INT_cfGZ(T,UN,LN)
01518 #define VOID_cfG(T,UN,LN) VOID_cfGZ(T,UN,LN)
01519 #define STRING_cfG(T,UN,LN) STRING_cfGZ(T,UN,LN),
01520
01521 #define BYTEVVVVVVV_cfPP
01522 #define INTVVVVVVV_cfPP
01523 #define DOUBLEVVVVVVV_cfPP
01524 #define LOGICALVVVVVVV_cfPP
01525 #define LONGVVVVVVV_cfPP
01526 #define SHORTVVVVVVV_cfPP
01527 #define PBYTE_cfPP
01528 #define PINT_cfPP
01529 #define PDOUBLE_cfPP
01530 #define PLOGICAL_cfPP
01531 #define PLONG_cfPP
01532 #define PSHORT_cfPP
01533 #define PFLOAT_cfPP FLOATVVVVVVV_cfPP
01534
01535 #define BCF(TN,AN,C) _SEP_(TN,C,cfCOMMA) _Icf(2,B,TN,AN,0)
01536 #define INT_cfB(T,A) (_(T,VVVVVVV_cfTYPE)) A
01537 #define INTV_cfB(T,A) A
01538 #define INTVV_cfB(T,A) (A)[0]
01539 #define INTVVV_cfB(T,A) (A)[0][0]
01540 #define INTVVVV_cfB(T,A) (A)[0][0][0]
01541 #define INTVVVVV_cfB(T,A) (A)[0][0][0][0]
01542 #define INTVVVVVV_cfB(T,A) (A)[0][0][0][0][0]
01543 #define INTVVVVVVV_cfB(T,A) (A)[0][0][0][0][0][0]
01544 #define PINT_cfB(T,A) _(T,_cfPP)&A
01545 #define STRING_cfB(T,A) (char *) A
01546 #define STRINGV_cfB(T,A) (char *) A
01547 #define PSTRING_cfB(T,A) (char *) A
01548 #define PSTRINGV_cfB(T,A) (char *) A
01549 #define PVOID_cfB(T,A) (void *) A
01550 #define ROUTINE_cfB(T,A) (cfCAST_FUNCTION)A
01551 #define ZTRINGV_cfB(T,A) (char *) A
01552 #define PZTRINGV_cfB(T,A) (char *) A
01553
01554 #define SCF(TN,NAME,I,A) _(TN,_cfSTR)(3,S,NAME,I,A,0,0)
01555 #define DEFAULT_cfS(M,I,A)
01556 #define LOGICAL_cfS(M,I,A)
01557 #define PLOGICAL_cfS(M,I,A)
01558 #define STRING_cfS(M,I,A) ,sizeof(A)
01559 #define STRINGV_cfS(M,I,A) ,( (unsigned)0xFFFF*firstindexlength(A) \
01560 +secondindexlength(A))
01561 #define PSTRING_cfS(M,I,A) ,sizeof(A)
01562 #define PSTRINGV_cfS(M,I,A) STRINGV_cfS(M,I,A)
01563 #define ZTRINGV_cfS(M,I,A)
01564 #define PZTRINGV_cfS(M,I,A)
01565
01566 #define HCF(TN,I) _(TN,_cfSTR)(3,H,cfCOMMA, H,_(C,I),0,0)
01567 #define HHCF(TN,I) _(TN,_cfSTR)(3,H,cfCOMMA,HH,_(C,I),0,0)
01568 #define HHHCF(TN,I) _(TN,_cfSTR)(3,H,cfCOLON, H,_(C,I),0,0)
01569 #define H_CF_SPECIAL unsigned
01570 #define HH_CF_SPECIAL
01571 #define DEFAULT_cfH(M,I,A)
01572 #define LOGICAL_cfH(S,U,B)
01573 #define PLOGICAL_cfH(S,U,B)
01574 #define STRING_cfH(S,U,B) _(A,S) _(U,_CF_SPECIAL) B
01575 #define STRINGV_cfH(S,U,B) STRING_cfH(S,U,B)
01576 #define PSTRING_cfH(S,U,B) STRING_cfH(S,U,B)
01577 #define PSTRINGV_cfH(S,U,B) STRING_cfH(S,U,B)
01578 #define PNSTRING_cfH(S,U,B) STRING_cfH(S,U,B)
01579 #define PPSTRING_cfH(S,U,B) STRING_cfH(S,U,B)
01580 #define ZTRINGV_cfH(S,U,B)
01581 #define PZTRINGV_cfH(S,U,B)
01582
01583
01584
01585 #define VOID_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01586 #define BYTE_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01587 #define DOUBLE_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01588 #define FLOAT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01589 #define INT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01590 #define LOGICAL_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,LOGICAL,A,B,C,D,E)
01591 #define LONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01592 #define SHORT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01593 #define BYTEV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01594 #define BYTEVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01595 #define BYTEVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01596 #define BYTEVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01597 #define BYTEVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01598 #define BYTEVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01599 #define BYTEVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01600 #define DOUBLEV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01601 #define DOUBLEVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01602 #define DOUBLEVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01603 #define DOUBLEVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01604 #define DOUBLEVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01605 #define DOUBLEVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01606 #define DOUBLEVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01607 #define FLOATV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01608 #define FLOATVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01609 #define FLOATVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01610 #define FLOATVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01611 #define FLOATVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01612 #define FLOATVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01613 #define FLOATVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01614 #define INTV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01615 #define INTVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01616 #define INTVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01617 #define INTVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01618 #define INTVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01619 #define INTVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01620 #define INTVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01621 #define LOGICALV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01622 #define LOGICALVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01623 #define LOGICALVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01624 #define LOGICALVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01625 #define LOGICALVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01626 #define LOGICALVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01627 #define LOGICALVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01628 #define LONGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01629 #define LONGVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01630 #define LONGVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01631 #define LONGVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01632 #define LONGVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01633 #define LONGVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01634 #define LONGVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01635 #define SHORTV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01636 #define SHORTVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01637 #define SHORTVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01638 #define SHORTVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01639 #define SHORTVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01640 #define SHORTVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01641 #define SHORTVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01642 #define PBYTE_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01643 #define PDOUBLE_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01644 #define PFLOAT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01645 #define PINT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01646 #define PLOGICAL_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PLOGICAL,A,B,C,D,E)
01647 #define PLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01648 #define PSHORT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01649 #define STRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,STRING,A,B,C,D,E)
01650 #define PSTRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PSTRING,A,B,C,D,E)
01651 #define STRINGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,STRINGV,A,B,C,D,E)
01652 #define PSTRINGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PSTRINGV,A,B,C,D,E)
01653 #define PNSTRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PNSTRING,A,B,C,D,E)
01654 #define PPSTRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PPSTRING,A,B,C,D,E)
01655 #define PVOID_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01656 #define ROUTINE_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01657 #define SIMPLE_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E)
01658 #define ZTRINGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,ZTRINGV,A,B,C,D,E)
01659 #define PZTRINGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PZTRINGV,A,B,C,D,E)
01660 #define CF_0_cfSTR(N,T,A,B,C,D,E)
01661
01662
01663 #define CCF(NAME,TN,I) _(TN,_cfSTR)(5,C,NAME,I,_(A,I),_(B,I),_(C,I))
01664 #define DEFAULT_cfC(M,I,A,B,C)
01665 #define LOGICAL_cfC(M,I,A,B,C) A=C2FLOGICAL( A);
01666 #define PLOGICAL_cfC(M,I,A,B,C) *A=C2FLOGICAL(*A);
01667 #ifdef vmsFortran
01668 #define STRING_cfC(M,I,A,B,C) (B.clen=strlen(A),B.f.dsc$a_pointer=A, \
01669 C==sizeof(char*)||C==(unsigned)(B.clen+1)?B.f.dsc$w_length=B.clen: \
01670 (memset((A)+B.clen,' ',C-B.clen-1),A[B.f.dsc$w_length=C-1]='\0'));
01671
01672 #define PSTRING_cfC(M,I,A,B,C) (B.dsc$a_pointer=A, C==sizeof(char*) ? \
01673 B.dsc$w_length=strlen(A): (A[C-1]='\0',B.dsc$w_length=strlen(A), \
01674 memset((A)+B.dsc$w_length,' ',C-B.dsc$w_length-1), B.dsc$w_length=C-1));
01675 #else
01676 #define STRING_cfC(M,I,A,B,C) (B.clen=strlen(A), \
01677 C==sizeof(char*)||C==(unsigned)(B.clen+1)?B.flen=B.clen: \
01678 (memset((A)+B.clen,' ',C-B.clen-1),A[B.flen=C-1]='\0'));
01679 #define PSTRING_cfC(M,I,A,B,C) (C==sizeof(char*)? B=strlen(A): \
01680 (A[C-1]='\0',B=strlen(A),memset((A)+B,' ',C-B-1),B=C-1));
01681 #endif
01682
01683 #define STRINGV_cfC(M,I,A,B,C) \
01684 AATRINGV_cfA( A,B,(C/0xFFFF)*(C%0xFFFF),C/0xFFFF,C%0xFFFF)
01685 #define PSTRINGV_cfC(M,I,A,B,C) \
01686 APATRINGV_cfA( A,B,(C/0xFFFF)*(C%0xFFFF),C/0xFFFF,C%0xFFFF)
01687 #define ZTRINGV_cfC(M,I,A,B,C) \
01688 AATRINGV_cfA( A,B, (_3(M,_ELEMS_,I))*((_3(M,_ELEMLEN_,I))+1), \
01689 (_3(M,_ELEMS_,I)), (_3(M,_ELEMLEN_,I))+1 )
01690 #define PZTRINGV_cfC(M,I,A,B,C) \
01691 APATRINGV_cfA( A,B, (_3(M,_ELEMS_,I))*((_3(M,_ELEMLEN_,I))+1), \
01692 (_3(M,_ELEMS_,I)), (_3(M,_ELEMLEN_,I))+1 )
01693
01694 #define BYTE_cfCCC(A,B) &A
01695 #define DOUBLE_cfCCC(A,B) &A
01696 #if !defined(__CF__KnR)
01697 #define FLOAT_cfCCC(A,B) &A
01698
01699 #else
01700 #define FLOAT_cfCCC(A,B) &B
01701 #endif
01702 #define INT_cfCCC(A,B) &A
01703 #define LOGICAL_cfCCC(A,B) &A
01704 #define LONG_cfCCC(A,B) &A
01705 #define SHORT_cfCCC(A,B) &A
01706 #define PBYTE_cfCCC(A,B) A
01707 #define PDOUBLE_cfCCC(A,B) A
01708 #define PFLOAT_cfCCC(A,B) A
01709 #define PINT_cfCCC(A,B) A
01710 #define PLOGICAL_cfCCC(A,B) B=A
01711 #define PLONG_cfCCC(A,B) A
01712 #define PSHORT_cfCCC(A,B) A
01713
01714 #define CCCF(TN,I,M) _SEP_(TN,M,cfCOMMA) _Icf(3,CC,TN,_(A,I),_(B,I))
01715 #define INT_cfCC(T,A,B) _(T,_cfCCC)(A,B)
01716 #define INTV_cfCC(T,A,B) A
01717 #define INTVV_cfCC(T,A,B) A
01718 #define INTVVV_cfCC(T,A,B) A
01719 #define INTVVVV_cfCC(T,A,B) A
01720 #define INTVVVVV_cfCC(T,A,B) A
01721 #define INTVVVVVV_cfCC(T,A,B) A
01722 #define INTVVVVVVV_cfCC(T,A,B) A
01723 #define PINT_cfCC(T,A,B) _(T,_cfCCC)(A,B)
01724 #define PVOID_cfCC(T,A,B) A
01725 #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran)
01726 #define ROUTINE_cfCC(T,A,B) &A
01727 #else
01728 #define ROUTINE_cfCC(T,A,B) A
01729 #endif
01730 #define SIMPLE_cfCC(T,A,B) A
01731 #ifdef vmsFortran
01732 #define STRING_cfCC(T,A,B) &B.f
01733 #define STRINGV_cfCC(T,A,B) &B
01734 #define PSTRING_cfCC(T,A,B) &B
01735 #define PSTRINGV_cfCC(T,A,B) &B
01736 #else
01737 #ifdef CRAYFortran
01738 #define STRING_cfCC(T,A,B) _cptofcd(A,B.flen)
01739 #define STRINGV_cfCC(T,A,B) _cptofcd(B.s,B.flen)
01740 #define PSTRING_cfCC(T,A,B) _cptofcd(A,B)
01741 #define PSTRINGV_cfCC(T,A,B) _cptofcd(A,B.flen)
01742 #else
01743 #define STRING_cfCC(T,A,B) A
01744 #define STRINGV_cfCC(T,A,B) B.fs
01745 #define PSTRING_cfCC(T,A,B) A
01746 #define PSTRINGV_cfCC(T,A,B) B.fs
01747 #endif
01748 #endif
01749 #define ZTRINGV_cfCC(T,A,B) STRINGV_cfCC(T,A,B)
01750 #define PZTRINGV_cfCC(T,A,B) PSTRINGV_cfCC(T,A,B)
01751
01752 #define BYTE_cfX return A0;
01753 #define DOUBLE_cfX return A0;
01754 #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
01755 #define FLOAT_cfX return A0;
01756 #else
01757 #define FLOAT_cfX ASSIGNFLOAT(AA0,A0); return AA0;
01758 #endif
01759 #define INT_cfX return A0;
01760 #define LOGICAL_cfX return F2CLOGICAL(A0);
01761 #define LONG_cfX return A0;
01762 #define SHORT_cfX return A0;
01763 #define VOID_cfX return ;
01764 #if defined(vmsFortran) || defined(CRAYFortran)
01765 #define STRING_cfX return kill_trailing( \
01766 kill_trailing(AA0,CFORTRAN_NON_CHAR),' ');
01767 #else
01768 #define STRING_cfX return kill_trailing( \
01769 kill_trailing( A0,CFORTRAN_NON_CHAR),' ');
01770 #endif
01771
01772 #define CFFUN(NAME) _(__cf__,NAME)
01773
01774
01775 #define CCALLSFFUN0(UN,LN) CFFUN(UN)()
01776
01777 #ifdef OLD_VAXC
01778 #pragma standard
01779 #endif
01780
01781 #define CCALLSFFUN1( UN,LN,T1, A1) \
01782 CCALLSFFUN5 (UN,LN,T1,CF_0,CF_0,CF_0,CF_0,A1,0,0,0,0)
01783 #define CCALLSFFUN2( UN,LN,T1,T2, A1,A2) \
01784 CCALLSFFUN5 (UN,LN,T1,T2,CF_0,CF_0,CF_0,A1,A2,0,0,0)
01785 #define CCALLSFFUN3( UN,LN,T1,T2,T3, A1,A2,A3) \
01786 CCALLSFFUN5 (UN,LN,T1,T2,T3,CF_0,CF_0,A1,A2,A3,0,0)
01787 #define CCALLSFFUN4( UN,LN,T1,T2,T3,T4, A1,A2,A3,A4)\
01788 CCALLSFFUN5 (UN,LN,T1,T2,T3,T4,CF_0,A1,A2,A3,A4,0)
01789 #define CCALLSFFUN5( UN,LN,T1,T2,T3,T4,T5, A1,A2,A3,A4,A5) \
01790 CCALLSFFUN10(UN,LN,T1,T2,T3,T4,T5,CF_0,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,0,0,0,0,0)
01791 #define CCALLSFFUN6( UN,LN,T1,T2,T3,T4,T5,T6, A1,A2,A3,A4,A5,A6) \
01792 CCALLSFFUN10(UN,LN,T1,T2,T3,T4,T5,T6,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,0,0,0,0)
01793 #define CCALLSFFUN7( UN,LN,T1,T2,T3,T4,T5,T6,T7, A1,A2,A3,A4,A5,A6,A7) \
01794 CCALLSFFUN10(UN,LN,T1,T2,T3,T4,T5,T6,T7,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,0,0,0)
01795 #define CCALLSFFUN8( UN,LN,T1,T2,T3,T4,T5,T6,T7,T8, A1,A2,A3,A4,A5,A6,A7,A8) \
01796 CCALLSFFUN10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,0,0)
01797 #define CCALLSFFUN9( UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,A1,A2,A3,A4,A5,A6,A7,A8,A9)\
01798 CCALLSFFUN10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,0)
01799 #define CCALLSFFUN10(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA)\
01800 CCALLSFFUN14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,CF_0,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,0,0,0,0)
01801 #define CCALLSFFUN11(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB)\
01802 CCALLSFFUN14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,CF_0,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,0,0,0)
01803 #define CCALLSFFUN12(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC)\
01804 CCALLSFFUN14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,CF_0,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,0,0)
01805 #define CCALLSFFUN13(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD)\
01806 CCALLSFFUN14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,CF_0,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,0)
01807
01808 #define CCALLSFFUN14(UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,A1,A2,A3,A4,A5,A6,A7,A8,A9,AA,AB,AC,AD,AE)\
01809 ((CFFUN(UN)( BCF(T1,A1,0) BCF(T2,A2,1) BCF(T3,A3,1) BCF(T4,A4,1) BCF(T5,A5,1) \
01810 BCF(T6,A6,1) BCF(T7,A7,1) BCF(T8,A8,1) BCF(T9,A9,1) BCF(TA,AA,1) \
01811 BCF(TB,AB,1) BCF(TC,AC,1) BCF(TD,AD,1) BCF(TE,AE,1) \
01812 SCF(T1,LN,1,A1) SCF(T2,LN,2,A2) SCF(T3,LN,3,A3) SCF(T4,LN,4,A4) \
01813 SCF(T5,LN,5,A5) SCF(T6,LN,6,A6) SCF(T7,LN,7,A7) SCF(T8,LN,8,A8) \
01814 SCF(T9,LN,9,A9) SCF(TA,LN,10,AA) SCF(TB,LN,11,AB) SCF(TC,LN,12,AC) \
01815 SCF(TD,LN,13,AD) SCF(TE,LN,14,AE))))
01816
01817
01818
01819
01820
01821
01822
01823
01824
01825
01826
01827
01828
01829
01830 #define PROTOCCALLSFFUN0(F,UN,LN) \
01831 _(F,_cfPU)( CFC_(UN,LN))(CF_NULL_PROTO); \
01832 static _Icf(2,U,F,CFFUN(UN),0)() {_(F,_cfE) _Icf(3,GZ,F,UN,LN) ABSOFT_cf1(F));_(F,_cfX)}
01833
01834 #define PROTOCCALLSFFUN1( T0,UN,LN,T1) \
01835 PROTOCCALLSFFUN5 (T0,UN,LN,T1,CF_0,CF_0,CF_0,CF_0)
01836 #define PROTOCCALLSFFUN2( T0,UN,LN,T1,T2) \
01837 PROTOCCALLSFFUN5 (T0,UN,LN,T1,T2,CF_0,CF_0,CF_0)
01838 #define PROTOCCALLSFFUN3( T0,UN,LN,T1,T2,T3) \
01839 PROTOCCALLSFFUN5 (T0,UN,LN,T1,T2,T3,CF_0,CF_0)
01840 #define PROTOCCALLSFFUN4( T0,UN,LN,T1,T2,T3,T4) \
01841 PROTOCCALLSFFUN5 (T0,UN,LN,T1,T2,T3,T4,CF_0)
01842 #define PROTOCCALLSFFUN5( T0,UN,LN,T1,T2,T3,T4,T5) \
01843 PROTOCCALLSFFUN10(T0,UN,LN,T1,T2,T3,T4,T5,CF_0,CF_0,CF_0,CF_0,CF_0)
01844 #define PROTOCCALLSFFUN6( T0,UN,LN,T1,T2,T3,T4,T5,T6) \
01845 PROTOCCALLSFFUN10(T0,UN,LN,T1,T2,T3,T4,T5,T6,CF_0,CF_0,CF_0,CF_0)
01846 #define PROTOCCALLSFFUN7( T0,UN,LN,T1,T2,T3,T4,T5,T6,T7) \
01847 PROTOCCALLSFFUN10(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,CF_0,CF_0,CF_0)
01848 #define PROTOCCALLSFFUN8( T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8) \
01849 PROTOCCALLSFFUN10(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,CF_0,CF_0)
01850 #define PROTOCCALLSFFUN9( T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9) \
01851 PROTOCCALLSFFUN10(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,CF_0)
01852 #define PROTOCCALLSFFUN10(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA) \
01853 PROTOCCALLSFFUN14(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,CF_0,CF_0,CF_0,CF_0)
01854 #define PROTOCCALLSFFUN11(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB) \
01855 PROTOCCALLSFFUN14(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,CF_0,CF_0,CF_0)
01856 #define PROTOCCALLSFFUN12(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC) \
01857 PROTOCCALLSFFUN14(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,CF_0,CF_0)
01858 #define PROTOCCALLSFFUN13(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD) \
01859 PROTOCCALLSFFUN14(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,CF_0)
01860
01861
01862
01863 #ifndef __CF__KnR
01864 #define PROTOCCALLSFFUN14(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01865 _(T0,_cfPU)(CFC_(UN,LN))(CF_NULL_PROTO); static _Icf(2,U,T0,CFFUN(UN),0)( \
01866 CFARGT14FS(UCF,HCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) ) \
01867 { CFARGT14S(VCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) _(T0,_cfE) \
01868 CCF(LN,T1,1) CCF(LN,T2,2) CCF(LN,T3,3) CCF(LN,T4,4) CCF(LN,T5,5) \
01869 CCF(LN,T6,6) CCF(LN,T7,7) CCF(LN,T8,8) CCF(LN,T9,9) CCF(LN,TA,10) \
01870 CCF(LN,TB,11) CCF(LN,TC,12) CCF(LN,TD,13) CCF(LN,TE,14) _Icf(3,G,T0,UN,LN) \
01871 CFARGT14(CCCF,JCF,ABSOFT_cf1(T0),T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)); \
01872 WCF(T1,A1,1) WCF(T2,A2,2) WCF(T3,A3,3) WCF(T4,A4,4) WCF(T5,A5,5) \
01873 WCF(T6,A6,6) WCF(T7,A7,7) WCF(T8,A8,8) WCF(T9,A9,9) WCF(TA,A10,10) \
01874 WCF(TB,A11,11) WCF(TC,A12,12) WCF(TD,A13,13) WCF(TE,A14,14) _(T0,_cfX)}
01875 #else
01876 #define PROTOCCALLSFFUN14(T0,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
01877 _(T0,_cfPU)(CFC_(UN,LN))(CF_NULL_PROTO); static _Icf(2,U,T0,CFFUN(UN),0)( \
01878 CFARGT14FS(UUCF,HHCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) ) \
01879 CFARGT14FS(UUUCF,HHHCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) ; \
01880 { CFARGT14S(VCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) _(T0,_cfE) \
01881 CCF(LN,T1,1) CCF(LN,T2,2) CCF(LN,T3,3) CCF(LN,T4,4) CCF(LN,T5,5) \
01882 CCF(LN,T6,6) CCF(LN,T7,7) CCF(LN,T8,8) CCF(LN,T9,9) CCF(LN,TA,10) \
01883 CCF(LN,TB,11) CCF(LN,TC,12) CCF(LN,TD,13) CCF(LN,TE,14) _Icf(3,G,T0,UN,LN) \
01884 CFARGT14(CCCF,JCF,ABSOFT_cf1(T0),T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)); \
01885 WCF(T1,A1,1) WCF(T2,A2,2) WCF(T3,A3,3) WCF(T4,A4,4) WCF(T5,A5,5) \
01886 WCF(T6,A6,6) WCF(T7,A7,7) WCF(T8,A8,8) WCF(T9,A9,9) WCF(TA,A10,10) \
01887 WCF(TB,A11,11) WCF(TC,A12,12) WCF(TD,A13,13) WCF(TE,A14,14) _(T0,_cfX)}
01888 #endif
01889
01890
01891
01892
01893
01894 #ifdef OLD_VAXC
01895 #pragma nostandard
01896 #endif
01897
01898 #if defined(vmsFortran) || defined(CRAYFortran)
01899 #define DCF(TN,I)
01900 #define DDCF(TN,I)
01901 #define DDDCF(TN,I)
01902 #else
01903 #define DCF(TN,I) HCF(TN,I)
01904 #define DDCF(TN,I) HHCF(TN,I)
01905 #define DDDCF(TN,I) HHHCF(TN,I)
01906 #endif
01907
01908 #define QCF(TN,I) _(TN,_cfSTR)(1,Q,_(B,I), 0,0,0,0)
01909 #define DEFAULT_cfQ(B)
01910 #define LOGICAL_cfQ(B)
01911 #define PLOGICAL_cfQ(B)
01912 #define STRINGV_cfQ(B) char *B; unsigned int _(B,N);
01913 #define STRING_cfQ(B) char *B=NULL;
01914 #define PSTRING_cfQ(B) char *B=NULL;
01915 #define PSTRINGV_cfQ(B) STRINGV_cfQ(B)
01916 #define PNSTRING_cfQ(B) char *B=NULL;
01917 #define PPSTRING_cfQ(B)
01918
01919 #ifdef __sgi
01920 #define ROUTINE_orig *(void**)&
01921 #else
01922 #define ROUTINE_orig (void *)
01923 #endif
01924
01925 #define ROUTINE_1 ROUTINE_orig
01926 #define ROUTINE_2 ROUTINE_orig
01927 #define ROUTINE_3 ROUTINE_orig
01928 #define ROUTINE_4 ROUTINE_orig
01929 #define ROUTINE_5 ROUTINE_orig
01930 #define ROUTINE_6 ROUTINE_orig
01931 #define ROUTINE_7 ROUTINE_orig
01932 #define ROUTINE_8 ROUTINE_orig
01933 #define ROUTINE_9 ROUTINE_orig
01934 #define ROUTINE_10 ROUTINE_orig
01935 #define ROUTINE_11 ROUTINE_orig
01936 #define ROUTINE_12 ROUTINE_orig
01937 #define ROUTINE_13 ROUTINE_orig
01938 #define ROUTINE_14 ROUTINE_orig
01939 #define ROUTINE_15 ROUTINE_orig
01940 #define ROUTINE_16 ROUTINE_orig
01941 #define ROUTINE_17 ROUTINE_orig
01942 #define ROUTINE_18 ROUTINE_orig
01943 #define ROUTINE_19 ROUTINE_orig
01944 #define ROUTINE_20 ROUTINE_orig
01945 #define ROUTINE_21 ROUTINE_orig
01946 #define ROUTINE_22 ROUTINE_orig
01947 #define ROUTINE_23 ROUTINE_orig
01948 #define ROUTINE_24 ROUTINE_orig
01949 #define ROUTINE_25 ROUTINE_orig
01950 #define ROUTINE_26 ROUTINE_orig
01951 #define ROUTINE_27 ROUTINE_orig
01952
01953 #define TCF(NAME,TN,I,M) _SEP_(TN,M,cfCOMMA) _(TN,_cfT)(NAME,I,_(A,I),_(B,I),_(C,I))
01954 #define BYTE_cfT(M,I,A,B,D) *A
01955 #define DOUBLE_cfT(M,I,A,B,D) *A
01956 #define FLOAT_cfT(M,I,A,B,D) *A
01957 #define INT_cfT(M,I,A,B,D) *A
01958 #define LOGICAL_cfT(M,I,A,B,D) F2CLOGICAL(*A)
01959 #define LONG_cfT(M,I,A,B,D) *A
01960 #define SHORT_cfT(M,I,A,B,D) *A
01961 #define BYTEV_cfT(M,I,A,B,D) A
01962 #define DOUBLEV_cfT(M,I,A,B,D) A
01963 #define FLOATV_cfT(M,I,A,B,D) VOIDP A
01964 #define INTV_cfT(M,I,A,B,D) A
01965 #define LOGICALV_cfT(M,I,A,B,D) A
01966 #define LONGV_cfT(M,I,A,B,D) A
01967 #define SHORTV_cfT(M,I,A,B,D) A
01968 #define BYTEVV_cfT(M,I,A,B,D) (void *)A
01969 #define BYTEVVV_cfT(M,I,A,B,D) (void *)A
01970 #define BYTEVVVV_cfT(M,I,A,B,D) (void *)A
01971 #define BYTEVVVVV_cfT(M,I,A,B,D) (void *)A
01972 #define BYTEVVVVVV_cfT(M,I,A,B,D) (void *)A
01973 #define BYTEVVVVVVV_cfT(M,I,A,B,D) (void *)A
01974 #define DOUBLEVV_cfT(M,I,A,B,D) (void *)A
01975 #define DOUBLEVVV_cfT(M,I,A,B,D) (void *)A
01976 #define DOUBLEVVVV_cfT(M,I,A,B,D) (void *)A
01977 #define DOUBLEVVVVV_cfT(M,I,A,B,D) (void *)A
01978 #define DOUBLEVVVVVV_cfT(M,I,A,B,D) (void *)A
01979 #define DOUBLEVVVVVVV_cfT(M,I,A,B,D) (void *)A
01980 #define FLOATVV_cfT(M,I,A,B,D) (void *)A
01981 #define FLOATVVV_cfT(M,I,A,B,D) (void *)A
01982 #define FLOATVVVV_cfT(M,I,A,B,D) (void *)A
01983 #define FLOATVVVVV_cfT(M,I,A,B,D) (void *)A
01984 #define FLOATVVVVVV_cfT(M,I,A,B,D) (void *)A
01985 #define FLOATVVVVVVV_cfT(M,I,A,B,D) (void *)A
01986 #define INTVV_cfT(M,I,A,B,D) (void *)A
01987 #define INTVVV_cfT(M,I,A,B,D) (void *)A
01988 #define INTVVVV_cfT(M,I,A,B,D) (void *)A
01989 #define INTVVVVV_cfT(M,I,A,B,D) (void *)A
01990 #define INTVVVVVV_cfT(M,I,A,B,D) (void *)A
01991 #define INTVVVVVVV_cfT(M,I,A,B,D) (void *)A
01992 #define LOGICALVV_cfT(M,I,A,B,D) (void *)A
01993 #define LOGICALVVV_cfT(M,I,A,B,D) (void *)A
01994 #define LOGICALVVVV_cfT(M,I,A,B,D) (void *)A
01995 #define LOGICALVVVVV_cfT(M,I,A,B,D) (void *)A
01996 #define LOGICALVVVVVV_cfT(M,I,A,B,D) (void *)A
01997 #define LOGICALVVVVVVV_cfT(M,I,A,B,D) (void *)A
01998 #define LONGVV_cfT(M,I,A,B,D) (void *)A
01999 #define LONGVVV_cfT(M,I,A,B,D) (void *)A
02000 #define LONGVVVV_cfT(M,I,A,B,D) (void *)A
02001 #define LONGVVVVV_cfT(M,I,A,B,D) (void *)A
02002 #define LONGVVVVVV_cfT(M,I,A,B,D) (void *)A
02003 #define LONGVVVVVVV_cfT(M,I,A,B,D) (void *)A
02004 #define SHORTVV_cfT(M,I,A,B,D) (void *)A
02005 #define SHORTVVV_cfT(M,I,A,B,D) (void *)A
02006 #define SHORTVVVV_cfT(M,I,A,B,D) (void *)A
02007 #define SHORTVVVVV_cfT(M,I,A,B,D) (void *)A
02008 #define SHORTVVVVVV_cfT(M,I,A,B,D) (void *)A
02009 #define SHORTVVVVVVV_cfT(M,I,A,B,D) (void *)A
02010 #define PBYTE_cfT(M,I,A,B,D) A
02011 #define PDOUBLE_cfT(M,I,A,B,D) A
02012 #define PFLOAT_cfT(M,I,A,B,D) VOIDP A
02013 #define PINT_cfT(M,I,A,B,D) A
02014 #define PLOGICAL_cfT(M,I,A,B,D) ((*A=F2CLOGICAL(*A)),A)
02015 #define PLONG_cfT(M,I,A,B,D) A
02016 #define PSHORT_cfT(M,I,A,B,D) A
02017 #define PVOID_cfT(M,I,A,B,D) A
02018 #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran)
02019 #define ROUTINE_cfT(M,I,A,B,D) _(ROUTINE_,I) (*A)
02020 #else
02021 #define ROUTINE_cfT(M,I,A,B,D) _(ROUTINE_,I) A
02022 #endif
02023
02024
02025
02026 #define TTSTR( A,B,D) \
02027 ((B=_cf_malloc(D+1))[D]='\0', memcpy(B,A,D), kill_trailing(B,' '))
02028 #define TTTTSTR( A,B,D) (!(D<4||A[0]||A[1]||A[2]||A[3]))?NULL: \
02029 memchr(A,'\0',D) ?A : TTSTR(A,B,D)
02030 #define TTTTSTRV( A,B,D,E) (_(B,N)=E,B=_cf_malloc(_(B,N)*(D+1)), (void *) \
02031 vkill_trailing(f2cstrv(A,B,D+1, _(B,N)*(D+1)), D+1,_(B,N)*(D+1),' '))
02032 #ifdef vmsFortran
02033 #define STRING_cfT(M,I,A,B,D) TTTTSTR( A->dsc$a_pointer,B,A->dsc$w_length)
02034 #define STRINGV_cfT(M,I,A,B,D) TTTTSTRV(A->dsc$a_pointer, B, \
02035 A->dsc$w_length , A->dsc$l_m[0])
02036 #define PSTRING_cfT(M,I,A,B,D) TTSTR( A->dsc$a_pointer,B,A->dsc$w_length)
02037 #define PPSTRING_cfT(M,I,A,B,D) A->dsc$a_pointer
02038 #else
02039 #ifdef CRAYFortran
02040 #define STRING_cfT(M,I,A,B,D) TTTTSTR( _fcdtocp(A),B,_fcdlen(A))
02041 #define STRINGV_cfT(M,I,A,B,D) TTTTSTRV(_fcdtocp(A),B,_fcdlen(A), \
02042 num_elem(_fcdtocp(A),_fcdlen(A),_3(M,_STRV_A,I)))
02043 #define PSTRING_cfT(M,I,A,B,D) TTSTR( _fcdtocp(A),B,_fcdlen(A))
02044 #define PPSTRING_cfT(M,I,A,B,D) _fcdtocp(A)
02045 #else
02046 #define STRING_cfT(M,I,A,B,D) TTTTSTR( A,B,D)
02047 #define STRINGV_cfT(M,I,A,B,D) TTTTSTRV(A,B,D, num_elem(A,D,_3(M,_STRV_A,I)))
02048 #define PSTRING_cfT(M,I,A,B,D) TTSTR( A,B,D)
02049 #define PPSTRING_cfT(M,I,A,B,D) A
02050 #endif
02051 #endif
02052 #define PNSTRING_cfT(M,I,A,B,D) STRING_cfT(M,I,A,B,D)
02053 #define PSTRINGV_cfT(M,I,A,B,D) STRINGV_cfT(M,I,A,B,D)
02054 #define CF_0_cfT(M,I,A,B,D)
02055
02056 #define RCF(TN,I) _(TN,_cfSTR)(3,R,_(A,I),_(B,I),_(C,I),0,0)
02057 #define DEFAULT_cfR(A,B,D)
02058 #define LOGICAL_cfR(A,B,D)
02059 #define PLOGICAL_cfR(A,B,D) *A=C2FLOGICAL(*A);
02060 #define STRING_cfR(A,B,D) if (B) _cf_free(B);
02061 #define STRINGV_cfR(A,B,D) _cf_free(B);
02062
02063 #define RRRRPSTR( A,B,D) if (B) memcpy(A,B, _cfMIN(strlen(B),D)), \
02064 (D>strlen(B)?memset(A+strlen(B),' ', D-strlen(B)):0), _cf_free(B);
02065 #define RRRRPSTRV(A,B,D) c2fstrv(B,A,D+1,(D+1)*_(B,N)), _cf_free(B);
02066 #ifdef vmsFortran
02067 #define PSTRING_cfR(A,B,D) RRRRPSTR( A->dsc$a_pointer,B,A->dsc$w_length)
02068 #define PSTRINGV_cfR(A,B,D) RRRRPSTRV(A->dsc$a_pointer,B,A->dsc$w_length)
02069 #else
02070 #ifdef CRAYFortran
02071 #define PSTRING_cfR(A,B,D) RRRRPSTR( _fcdtocp(A),B,_fcdlen(A))
02072 #define PSTRINGV_cfR(A,B,D) RRRRPSTRV(_fcdtocp(A),B,_fcdlen(A))
02073 #else
02074 #define PSTRING_cfR(A,B,D) RRRRPSTR( A,B,D)
02075 #define PSTRINGV_cfR(A,B,D) RRRRPSTRV(A,B,D)
02076 #endif
02077 #endif
02078 #define PNSTRING_cfR(A,B,D) PSTRING_cfR(A,B,D)
02079 #define PPSTRING_cfR(A,B,D)
02080
02081 #define BYTE_cfFZ(UN,LN) INTEGER_BYTE FCALLSC_QUALIFIER fcallsc(UN,LN)(
02082 #define DOUBLE_cfFZ(UN,LN) DOUBLE_PRECISION FCALLSC_QUALIFIER fcallsc(UN,LN)(
02083 #define INT_cfFZ(UN,LN) int FCALLSC_QUALIFIER fcallsc(UN,LN)(
02084 #define LOGICAL_cfFZ(UN,LN) int FCALLSC_QUALIFIER fcallsc(UN,LN)(
02085 #define LONG_cfFZ(UN,LN) long FCALLSC_QUALIFIER fcallsc(UN,LN)(
02086 #define SHORT_cfFZ(UN,LN) short FCALLSC_QUALIFIER fcallsc(UN,LN)(
02087 #define VOID_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(
02088 #ifndef __CF__KnR
02089
02090
02091 #define FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(void
02092 #ifdef vmsFortran
02093 #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(fstring *AS
02094 #else
02095 #ifdef CRAYFortran
02096 #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(_fcd AS
02097 #else
02098 #if defined(AbsoftUNIXFortran) || defined(AbsoftProFortran)
02099 #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(char *AS
02100 #else
02101 #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(char *AS, unsigned D0
02102 #endif
02103 #endif
02104 #endif
02105 #else
02106 #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
02107 #define FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(
02108 #else
02109 #define FLOAT_cfFZ(UN,LN) FLOATFUNCTIONTYPE FCALLSC_QUALIFIER fcallsc(UN,LN)(
02110 #endif
02111 #if defined(vmsFortran) || defined(CRAYFortran) || defined(AbsoftUNIXFortran)
02112 #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(AS
02113 #else
02114 #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(AS, D0
02115 #endif
02116 #endif
02117
02118 #define BYTE_cfF(UN,LN) BYTE_cfFZ(UN,LN)
02119 #define DOUBLE_cfF(UN,LN) DOUBLE_cfFZ(UN,LN)
02120 #ifndef __CF_KnR
02121 #define FLOAT_cfF(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(
02122 #else
02123 #define FLOAT_cfF(UN,LN) FLOAT_cfFZ(UN,LN)
02124 #endif
02125 #define INT_cfF(UN,LN) INT_cfFZ(UN,LN)
02126 #define LOGICAL_cfF(UN,LN) LOGICAL_cfFZ(UN,LN)
02127 #define LONG_cfF(UN,LN) LONG_cfFZ(UN,LN)
02128 #define SHORT_cfF(UN,LN) SHORT_cfFZ(UN,LN)
02129 #define VOID_cfF(UN,LN) VOID_cfFZ(UN,LN)
02130 #define STRING_cfF(UN,LN) STRING_cfFZ(UN,LN),
02131
02132 #define INT_cfFF
02133 #define VOID_cfFF
02134 #ifdef vmsFortran
02135 #define STRING_cfFF fstring *AS;
02136 #else
02137 #ifdef CRAYFortran
02138 #define STRING_cfFF _fcd AS;
02139 #else
02140 #define STRING_cfFF char *AS; unsigned D0;
02141 #endif
02142 #endif
02143
02144 #define INT_cfL A0=
02145 #define STRING_cfL A0=
02146 #define VOID_cfL
02147
02148 #define INT_cfK
02149 #define VOID_cfK
02150
02151 #ifdef vmsFortran
02152 #define STRING_cfK \
02153 memcpy(AS->dsc$a_pointer,A0,_cfMIN(AS->dsc$w_length,(A0==NULL?0:strlen(A0))));\
02154 AS->dsc$w_length>(A0==NULL?0:strlen(A0))? \
02155 memset(AS->dsc$a_pointer+(A0==NULL?0:strlen(A0)),' ', \
02156 AS->dsc$w_length-(A0==NULL?0:strlen(A0))):0;
02157 #else
02158 #ifdef CRAYFortran
02159 #define STRING_cfK \
02160 memcpy(_fcdtocp(AS),A0, _cfMIN(_fcdlen(AS),(A0==NULL?0:strlen(A0))) ); \
02161 _fcdlen(AS)>(A0==NULL?0:strlen(A0))? \
02162 memset(_fcdtocp(AS)+(A0==NULL?0:strlen(A0)),' ', \
02163 _fcdlen(AS)-(A0==NULL?0:strlen(A0))):0;
02164 #else
02165 #define STRING_cfK memcpy(AS,A0, _cfMIN(D0,(A0==NULL?0:strlen(A0))) ); \
02166 D0>(A0==NULL?0:strlen(A0))?memset(AS+(A0==NULL?0:strlen(A0)), \
02167 ' ', D0-(A0==NULL?0:strlen(A0))):0;
02168 #endif
02169 #endif
02170
02171
02172
02173
02174
02175 #define BYTE_cfI return A0;
02176 #define DOUBLE_cfI return A0;
02177 #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT))
02178 #define FLOAT_cfI return A0;
02179 #else
02180 #define FLOAT_cfI RETURNFLOAT(A0);
02181 #endif
02182 #define INT_cfI return A0;
02183 #ifdef hpuxFortran800
02184
02185 #define LOGICAL_cfI return ((A0)?1:0);
02186 #else
02187 #define LOGICAL_cfI return C2FLOGICAL(A0);
02188 #endif
02189 #define LONG_cfI return A0;
02190 #define SHORT_cfI return A0;
02191 #define STRING_cfI return ;
02192 #define VOID_cfI return ;
02193
02194 #ifdef OLD_VAXC
02195 #pragma standard
02196 #endif
02197
02198 #define FCALLSCSUB0( CN,UN,LN) FCALLSCFUN0(VOID,CN,UN,LN)
02199 #define FCALLSCSUB1( CN,UN,LN,T1) FCALLSCFUN1(VOID,CN,UN,LN,T1)
02200 #define FCALLSCSUB2( CN,UN,LN,T1,T2) FCALLSCFUN2(VOID,CN,UN,LN,T1,T2)
02201 #define FCALLSCSUB3( CN,UN,LN,T1,T2,T3) FCALLSCFUN3(VOID,CN,UN,LN,T1,T2,T3)
02202 #define FCALLSCSUB4( CN,UN,LN,T1,T2,T3,T4) \
02203 FCALLSCFUN4(VOID,CN,UN,LN,T1,T2,T3,T4)
02204 #define FCALLSCSUB5( CN,UN,LN,T1,T2,T3,T4,T5) \
02205 FCALLSCFUN5(VOID,CN,UN,LN,T1,T2,T3,T4,T5)
02206 #define FCALLSCSUB6( CN,UN,LN,T1,T2,T3,T4,T5,T6) \
02207 FCALLSCFUN6(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6)
02208 #define FCALLSCSUB7( CN,UN,LN,T1,T2,T3,T4,T5,T6,T7) \
02209 FCALLSCFUN7(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7)
02210 #define FCALLSCSUB8( CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8) \
02211 FCALLSCFUN8(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8)
02212 #define FCALLSCSUB9( CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9) \
02213 FCALLSCFUN9(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9)
02214 #define FCALLSCSUB10(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA) \
02215 FCALLSCFUN10(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA)
02216 #define FCALLSCSUB11(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB) \
02217 FCALLSCFUN11(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB)
02218 #define FCALLSCSUB12(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC) \
02219 FCALLSCFUN12(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC)
02220 #define FCALLSCSUB13(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD) \
02221 FCALLSCFUN13(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD)
02222 #define FCALLSCSUB14(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
02223 FCALLSCFUN14(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)
02224 #define FCALLSCSUB15(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF) \
02225 FCALLSCFUN15(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF)
02226 #define FCALLSCSUB16(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG) \
02227 FCALLSCFUN16(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG)
02228 #define FCALLSCSUB17(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH) \
02229 FCALLSCFUN17(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH)
02230 #define FCALLSCSUB18(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI) \
02231 FCALLSCFUN18(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI)
02232 #define FCALLSCSUB19(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ) \
02233 FCALLSCFUN19(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ)
02234 #define FCALLSCSUB20(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
02235 FCALLSCFUN20(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK)
02236 #define FCALLSCSUB21(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL) \
02237 FCALLSCFUN21(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL)
02238 #define FCALLSCSUB22(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM) \
02239 FCALLSCFUN22(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM)
02240 #define FCALLSCSUB23(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN) \
02241 FCALLSCFUN23(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN)
02242 #define FCALLSCSUB24(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO) \
02243 FCALLSCFUN24(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO)
02244 #define FCALLSCSUB25(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP) \
02245 FCALLSCFUN25(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP)
02246 #define FCALLSCSUB26(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ) \
02247 FCALLSCFUN26(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ)
02248 #define FCALLSCSUB27(CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
02249 FCALLSCFUN27(VOID,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)
02250
02251
02252 #define FCALLSCFUN1( T0,CN,UN,LN,T1) \
02253 FCALLSCFUN5 (T0,CN,UN,LN,T1,CF_0,CF_0,CF_0,CF_0)
02254 #define FCALLSCFUN2( T0,CN,UN,LN,T1,T2) \
02255 FCALLSCFUN5 (T0,CN,UN,LN,T1,T2,CF_0,CF_0,CF_0)
02256 #define FCALLSCFUN3( T0,CN,UN,LN,T1,T2,T3) \
02257 FCALLSCFUN5 (T0,CN,UN,LN,T1,T2,T3,CF_0,CF_0)
02258 #define FCALLSCFUN4( T0,CN,UN,LN,T1,T2,T3,T4) \
02259 FCALLSCFUN5 (T0,CN,UN,LN,T1,T2,T3,T4,CF_0)
02260 #define FCALLSCFUN5( T0,CN,UN,LN,T1,T2,T3,T4,T5) \
02261 FCALLSCFUN10(T0,CN,UN,LN,T1,T2,T3,T4,T5,CF_0,CF_0,CF_0,CF_0,CF_0)
02262 #define FCALLSCFUN6( T0,CN,UN,LN,T1,T2,T3,T4,T5,T6) \
02263 FCALLSCFUN10(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,CF_0,CF_0,CF_0,CF_0)
02264 #define FCALLSCFUN7( T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7) \
02265 FCALLSCFUN10(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,CF_0,CF_0,CF_0)
02266 #define FCALLSCFUN8( T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8) \
02267 FCALLSCFUN10(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,CF_0,CF_0)
02268 #define FCALLSCFUN9( T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9) \
02269 FCALLSCFUN10(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,CF_0)
02270 #define FCALLSCFUN10(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA) \
02271 FCALLSCFUN14(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,CF_0,CF_0,CF_0,CF_0)
02272 #define FCALLSCFUN11(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB) \
02273 FCALLSCFUN14(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,CF_0,CF_0,CF_0)
02274 #define FCALLSCFUN12(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC) \
02275 FCALLSCFUN14(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,CF_0,CF_0)
02276 #define FCALLSCFUN13(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD) \
02277 FCALLSCFUN14(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,CF_0)
02278
02279
02280 #define FCALLSCFUN15(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF) \
02281 FCALLSCFUN20(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,CF_0,CF_0,CF_0,CF_0,CF_0)
02282 #define FCALLSCFUN16(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG) \
02283 FCALLSCFUN20(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,CF_0,CF_0,CF_0,CF_0)
02284 #define FCALLSCFUN17(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH) \
02285 FCALLSCFUN20(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,CF_0,CF_0,CF_0)
02286 #define FCALLSCFUN18(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI) \
02287 FCALLSCFUN20(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,CF_0,CF_0)
02288 #define FCALLSCFUN19(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ) \
02289 FCALLSCFUN20(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,CF_0)
02290 #define FCALLSCFUN20(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK) \
02291 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
02292 #define FCALLSCFUN21(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL) \
02293 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,CF_0,CF_0,CF_0,CF_0,CF_0,CF_0)
02294 #define FCALLSCFUN22(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM) \
02295 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,CF_0,CF_0,CF_0,CF_0,CF_0)
02296 #define FCALLSCFUN23(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN) \
02297 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,CF_0,CF_0,CF_0,CF_0)
02298 #define FCALLSCFUN24(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO) \
02299 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,CF_0,CF_0,CF_0)
02300 #define FCALLSCFUN25(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP) \
02301 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,CF_0,CF_0)
02302 #define FCALLSCFUN26(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ) \
02303 FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,CF_0)
02304
02305
02306 #ifndef __CF__KnR
02307 #define FCALLSCFUN0(T0,CN,UN,LN) CFextern _(T0,_cfFZ)(UN,LN) ABSOFT_cf2(T0)) \
02308 {_Icf(2,UU,T0,A0,0); _Icf(0,L,T0,0,0) CN(); _Icf(0,K,T0,0,0) _(T0,_cfI)}
02309
02310 #define FCALLSCFUN14(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
02311 CFextern _(T0,_cfF)(UN,LN) \
02312 CFARGT14(NCF,DCF,ABSOFT_cf2(T0),T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) ) \
02313 { CFARGT14S(QCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
02314 _Icf(2,UU,T0,A0,0); _Icf(0,L,T0,0,0) CN( TCF(LN,T1,1,0) TCF(LN,T2,2,1) \
02315 TCF(LN,T3,3,1) TCF(LN,T4,4,1) TCF(LN,T5,5,1) TCF(LN,T6,6,1) TCF(LN,T7,7,1) \
02316 TCF(LN,T8,8,1) TCF(LN,T9,9,1) TCF(LN,TA,10,1) TCF(LN,TB,11,1) TCF(LN,TC,12,1) \
02317 TCF(LN,TD,13,1) TCF(LN,TE,14,1) ); _Icf(0,K,T0,0,0) \
02318 CFARGT14S(RCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) _(T0,_cfI) }
02319
02320 #define FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
02321 CFextern _(T0,_cfF)(UN,LN) \
02322 CFARGT27(NCF,DCF,ABSOFT_cf2(T0),T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) ) \
02323 { CFARGT27S(QCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
02324 _Icf(2,UU,T0,A0,0); _Icf(0,L,T0,0,0) CN( TCF(LN,T1,1,0) TCF(LN,T2,2,1) \
02325 TCF(LN,T3,3,1) TCF(LN,T4,4,1) TCF(LN,T5,5,1) TCF(LN,T6,6,1) TCF(LN,T7,7,1) \
02326 TCF(LN,T8,8,1) TCF(LN,T9,9,1) TCF(LN,TA,10,1) TCF(LN,TB,11,1) TCF(LN,TC,12,1) \
02327 TCF(LN,TD,13,1) TCF(LN,TE,14,1) TCF(LN,TF,15,1) TCF(LN,TG,16,1) TCF(LN,TH,17,1) \
02328 TCF(LN,TI,18,1) TCF(LN,TJ,19,1) TCF(LN,TK,20,1) TCF(LN,TL,21,1) TCF(LN,TM,22,1) \
02329 TCF(LN,TN,23,1) TCF(LN,TO,24,1) TCF(LN,TP,25,1) TCF(LN,TQ,26,1) TCF(LN,TR,27,1) ); _Icf(0,K,T0,0,0) \
02330 CFARGT27S(RCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) _(T0,_cfI) }
02331
02332 #else
02333 #define FCALLSCFUN0(T0,CN,UN,LN) CFextern _(T0,_cfFZ)(UN,LN) ABSOFT_cf3(T0)) _Icf(0,FF,T0,0,0)\
02334 {_Icf(2,UU,T0,A0,0); _Icf(0,L,T0,0,0) CN(); _Icf(0,K,T0,0,0) _(T0,_cfI)}
02335
02336 #define FCALLSCFUN14(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
02337 CFextern _(T0,_cfF)(UN,LN) \
02338 CFARGT14(NNCF,DDCF,ABSOFT_cf3(T0),T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE)) _Icf(0,FF,T0,0,0) \
02339 CFARGT14FS(NNNCF,DDDCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE); \
02340 { CFARGT14S(QCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) \
02341 _Icf(2,UU,T0,A0,0); _Icf(0,L,T0,0,0) CN( TCF(LN,T1,1,0) TCF(LN,T2,2,1) \
02342 TCF(LN,T3,3,1) TCF(LN,T4,4,1) TCF(LN,T5,5,1) TCF(LN,T6,6,1) TCF(LN,T7,7,1) \
02343 TCF(LN,T8,8,1) TCF(LN,T9,9,1) TCF(LN,TA,10,1) TCF(LN,TB,11,1) TCF(LN,TC,12,1) \
02344 TCF(LN,TD,13,1) TCF(LN,TE,14,1) ); _Icf(0,K,T0,0,0) \
02345 CFARGT14S(RCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE) _(T0,_cfI)}
02346
02347 #define FCALLSCFUN27(T0,CN,UN,LN,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
02348 CFextern _(T0,_cfF)(UN,LN) \
02349 CFARGT27(NNCF,DDCF,ABSOFT_cf3(T0),T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR)) _Icf(0,FF,T0,0,0) \
02350 CFARGT27FS(NNNCF,DDDCF,_Z,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR); \
02351 { CFARGT27S(QCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) \
02352 _Icf(2,UU,T0,A0,0); _Icf(0,L,T0,0,0) CN( TCF(LN,T1,1,0) TCF(LN,T2,2,1) \
02353 TCF(LN,T3,3,1) TCF(LN,T4,4,1) TCF(LN,T5,5,1) TCF(LN,T6,6,1) TCF(LN,T7,7,1) \
02354 TCF(LN,T8,8,1) TCF(LN,T9,9,1) TCF(LN,TA,10,1) TCF(LN,TB,11,1) TCF(LN,TC,12,1) \
02355 TCF(LN,TD,13,1) TCF(LN,TE,14,1) TCF(LN,TF,15,1) TCF(LN,TG,16,1) TCF(LN,TH,17,1) \
02356 TCF(LN,TI,18,1) TCF(LN,TJ,19,1) TCF(LN,TK,20,1) TCF(LN,TL,21,1) TCF(LN,TM,22,1) \
02357 TCF(LN,TN,23,1) TCF(LN,TO,24,1) TCF(LN,TP,25,1) TCF(LN,TQ,26,1) TCF(LN,TR,27,1) ); _Icf(0,K,T0,0,0) \
02358 CFARGT27S(RCF,T1,T2,T3,T4,T5,T6,T7,T8,T9,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TL,TM,TN,TO,TP,TQ,TR) _(T0,_cfI)}
02359
02360 #endif
02361
02362
02363 #endif