diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-02 14:09:30 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-02 14:09:30 -0200 |
commit | 8c1fb918027eea52c229907e3c3e371c7c14923a (patch) | |
tree | 8b853acd641ff9c8a8f5cc7b6c5e83cbe1d51c17 /lundump.c | |
parent | 33b366ec321646890780b96df96eacb558b82f6d (diff) | |
download | lua-8c1fb918027eea52c229907e3c3e371c7c14923a.tar.gz lua-8c1fb918027eea52c229907e3c3e371c7c14923a.tar.bz2 lua-8c1fb918027eea52c229907e3c3e371c7c14923a.zip |
macro 'incr_top' replaced by function 'luaD_inctop'. (It is not used
in critical time pathes, can save a few bytes without the macro)
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 2.42 2015/09/08 15:41:05 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 2.43 2015/09/17 15:51:05 roberto Exp roberto $ |
3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -269,7 +269,7 @@ LClosure *luaU_undump(lua_State *L, ZIO *Z, const char *name) { | |||
269 | checkHeader(&S); | 269 | checkHeader(&S); |
270 | cl = luaF_newLclosure(L, LoadByte(&S)); | 270 | cl = luaF_newLclosure(L, LoadByte(&S)); |
271 | setclLvalue(L, L->top, cl); | 271 | setclLvalue(L, L->top, cl); |
272 | incr_top(L); | 272 | luaD_inctop(L); |
273 | cl->p = luaF_newproto(L); | 273 | cl->p = luaF_newproto(L); |
274 | LoadFunction(&S, cl->p, NULL); | 274 | LoadFunction(&S, cl->p, NULL); |
275 | lua_assert(cl->nupvalues == cl->p->sizeupvalues); | 275 | lua_assert(cl->nupvalues == cl->p->sizeupvalues); |