[Patch, Fortran] OOP cleanup part 2

Tobias Burnus burnus@net-b.de
Sun May 30 19:51:00 GMT 2010


Janus Weil wrote:
> here is another cleanup patch for OOP. It simply introduces the
> following macro in gfortran.h (as proposed by Paul):
> #define CLASS_DATA(sym) sym->ts.u.derived->components
>
> Paul, is this what you had in mind? Or are there more clever ways to do it?
>   

I cannot answer the question to Paul ...

I still do not fully like the handling of CLASS, but I think the patch
is still an improvement and thus OK for check in.

Nit: You miss a space after CLASS_DATA, e.g.

+      allocatable = CLASS_DATA(sym)->attr.allocatable;
should be
+      allocatable = CLASS_DATA (sym)->attr.allocatable;

The only exception is #define where no space is OK.

Tobias




More information about the Fortran mailing list