diff options
author | Mike Pall <mike> | 2013-03-25 16:41:13 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2013-03-25 16:41:13 +0100 |
commit | 59329cfbbf1362bc17f5a13c10a1c3b9557321ef (patch) | |
tree | 2f9753b74eeddcc4850dc2c19f423623e0122198 /src/lj_str.h | |
parent | 3b0b3afbb1357cbf206b56a46cd03955b201fa4b (diff) | |
download | luajit-59329cfbbf1362bc17f5a13c10a1c3b9557321ef.tar.gz luajit-59329cfbbf1362bc17f5a13c10a1c3b9557321ef.tar.bz2 luajit-59329cfbbf1362bc17f5a13c10a1c3b9557321ef.zip |
Optimize and refactor printing of numbers to buffers.
Diffstat (limited to 'src/lj_str.h')
-rw-r--r-- | src/lj_str.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_str.h b/src/lj_str.h index 6317e794..61666a2a 100644 --- a/src/lj_str.h +++ b/src/lj_str.h | |||
@@ -20,8 +20,9 @@ LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); | |||
20 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) | 20 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) |
21 | 21 | ||
22 | /* Type conversions. */ | 22 | /* Type conversions. */ |
23 | LJ_FUNC MSize LJ_FASTCALL lj_str_bufnum(char *s, cTValue *o); | 23 | LJ_FUNC char * LJ_FASTCALL lj_str_bufint(char *buf, int32_t k); |
24 | LJ_FUNC MSize LJ_FASTCALL lj_str_bufptr(char *p, const void *v); | 24 | LJ_FUNC char * LJ_FASTCALL lj_str_bufnum(char *p, cTValue *o); |
25 | LJ_FUNC char * LJ_FASTCALL lj_str_bufptr(char *p, const void *v); | ||
25 | LJ_FUNC const char *lj_str_buftv(char *buf, cTValue *o, MSize *lenp); | 26 | LJ_FUNC const char *lj_str_buftv(char *buf, cTValue *o, MSize *lenp); |
26 | LJ_FUNCA GCstr * LJ_FASTCALL lj_str_fromnum(lua_State *L, const lua_Number *np); | 27 | LJ_FUNCA GCstr * LJ_FASTCALL lj_str_fromnum(lua_State *L, const lua_Number *np); |
27 | LJ_FUNC GCstr * LJ_FASTCALL lj_str_fromint(lua_State *L, int32_t k); | 28 | LJ_FUNC GCstr * LJ_FASTCALL lj_str_fromint(lua_State *L, int32_t k); |