Skip to content

bindgen: enable "void prototype" while writing struct field#473

Merged
emilio merged 2 commits intomozilla:masterfrom
TheKK:c_function_type
Feb 17, 2020
Merged

bindgen: enable "void prototype" while writing struct field#473
emilio merged 2 commits intomozilla:masterfrom
TheKK:c_function_type

Conversation

@TheKK
Copy link
Copy Markdown
Contributor

@TheKK TheKK commented Feb 15, 2020

Fix #470

This void in some C++ files should be fine according to standard (ref)

Let's me know if there's anything I can improve :)

This fixs typedef's signature in C as well because a typedef statement is
constructed like, "typedef " + field_like_string.
@TheKK TheKK requested a review from emilio February 15, 2020 05:19
Copy link
Copy Markdown
Collaborator

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this!

@TheKK
Copy link
Copy Markdown
Contributor Author

TheKK commented Feb 17, 2020

Looks like CI failed with some irrelevant issues (it didn't even start running tests), could we rerun it again or if there's anything I can do?

@emilio
Copy link
Copy Markdown
Collaborator

emilio commented Feb 17, 2020

I cleared caches (builds just time out when they get too big) and restarted the build. Thanks!

Copy link
Copy Markdown
Collaborator

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think we should probably just pass config down, but no big deal and can be a followup anyway.

@emilio emilio merged commit 953390b into mozilla:master Feb 17, 2020
@emilio
Copy link
Copy Markdown
Collaborator

emilio commented Feb 17, 2020

Thanks a lot for the fix!

@TheKK TheKK deleted the c_function_type branch February 18, 2020 04:06
@TheKK
Copy link
Copy Markdown
Contributor Author

TheKK commented Feb 18, 2020

It's my pleasure as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix generated typedefs for function types without arguments

2 participants