aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-02 14:09:30 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-02 14:09:30 -0200
commit8c1fb918027eea52c229907e3c3e371c7c14923a (patch)
tree8b853acd641ff9c8a8f5cc7b6c5e83cbe1d51c17 /lobject.c
parent33b366ec321646890780b96df96eacb558b82f6d (diff)
downloadlua-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 'lobject.c')
-rw-r--r--lobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lobject.c b/lobject.c
index 6b80c0ed..93dba050 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.106 2015/06/26 19:32:07 roberto Exp roberto $ 2** $Id: lobject.c,v 2.107 2015/11/02 14:02:35 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -347,7 +347,7 @@ void luaO_tostring (lua_State *L, StkId obj) {
347 347
348static void pushstr (lua_State *L, const char *str, size_t l) { 348static void pushstr (lua_State *L, const char *str, size_t l) {
349 setsvalue2s(L, L->top, luaS_newlstr(L, str, l)); 349 setsvalue2s(L, L->top, luaS_newlstr(L, str, l));
350 incr_top(L); 350 luaD_inctop(L);
351} 351}
352 352
353 353
@@ -385,7 +385,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) {
385 case 'f': { 385 case 'f': {
386 setfltvalue(L->top, cast_num(va_arg(argp, l_uacNumber))); 386 setfltvalue(L->top, cast_num(va_arg(argp, l_uacNumber)));
387 top2str: 387 top2str:
388 incr_top(L); 388 luaD_inctop(L);
389 luaO_tostring(L, L->top - 1); 389 luaO_tostring(L, L->top - 1);
390 break; 390 break;
391 } 391 }