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

Code cleanup #374

Merged
merged 12 commits into from
Nov 5, 2024
Merged

Code cleanup #374

merged 12 commits into from
Nov 5, 2024

Conversation

gucio321
Copy link
Collaborator

@gucio321 gucio321 commented Nov 5, 2024

well, when gengo_typedefs.go has ~650 lines and the main function has 618 its deffiitly time to do something about that.

This is a first PR of planned series.
This mainly focuses on gengo_typedefs.go file.
My goal is to achive 1 Function for generating which is +/- human-readable, and a planty of functions with not-so-guman-readable fmt.fprintf calls.

no longer needed when we have Context
also:
- create helper type fr typedefs generation
- rename data -> ctx (finally)
also add a type for known(ptr)Arg/Ret passing
just a few lines below is a case for void*
I think this if was a leftover.
- remove commented-out debug stmt
- reorder case conditions so that the most important check were on top (readability, performance)
this was missleading as it taook isOpaque argument hehe"
@gucio321 gucio321 mentioned this pull request Nov 5, 2024
5 tasks
@gucio321 gucio321 merged commit d5738a9 into AllenDang:main Nov 5, 2024
5 checks passed
@gucio321 gucio321 deleted the code-cleanup-1 branch November 5, 2024 12:11
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.

1 participant