aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-05-22 09:02:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-05-22 09:02:36 -0300
commit02ed0b2c300e9db643454743a26537756dc90b67 (patch)
tree18aff13e3f254083772e240935054e6a64cbb999 /ldo.h
parentde53c2ec7ed5115ec78dd0c497d62dadb7eb2161 (diff)
downloadlua-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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldo.h b/ldo.h
index 1fdc75be..a3ac6f50 100644
--- a/ldo.h
+++ b/ldo.h
@@ -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);
61LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func); 61LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func);
62LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, 62LUAI_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);
64LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, 64LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres);
65 int nres);
66LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror); 65LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror);
67LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); 66LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror);
68LUAI_FUNC void luaD_shrinkstack (lua_State *L); 67LUAI_FUNC void luaD_shrinkstack (lua_State *L);