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

Use the libc crate to provide external functions and c-like types #172

Open
software-opal opened this issue Jan 12, 2018 · 0 comments
Open

Comments

@software-opal
Copy link

I'm using this project to port a large C project and it is amazing.

I am however running into a few issues:

  • The use of u8 causes lots of cross compilation problems.
  • I would like to avoid large extern blocks at the top of each ported file.

To avoid the former I'd like to switch to using libc::c_char.

For the latter it would be nice to (via a flag, maybe) convert calls to C standard library functions like malloc and free into calls to their libc:: equivalents.

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

1 participant