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

explicit int sizes for c-ffi #166

Open
iglennrogers opened this issue Jan 22, 2012 · 2 comments
Open

explicit int sizes for c-ffi #166

iglennrogers opened this issue Jan 22, 2012 · 2 comments

Comments

@iglennrogers
Copy link
Contributor

In re #57. It might be an idea to have explicit int sizes when defining an interface.

At the moment, you have <c-int>, <c-short> et al, but libraries usually define an "int16", "int32", "uint16" etc. For clarity and ease, it would be nice to have direct analogues, <c-int32>, <c-int16> etc

I'm assuming that it's just a case of something like define constant <c-int16> = <c-short>

@hannesm
Copy link
Contributor

hannesm commented Feb 2, 2012

You've seen http://opendylan.org/documentation/library-reference/c-ffi/index.html#fundamental-numeric-type-designator-classes ? but I agree, we should have a set of convenience constants for those datatypes. Happy to accept a pull request.

@hannesm
Copy link
Contributor

hannesm commented Feb 2, 2012

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

No branches or pull requests

2 participants