On Sun, May 12, 2019 at 11:29 AM Janne Blomqvist
<blomqvist.ja...@gmail.com> wrote:
>
> On Sun, May 12, 2019 at 11:06 AM Thomas Koenig <tkoe...@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

Attachment: 0001-Add-include-guards-for-generated-C-prototypes.patch
Description: Binary data

Reply via email to