Skip to content

How hard would it be to provide a C version of jeaiii_to_text.h? #10

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

Open
MasterDuke17 opened this issue Sep 29, 2022 · 2 comments
Open

Comments

@MasterDuke17
Copy link

No description provided.

@jeaiii
Copy link
Owner

jeaiii commented Oct 5, 2022

not too hard, just duplicate the function for each type you want to support to remove the template usage, just use a constant string for the digits array and c style casts. I could make the header dual c/c++ probably

@MasterDuke17
Copy link
Author

I could make the header dual c/c++ probably

If you're willing to do that MoarVM could probably just submodule the repo and use the header directly instead of relying on my manual translation (https://github.com/MoarVM/MoarVM/blob/master/src/core/coerce.c#L13-L91).

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