Skip to content

Commit 7d74243

Browse files
committed
Improve naming
1 parent ac87b7b commit 7d74243

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/json/ext/fbuffer/fbuffer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static inline void fbuffer_append_char(FBuffer *fb, char newchr)
181181
static void fbuffer_append_long(FBuffer *fb, long number)
182182
{
183183
/*
184-
* The to_text_from_ulong() function produces digits left-to-right,
184+
* The jeaiii_ultoa() function produces digits left-to-right,
185185
* allowing us to write directly into the buffer, but we don't know
186186
* the number of resulting characters.
187187
*
@@ -206,7 +206,7 @@ static void fbuffer_append_long(FBuffer *fb, long number)
206206
}
207207

208208
char* d = fb->ptr + fb->len;
209-
char* end = to_text_from_ulong(d, number);
209+
char* end = jeaiii_ultoa(d, number);
210210
fb->len += end - d;
211211
}
212212

ext/json/ext/vendor/jeaiii-ltoa.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static const u64_t mask57 = (u64(1) << 57) - 1;
8282
#define COPY(buffer, digits) memcpy(buffer, &(digits), sizeof(struct digit_pair))
8383

8484
static char *
85-
to_text_from_ulong(char *b, u64_t n)
85+
jeaiii_ultoa(char *b, u64_t n)
8686
{
8787
if (n < u32(1e2)) {
8888
COPY(b, digits_fd[n]);

0 commit comments

Comments
 (0)