diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-12-06 19:08:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-12-06 19:08:36 -0200 |
commit | ccc4fc9cf001c19eac5be4453b76a6c438b5b1d4 (patch) | |
tree | 141b6ae0e4dc883cd0036d66d50fb1afbc4ab2dd /lobject.h | |
parent | c79b4a97aa7734369e10f09764d5b8f05e7bda24 (diff) | |
download | lua-ccc4fc9cf001c19eac5be4453b76a6c438b5b1d4.tar.gz lua-ccc4fc9cf001c19eac5be4453b76a6c438b5b1d4.tar.bz2 lua-ccc4fc9cf001c19eac5be4453b76a6c438b5b1d4.zip |
detection of erroneous numeric strings with \0 (such as "1\0")
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.42 2010/07/26 15:53:23 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.43 2010/11/26 14:32:31 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -412,7 +412,7 @@ LUAI_FUNC int luaO_fb2int (int x); | |||
412 | LUAI_FUNC int luaO_ceillog2 (lu_int32 x); | 412 | LUAI_FUNC int luaO_ceillog2 (lu_int32 x); |
413 | LUAI_FUNC lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2); | 413 | LUAI_FUNC lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2); |
414 | LUAI_FUNC int luaO_rawequalObj (const TValue *t1, const TValue *t2); | 414 | LUAI_FUNC int luaO_rawequalObj (const TValue *t1, const TValue *t2); |
415 | LUAI_FUNC int luaO_str2d (const char *s, lua_Number *result); | 415 | LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); |
416 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, | 416 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, |
417 | va_list argp); | 417 | va_list argp); |
418 | LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...); | 418 | LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...); |