itoa icon indicating copy to clipboard operation
itoa copied to clipboard

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

Open MasterDuke17 opened this issue 1 year ago • 2 comments

MasterDuke17 avatar Sep 29 '22 02:09 MasterDuke17

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

jeaiii avatar Oct 05 '22 18:10 jeaiii

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).

MasterDuke17 avatar Oct 27 '22 01:10 MasterDuke17