In earlier versions of Microsoft Fortran I could use the INTERFACE TO statement for global scope. My project contains more than 2.500 fortran files! So I added in each file the first line with an INCLUDE of the mixed language declaration file. This include file contains sections like
INTERFACE TO INTEGER FUNCTION HATGEN [STDCALL](A,B,C,D,E)
INTEGER B [REFERENCE]
DOUBLEPRECISION C [REFERENCE]
The documentation of Visual Fortran 6.5 says, the new syntax is
INTEGER FUNCTION HATGEN(A,B,C,D,E)
!DEC$ ATTRIBUTES STDCALL :: HATGEN
!DEC$ ATTRIBUTES REFERENCE :: B,C
But this only work, if the interface is embedded inside of a subroutine or function definition. Is the necessary interface declaration for mixed language routines only possible for local scope?
I need it for global scope, because otherwise I have explicitly to insert some thousand interface sections!
Who can help me??
Sorry for my german english.