aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldo.c5
-rw-r--r--lparser.c14
2 files changed, 2 insertions, 17 deletions
diff --git a/ldo.c b/ldo.c
index 9c5f7f3a..93e2aa0a 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 1.217 2003/04/03 13:35:34 roberto Exp roberto $ 2** $Id: ldo.c,v 1.218 2003/05/13 19:22:19 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*/
@@ -269,9 +269,6 @@ StkId luaD_precall (lua_State *L, StkId func) {
269 if (L->hookmask & LUA_MASKCALL) 269 if (L->hookmask & LUA_MASKCALL)
270 luaD_callhook(L, LUA_HOOKCALL, -1); 270 luaD_callhook(L, LUA_HOOKCALL, -1);
271 lua_unlock(L); 271 lua_unlock(L);
272#ifdef LUA_COMPATUPVALUES
273 lua_pushupvalues(L);
274#endif
275 n = (*clvalue(L->base - 1)->c.f)(L); /* do the actual call */ 272 n = (*clvalue(L->base - 1)->c.f)(L); /* do the actual call */
276 lua_lock(L); 273 lua_lock(L);
277 return L->top - n; 274 return L->top - n;
diff --git a/lparser.c b/lparser.c
index cc491888..fb1c8ad3 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.209 2003/05/13 20:15:59 roberto Exp roberto $ 2** $Id: lparser.c,v 1.210 2003/05/14 12:32:46 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -651,18 +651,6 @@ static void prefixexp (LexState *ls, expdesc *v) {
651 singlevar(ls, v, 1); 651 singlevar(ls, v, 1);
652 return; 652 return;
653 } 653 }
654#ifdef LUA_COMPATUPSYNTAX
655 case '%': { /* for compatibility only */
656 TString *varname;
657 int line = ls->linenumber;
658 next(ls); /* skip `%' */
659 varname = singlevar(ls, v, 1);
660 if (v->k != VUPVAL)
661 luaX_errorline(ls, "global upvalues are obsolete",
662 getstr(varname), line);
663 return;
664 }
665#endif
666 default: { 654 default: {
667 luaX_syntaxerror(ls, "unexpected symbol"); 655 luaX_syntaxerror(ls, "unexpected symbol");
668 return; 656 return;