This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] Calling conventions for assumed shaped arrays?


Please send gfortran questions to fortran@gcc.gnu.org.

On Monday 10 January 2005 12:50, Richard Guenther wrote:
> Hi!
>
> For interfacing with C/C++ code, where is the calling conventions
> specified for assumed shaped arrays?  I.e. for
>
>     subroutine blah(a)
>       real, dimension(:,:) :: a
>     end subroutine blah
>
> what is a C "prototype" for blah_?

#include "libgfortran.h"
void blah_ (GFC_ARRAY_DESCRIPTOR(2, GFC_REAL_4) *a);

Note that "real" may be real(4) or real(8) depending on commandline options.

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]