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

gen: add MapHashFn typedef before map struct is declared #7541

Merged
merged 2 commits into from
Dec 25, 2020

Conversation

ntrel
Copy link
Contributor

@ntrel ntrel commented Dec 24, 2020

map can't have a field of type function pointer because function pointer types are typedef'd after the map struct is declared.

Needed to bootstrap requested changes on #7503.

Also add MapEqFn as it will be needed soon too.

map can't have a field of type function pointer because function
pointer types are typedef'd after the map struct is declared.
@spytheman spytheman merged commit 17cccc7 into vlang:master Dec 25, 2020
@ntrel ntrel deleted the hash-fn branch December 26, 2020 10:55
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.

2 participants