mirror of
https://github.com/janet-lang/janet
synced 2025-01-20 04:12:51 +00:00
Move janet_buffer_dtostr
This commit is contained in:
parent
634429cf61
commit
58ccb66659
@ -489,6 +489,8 @@ int janet_scan_uint64(const uint8_t *str, int32_t len, uint64_t *out) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
void janet_buffer_dtostr(JanetBuffer *buffer, double x) {
|
void janet_buffer_dtostr(JanetBuffer *buffer, double x) {
|
||||||
#define BUFSIZE 32
|
#define BUFSIZE 32
|
||||||
janet_buffer_extra(buffer, BUFSIZE);
|
janet_buffer_extra(buffer, BUFSIZE);
|
||||||
@ -503,5 +505,3 @@ void janet_buffer_dtostr(JanetBuffer *buffer, double x) {
|
|||||||
}
|
}
|
||||||
buffer->count += count;
|
buffer->count += count;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user