Nothing Special   »   [go: up one dir, main page]

Skip to content
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] Emit correct function prototypes #185

Merged
merged 1 commit into from
Sep 9, 2016
Merged

Conversation

BenWiederhake
Copy link
Contributor

This affects the generated file Absyn.h.

Example before:

    Full_combinator_id make_AbsentFCID();

Example after:

    Full_combinator_id make_AbsentFCID(void);

This change is required as make_AbsentFCID() in C actually
means "takes an arbitrary amount of arguments", which is not
the desired semantics.

make test passes all suites. Someone should probably write a regression test for this, so this bug isn't introduced again.

This affects the generated file Absyn.h.

Example before:
    Full_combinator_id make_AbsentFCID();
Example after:
    Full_combinator_id make_AbsentFCID(void);

This change is required as "make_AbsentFCID()" in C actually
means "takes an arbitrary amount of arguments", which is not
the desired semantics.
@gdetrez gdetrez self-assigned this Sep 2, 2016
@gdetrez gdetrez modified the milestone: 2.9 Sep 7, 2016
@gdetrez gdetrez merged commit a6e430a into BNFC:master Sep 9, 2016
gdetrez added a commit that referenced this pull request Sep 9, 2016
gdetrez added a commit that referenced this pull request Sep 9, 2016
Set CCFLAGS to -Werro -Wstrict-prototypes so that gcc fails in case a
function is declared or defined without specifying the argument types.
This serves as a regression test for pull request #185.
@gdetrez
Copy link
Contributor
gdetrez commented Sep 9, 2016

Thanks!

@andreasabel andreasabel modified the milestones: 2.9, 2.8.2 Nov 4, 2018
@andreasabel andreasabel added the C label Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants