diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-10-23 17:16:17 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-10-23 17:16:17 -0300 |
commit | e3ce88c9e850b7e79751083014699c5eae1bff31 (patch) | |
tree | e73392a16c560ed532ef2238132f0e58d2eb23b3 /lobject.h | |
parent | 5ffcd458f001fce02e5f20a6130e145c6a3caf53 (diff) | |
download | lua-e3ce88c9e850b7e79751083014699c5eae1bff31.tar.gz lua-e3ce88c9e850b7e79751083014699c5eae1bff31.tar.bz2 lua-e3ce88c9e850b7e79751083014699c5eae1bff31.zip |
New function 'lua_numbertostrbuff'
It converts a Lua number to a string in a buffer, without creating
a new Lua string.
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -845,6 +845,7 @@ LUAI_FUNC int luaO_rawarith (lua_State *L, int op, const TValue *p1, | |||
845 | LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, | 845 | LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, |
846 | const TValue *p2, StkId res); | 846 | const TValue *p2, StkId res); |
847 | LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o); | 847 | LUAI_FUNC size_t luaO_str2num (const char *s, TValue *o); |
848 | LUAI_FUNC unsigned luaO_tostringbuff (const TValue *obj, char *buff); | ||
848 | LUAI_FUNC lu_byte luaO_hexavalue (int c); | 849 | LUAI_FUNC lu_byte luaO_hexavalue (int c); |
849 | LUAI_FUNC void luaO_tostring (lua_State *L, TValue *obj); | 850 | LUAI_FUNC void luaO_tostring (lua_State *L, TValue *obj); |
850 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, | 851 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, |