diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-05-22 09:02:36 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-05-22 09:02:36 -0300 |
commit | 02ed0b2c300e9db643454743a26537756dc90b67 (patch) | |
tree | 18aff13e3f254083772e240935054e6a64cbb999 /ldo.h | |
parent | de53c2ec7ed5115ec78dd0c497d62dadb7eb2161 (diff) | |
download | lua-02ed0b2c300e9db643454743a26537756dc90b67.tar.gz lua-02ed0b2c300e9db643454743a26537756dc90b67.tar.bz2 lua-02ed0b2c300e9db643454743a26537756dc90b67.zip |
in 'luaD_poscall', there is no need to compute 'firstResult' when 'nres==0'
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.h,v 2.42 2018/02/15 15:34:29 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 2.43 2018/02/17 19:29:29 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -61,8 +61,7 @@ LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults); | |||
61 | LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func); | 61 | LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func); |
62 | LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, | 62 | LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, |
63 | ptrdiff_t oldtop, ptrdiff_t ef); | 63 | ptrdiff_t oldtop, ptrdiff_t ef); |
64 | LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, | 64 | LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres); |
65 | int nres); | ||
66 | LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror); | 65 | LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror); |
67 | LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); | 66 | LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); |
68 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); | 67 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); |