-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C backend assumes that user of header file includes stdio.h
#381
Comments
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 BNFC#381.
Thanks for reporting and the PR, @enedil! Is this also a problem with the C++ backends? |
It doesn't, since |
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. The problem also is present in the CPP backend and hereby fixed. Fixes BNFC#381.
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. The problem also is present in the CPP backend and hereby fixed. Fixes #381.
Thanks @enedil, this is now fixed on |
In the C backend, none of the generated headers include any header from standard library. This is wrong, as
Parser.h
usesFILE*
, which is defined instdio.h
. Thus,stdio.h
should be also included.BNFC version that I use: 2.9.1.
OS: Fedora 34
BNFC distribution:
stack
The text was updated successfully, but these errors were encountered: