aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-26 17:58:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-26 17:58:11 -0300
commit064e406f67c0153999a5246deb1d616b06ee9bb0 (patch)
treef4483ab6ad6d55484829a0d8a27b8afa1768a36e /ltests.c
parent5c87f61e6b1567400d2bd8f452939bb948f16dda (diff)
downloadlua-064e406f67c0153999a5246deb1d616b06ee9bb0.tar.gz
lua-064e406f67c0153999a5246deb1d616b06ee9bb0.tar.bz2
lua-064e406f67c0153999a5246deb1d616b06ee9bb0.zip
no more fenvs!
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index d8c91947..15d02872 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.88 2010/03/24 13:07:01 roberto Exp roberto $ 2** $Id: ltests.c,v 2.89 2010/03/25 13:06:36 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -275,7 +275,6 @@ static void checkproto (global_State *g, Proto *f) {
275 275
276static void checkclosure (global_State *g, Closure *cl) { 276static void checkclosure (global_State *g, Closure *cl) {
277 GCObject *clgc = obj2gco(cl); 277 GCObject *clgc = obj2gco(cl);
278 checkobjref(g, clgc, cl->l.env);
279 if (cl->c.isC) { 278 if (cl->c.isC) {
280 int i; 279 int i;
281 for (i=0; i<cl->c.nupvalues; i++) 280 for (i=0; i<cl->c.nupvalues; i++)
@@ -875,7 +874,6 @@ static int getindex_aux (lua_State *L, lua_State *L1, const char **pc) {
875 switch (*(*pc)++) { 874 switch (*(*pc)++) {
876 case 'R': return LUA_REGISTRYINDEX; 875 case 'R': return LUA_REGISTRYINDEX;
877 case 'G': return luaL_error(L, "deprecated index 'G'"); 876 case 'G': return luaL_error(L, "deprecated index 'G'");
878 case 'E': return LUA_ENVIRONINDEX;
879 case 'U': return lua_upvalueindex(getnum_aux(L, L1, pc)); 877 case 'U': return lua_upvalueindex(getnum_aux(L, L1, pc));
880 default: (*pc)--; return getnum_aux(L, L1, pc); 878 default: (*pc)--; return getnum_aux(L, L1, pc);
881 } 879 }
@@ -1021,6 +1019,9 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
1021 else if EQ("gettable") { 1019 else if EQ("gettable") {
1022 lua_gettable(L1, getindex); 1020 lua_gettable(L1, getindex);
1023 } 1021 }
1022 else if EQ("getglobal") {
1023 lua_getglobal(L1, getstring);
1024 }
1024 else if EQ("getfield") { 1025 else if EQ("getfield") {
1025 int t = getindex; 1026 int t = getindex;
1026 lua_getfield(L1, t, getstring); 1027 lua_getfield(L1, t, getstring);
@@ -1036,6 +1037,9 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
1036 else if EQ("settable") { 1037 else if EQ("settable") {
1037 lua_settable(L1, getindex); 1038 lua_settable(L1, getindex);
1038 } 1039 }
1040 else if EQ("setglobal") {
1041 lua_setglobal(L1, getstring);
1042 }
1039 else if EQ("next") { 1043 else if EQ("next") {
1040 lua_next(L1, -2); 1044 lua_next(L1, -2);
1041 } 1045 }