aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index 56cd417a..41ba802d 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.105 2011/02/14 14:59:28 roberto Exp roberto $ 2** $Id: lparser.c,v 2.106 2011/02/14 16:36:34 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*/
@@ -1568,7 +1568,7 @@ static void statement (LexState *ls) {
1568 1568
1569 1569
1570Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, 1570Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
1571 Dyndata *dyd, const char *name) { 1571 Dyndata *dyd, const char *name, int firstchar) {
1572 LexState lexstate; 1572 LexState lexstate;
1573 FuncState funcstate; 1573 FuncState funcstate;
1574 BlockCnt bl; 1574 BlockCnt bl;
@@ -1578,7 +1578,7 @@ Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
1578 lexstate.buff = buff; 1578 lexstate.buff = buff;
1579 lexstate.dyd = dyd; 1579 lexstate.dyd = dyd;
1580 dyd->actvar.n = dyd->gt.n = dyd->label.n = 0; 1580 dyd->actvar.n = dyd->gt.n = dyd->label.n = 0;
1581 luaX_setinput(L, &lexstate, z, tname); 1581 luaX_setinput(L, &lexstate, z, tname, firstchar);
1582 open_mainfunc(&lexstate, &funcstate, &bl); 1582 open_mainfunc(&lexstate, &funcstate, &bl);
1583 luaX_next(&lexstate); /* read first token */ 1583 luaX_next(&lexstate); /* read first token */
1584 statlist(&lexstate); /* main body */ 1584 statlist(&lexstate); /* main body */