diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-02 09:37:24 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-02 09:37:24 -0300 |
commit | 67532d5a10f9bdc8ed58c6babbce49788ae3be4d (patch) | |
tree | 21d3d9aa16c7406245d670977bde294a38ac92d1 /lobject.h | |
parent | 6920a7f2e3f8cbdb9c9d43fca720b9dd459be733 (diff) | |
download | lua-github-67532d5a10f9bdc8ed58c6babbce49788ae3be4d.tar.gz |
constant folding and API arithmetic with integers
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.74 2013/04/16 18:46:28 roberto Exp roberto $ +** $Id: lobject.h,v 2.75 2013/04/29 16:57:28 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -496,7 +496,8 @@ LUAI_DDEC const TValue luaO_nilobject_; LUAI_FUNC int luaO_int2fb (unsigned int x); LUAI_FUNC int luaO_fb2int (int x); LUAI_FUNC int luaO_ceillog2 (unsigned int x); -LUAI_FUNC lua_Number luaO_numarith (int op, lua_Number v1, lua_Number v2); +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, lua_Integer *result); LUAI_FUNC int luaO_hexavalue (int c); |