another calling-fortran-from-C-question

Tobias.Schlueter@Physik.Uni-Muenchen.DE Tobias.Schlueter@Physik.Uni-Muenchen.DE
Wed Jun 29 09:20:00 GMT 2005


Quoting Daniel Franke <daniel.franke@imbs.uni-luebeck.de>:
> A minor note:
> While looking for a description of the base- and data-members, I found that
> the comments in gcc/fortran/trans-types.c are out of sync given the actual
> types in libgfortran/libgfortran.h:
>
> gcc/fortran/trans-types.c
>   706    struct gfc_array_descriptor
>   707    {
>   708      array *data
>   709      index offset;
>   710      index dtype;
>   711      struct descriptor_dimension dimension[N_DIM];
>   712    }
>
> libgfortran/libgfortran.h
>   248    #define GFC_ARRAY_DESCRIPTOR(r, type) \
>   249    struct {\
>   250      type *data;\
>   251      type *base;\
>   252      index_type dtype;\
>   253      descriptor_dimension dim[r];\
>   254    }

Ouch, I had wanted to correct that a long time ago.  Thanks for pointing this
out.

- Tobi



More information about the Fortran mailing list