1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-08 01:39:55 +00:00

Move janet_buffer_dtostr

This commit is contained in:
Calvin Rose 2024-05-19 17:14:21 -05:00
parent 634429cf61
commit 58ccb66659

View File

@ -489,6 +489,8 @@ int janet_scan_uint64(const uint8_t *str, int32_t len, uint64_t *out) {
return 0;
}
#endif
void janet_buffer_dtostr(JanetBuffer *buffer, double x) {
#define BUFSIZE 32
janet_buffer_extra(buffer, BUFSIZE);
@ -503,5 +505,3 @@ void janet_buffer_dtostr(JanetBuffer *buffer, double x) {
}
buffer->count += count;
}
#endif