diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-15 13:34:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-15 13:34:29 -0200 |
commit | 0682fe816929da2e5abe8e191ad9c8509e6bfc12 (patch) | |
tree | bac8b079fde63e7f2e436e51ed6fd571dfd6f195 /ldo.h | |
parent | b1379936cf35787d3ef3aab82d1607a3e1562eef (diff) | |
download | lua-0682fe816929da2e5abe8e191ad9c8509e6bfc12.tar.gz lua-0682fe816929da2e5abe8e191ad9c8509e6bfc12.tar.bz2 lua-0682fe816929da2e5abe8e191ad9c8509e6bfc12.zip |
some simplifications/optimizations in returns from Lua functions
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.h,v 2.40 2018/02/06 19:16:56 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 2.41 2018/02/09 15:16:06 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 | */ |
@@ -62,10 +62,7 @@ LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, | |||
62 | ptrdiff_t oldtop, ptrdiff_t ef); | 62 | ptrdiff_t oldtop, ptrdiff_t ef); |
63 | LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, | 63 | LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, |
64 | int nres); | 64 | int nres); |
65 | LUAI_FUNC void luaD_rethook (lua_State *L, CallInfo *ci); | ||
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 void luaD_moveresults (lua_State *L, StkId firstResult, StkId res, | ||
68 | int nres, int wanted); | ||
69 | 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); |
70 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); | 67 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); |
71 | LUAI_FUNC void luaD_inctop (lua_State *L); | 68 | LUAI_FUNC void luaD_inctop (lua_State *L); |