diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-30 13:48:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-30 13:48:44 -0300 |
commit | 5388aa9fc0185b5d7a852e679484e26ba53e5d4d (patch) | |
tree | 2085a65550d299ee37369985f47af4fd9f5c951e /lobject.h | |
parent | b123a88673fcf37ebfcc8ea866a3d27da6cdf82e (diff) | |
download | lua-github-5388aa9fc0185b5d7a852e679484e26ba53e5d4d.tar.gz |
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which converts
to float or integer according to the string syntax)
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.86 2014/02/19 13:52:42 roberto Exp roberto $ +** $Id: lobject.h,v 2.87 2014/04/29 18:14:16 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -500,8 +500,7 @@ LUAI_FUNC int luaO_utf8esc (char *buff, unsigned int x); LUAI_FUNC int luaO_ceillog2 (unsigned int x); LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res); -LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); -LUAI_FUNC int luaO_str2int (const char *s, size_t len, lua_Integer *result); +LUAI_FUNC int luaO_str2num (const char *s, size_t len, TValue *o); LUAI_FUNC int luaO_hexavalue (int c); LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp); |