BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
582 stars 161 forks source link

C backend: Parser.h: #include <stdio.h> #382

Closed enedil closed 2 years ago

enedil commented 2 years ago

Parser.h uses FILE*, however doesn't include stdio.h, even transitively. This is an issue if using the C backend from Zig, where usage of C FILE api is not needed.

Fixes #381.

andreasabel commented 2 years ago

Thanks for adding to STL.hs, would it be possible you also updated NoSTL.hs?

enedil commented 2 years ago

Thanks for adding to STL.hs, would it be possible you also updated NoSTL.hs?

I see you already did it. Thanks.

andreasabel commented 2 years ago

@enedil: Yes, as I anyway had to test on my local machine, I thought it is easier that I do it myself.