[PATCH] fortran: C++ support for generating C prototypes

Janne Blomqvist blomqvist.janne@gmail.com
Sun May 12 19:36:00 GMT 2019


On Sun, May 12, 2019 at 11:29 AM Janne Blomqvist
<blomqvist.janne@gmail.com> wrote:
>
> On Sun, May 12, 2019 at 11:06 AM Thomas Koenig <tkoenig@netcologne.de> wrote:
> > (I thought for a second about guarding about double inclusion, but
> > including prototypes twice is harmless, and this should be the
> > user's responsibility).
>
> I thought about adding include guards as well, but the problem is that
> we don't know which name the end user wants to save the output as.

But, we can of course use the source file name instead of the usual
header name for the include guard. Like in the attached patch. Ok for
trunk and 9?



-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-include-guards-for-generated-C-prototypes.patch
Type: application/octet-stream
Size: 2764 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190512/59c5f7fa/attachment.obj>


More information about the Fortran mailing list