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

Remove typedefs for cXYZ_cgo function signatures #477

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

webmaster128
Copy link
Member

We maintain those signatures manually for 4 years now but it turns out it does not matter at all what's in there. They are all converted to a raw untyped pointer in Go.

To test this, try swapping e.g. C.query_external_fn with C.scan_db_fn. It does not matter which one you use. They are all aliases to the Go type *[0]byte.

they are all the same type anyways
Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

Interesting

@webmaster128 webmaster128 merged commit b537082 into main Nov 23, 2023
13 checks passed
@webmaster128 webmaster128 deleted the function-signatures branch November 23, 2023 10:38
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