diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-14 12:59:04 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-14 12:59:04 -0300 |
commit | 36e8771076705d33261a88a3c144967b1840671a (patch) | |
tree | b2c2c7b5fd8487227d9629e7507d91cd1d15a834 /lobject.h | |
parent | 27f09415e38b00f16013649d3d91c430a6cc33ff (diff) | |
download | lua-36e8771076705d33261a88a3c144967b1840671a.tar.gz lua-36e8771076705d33261a88a3c144967b1840671a.tar.bz2 lua-36e8771076705d33261a88a3c144967b1840671a.zip |
'luaO_str2int' more generic: accepts white spaces around the numeral
and handles signal
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.76 2013/05/02 12:37:24 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.77 2013/05/06 17:17:09 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 | */ |
@@ -496,7 +496,7 @@ LUAI_FUNC int luaO_ceillog2 (unsigned int x); | |||
496 | LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, | 496 | LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, |
497 | const TValue *p2, TValue *res); | 497 | const TValue *p2, TValue *res); |
498 | LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); | 498 | LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); |
499 | LUAI_FUNC int luaO_str2int (const char *s, lua_Integer *result); | 499 | LUAI_FUNC int luaO_str2int (const char *s, size_t len, lua_Integer *result); |
500 | LUAI_FUNC int luaO_hexavalue (int c); | 500 | LUAI_FUNC int luaO_hexavalue (int c); |
501 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, | 501 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, |
502 | va_list argp); | 502 | va_list argp); |