Changeset 2408 in Sophya for trunk/SophyaExt/CodeMinuit/cfortran
- Timestamp:
- Jul 19, 2003, 1:55:05 PM (22 years ago)
- 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. */ 4 4 5 5 #ifndef __CFORTRAN_LOADED … … 269 269 270 270 #ifndef apolloFortran 271 #define COMMON_BLOCK_DEF(DEFINITION, NAME) externDEFINITION NAME271 #define COMMON_BLOCK_DEF(DEFINITION, NAME) DEFINITION NAME 272 272 #define CF_NULL_PROTO 273 273 #else /* HP doesn't understand #elif. */ … … 652 652 {0,DSC$K_DTYPE_T,DSC$K_CLASS_A,NULL,0,0,{0,0,1,1,1},1,0,NULL,0,{1,0}}; 653 653 #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; 656 656 #define PSTRING_cfV(T,A,B,F) int B; 657 657 #define PSTRINGV_cfV(T,A,B,F) struct{char *fs; unsigned int sizeofA,flen;}B; … … 771 771 #define LOGICAL_cfW(A,B) 772 772 #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"*/ 774 774 #define PSTRING_cfW(A,B) kill_trailing(A,' '); 775 775 #ifdef vmsFortran … … 1674 1674 memset((A)+B.dsc$w_length,' ',C-B.dsc$w_length-1), B.dsc$w_length=C-1)); 1675 1675 #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), \ 1677 1677 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')); 1679 1679 #define PSTRING_cfC(M,I,A,B,C) (C==sizeof(char*)? B=strlen(A): \ 1680 1680 (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.