aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lapi.c b/lapi.c
index 05640ef9..0fcb6eaa 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.192 2013/12/30 20:47:58 roberto Exp roberto $ 2** $Id: lapi.c,v 2.193 2014/01/27 13:34:32 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -589,7 +589,6 @@ LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
589 while (n--) { 589 while (n--) {
590 setobj2n(L, &cl->c.upvalue[n], L->top + n); 590 setobj2n(L, &cl->c.upvalue[n], L->top + n);
591 /* does not need barrier because closure is white */ 591 /* does not need barrier because closure is white */
592 valnolocal(L->top + n); /* but needs 'local barrier' */
593 } 592 }
594 setclCvalue(L, L->top, cl); 593 setclCvalue(L, L->top, cl);
595 } 594 }
@@ -864,7 +863,6 @@ LUA_API int lua_setmetatable (lua_State *L, int objindex) {
864 } 863 }
865 default: { 864 default: {
866 G(L)->mt[ttnov(obj)] = mt; 865 G(L)->mt[ttnov(obj)] = mt;
867 if (mt) nolocal(obj2gco(mt));
868 break; 866 break;
869 } 867 }
870 } 868 }
@@ -1086,11 +1084,6 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
1086 g->gcpause = data; 1084 g->gcpause = data;
1087 break; 1085 break;
1088 } 1086 }
1089 case LUA_GCSETLOCALPAUSE: {
1090 res = g->gclocalpause;
1091 g->gclocalpause = data;
1092 break;
1093 }
1094 case LUA_GCSETSTEPMUL: { 1087 case LUA_GCSETSTEPMUL: {
1095 res = g->gcstepmul; 1088 res = g->gcstepmul;
1096 g->gcstepmul = data; 1089 g->gcstepmul = data;