math.blas, alien.fortran: Back from beyond the grave.

db4
Doug Coleman 2012-05-04 09:03:27 -07:00
parent 7b01763975
commit 3c29b4c131
24 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ SINGLETONS: f2c-abi g95-abi gfortran-abi intel-unix-abi intel-windows-abi ;
"I77" "libI77.so" cdecl add-library
"F77" "libF77.so" cdecl add-library ;
os netbsd? [ add-f2c-libraries ] when
! os netbsd? [ add-f2c-libraries ] when
>>
: alien>nstring ( alien len encoding -- string )
@ -440,15 +440,15 @@ MACRO: fortran-invoke ( return library function parameters -- )
[ \ fortran-invoke 5 [ ] nsequence ] dip define-declared ;
SYNTAX: SUBROUTINE:
f current-library get scan ";" parse-tokens
f current-library get scan-token ";" parse-tokens
[ "()" subseq? not ] filter define-fortran-function ;
SYNTAX: FUNCTION:
scan current-library get scan ";" parse-tokens
scan-token current-library get scan-token ";" parse-tokens
[ "()" subseq? not ] filter define-fortran-function ;
SYNTAX: LIBRARY:
scan
scan-token
[ current-library set ]
[ set-fortran-abi ] bi ;

View File

@ -16,7 +16,7 @@ blas-fortran-abi [
{ [ os macosx? ] [ intel-unix-abi ] }
{ [ os windows? cpu x86.32? and ] [ f2c-abi ] }
{ [ os windows? cpu x86.64? and ] [ gfortran-abi ] }
{ [ os freebsd? ] [ gfortran-abi ] }
! { [ os freebsd? ] [ gfortran-abi ] }
{ [ os linux? ] [ gfortran-abi ] }
[ f2c-abi ]
} cond