Changeset 2408 in Sophya for trunk/SophyaExt/CodeMinuit/cfortran


Ignore:
Timestamp:
Jul 19, 2003, 1:55:05 PM (22 years ago)
Author:
cmv
Message:

nouvelle version cmv 19/7/2003

Location:
trunk/SophyaExt/CodeMinuit/cfortran
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/CodeMinuit/cfortran/cfortran.h

    r2403 r2408  
    1 /* cfortran.h  4.3 */
    2 /* www-zeus.desy.de/~burow   OR   anonymous ftp@zebra.desy.de */
    3 /* Burkhard Burow  burow@desy.de                 1990 - 1998. */
     1/* cfortran.h  4.4_cernlib2002 */
     2/* http://www-zeus.desy.de/~burow/cfortran/                  */
     3/* Burkhard Burow  burow@desy.de                 1990 - 2002. */
    44
    55#ifndef __CFORTRAN_LOADED
     
    269269
    270270#ifndef apolloFortran
    271 #define COMMON_BLOCK_DEF(DEFINITION, NAME) extern DEFINITION NAME
     271#define COMMON_BLOCK_DEF(DEFINITION, NAME) DEFINITION NAME
    272272#define CF_NULL_PROTO
    273273#else                                         /* HP doesn't understand #elif. */
     
    652652          {0,DSC$K_DTYPE_T,DSC$K_CLASS_A,NULL,0,0,{0,0,1,1,1},1,0,NULL,0,{1,0}};
    653653#else
    654 #define     STRING_cfV(T,A,B,F) struct {unsigned int clen, flen;} B;
    655 #define    STRINGV_cfV(T,A,B,F) struct {char *s, *fs; unsigned flen;} B;
     654#define     STRING_cfV(T,A,B,F) struct {unsigned int clen, flen; char *nombre;} B;
     655#define    STRINGV_cfV(T,A,B,F) struct {char *s, *fs; unsigned flen; char *nombre;} B;
    656656#define    PSTRING_cfV(T,A,B,F) int     B;
    657657#define   PSTRINGV_cfV(T,A,B,F) struct{char *fs; unsigned int sizeofA,flen;}B;
     
    771771#define  LOGICAL_cfW(A,B)
    772772#define PLOGICAL_cfW(A,B) *B=F2CLOGICAL(*B);
    773 #define   STRING_cfW(A,B) (A[B.clen]!='\0'?A[B.clen]='\0':0); /* A?="constnt"*/
     773#define   STRING_cfW(A,B) (B.nombre=A,B.nombre[B.clen]!='\0'?B.nombre[B.clen]='\0':0); /* A?="constnt"*/
    774774#define  PSTRING_cfW(A,B) kill_trailing(A,' ');
    775775#ifdef vmsFortran
     
    16741674       memset((A)+B.dsc$w_length,' ',C-B.dsc$w_length-1), B.dsc$w_length=C-1));
    16751675#else
    1676 #define   STRING_cfC(M,I,A,B,C) (B.clen=strlen(A),                             \
     1676#define   STRING_cfC(M,I,A,B,C) (B.nombre=A,B.clen=strlen(A),                             \
    16771677                C==sizeof(char*)||C==(unsigned)(B.clen+1)?B.flen=B.clen:       \
    1678                         (memset((A)+B.clen,' ',C-B.clen-1),A[B.flen=C-1]='\0'));
     1678                        (memset(B.nombre+B.clen,' ',C-B.clen-1),B.nombre[B.flen=C-1]='\0'));
    16791679#define  PSTRING_cfC(M,I,A,B,C) (C==sizeof(char*)? B=strlen(A):                \
    16801680                    (A[C-1]='\0',B=strlen(A),memset((A)+B,' ',C-B-1),B=C-1));
Note: See TracChangeset for help on using the changeset viewer.