Skip to content

v.gen.c: support inter-dependent function types#20638

Merged
spytheman merged 1 commit intovlang:masterfrom
pierrec:issue19367
Jan 24, 2024
Merged

v.gen.c: support inter-dependent function types#20638
spytheman merged 1 commit intovlang:masterfrom
pierrec:issue19367

Conversation

@pierrec
Copy link
Copy Markdown
Contributor

@pierrec pierrec commented Jan 23, 2024

Allow a function type to depend on another.
Fixes #19367.

NB. I tried to use depgraph.DepGraph but for some reason it did not sort the types appropriately so I resorted to a basic slice algorithm.

Allow a function type to depend on another.
Fixes #19367.

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
Copy link
Copy Markdown
Contributor

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit a09bd7c into vlang:master Jan 24, 2024
@pierrec pierrec deleted the issue19367 branch January 27, 2024 16:34
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.

Generated C has typedefs in the wrong order

2 participants