Showing the changes to src/lparser.c (1 of 45 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** $Id: lparser.c,v 2.138 2013/12/30 20:47:58 roberto Exp $ | |
| 2 | +** $Id: lparser.c,v 2.139 2014/06/19 18:27:20 roberto Exp $ | |
| 3 | 3 | ** Lua Parser |
| 4 | 4 | ** See Copyright Notice in lua.h |
| 5 | 5 | */ |
| @@ -1618,17 +1618,17 @@ static void mainfunc (LexState *ls, FuncState *fs) { · 1612 unmodified lines | ||
| 1618 | 1618 | } |
| 1619 | 1619 | |
| 1620 | 1620 | |
| 1621 | −Closure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, | |
| 1622 | − Dyndata *dyd, const char *name, int firstchar) { | |
| 1621 | +LClosure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, | |
| 1622 | + Dyndata *dyd, const char *name, int firstchar) { | |
| 1623 | 1623 | LexState lexstate; |
| 1624 | 1624 | FuncState funcstate; |
| 1625 | − Closure *cl = luaF_newLclosure(L, 1); /* create main closure */ | |
| 1625 | + LClosure *cl = luaF_newLclosure(L, 1); /* create main closure */ | |
| 1626 | 1626 | setclLvalue(L, L->top, cl); /* anchor it (to avoid being collected) */ |
| 1627 | 1627 | incr_top(L); |
| 1628 | 1628 | lexstate.h = luaH_new(L); /* create table for scanner */ |
| 1629 | 1629 | sethvalue(L, L->top, lexstate.h); /* anchor it */ |
| 1630 | 1630 | incr_top(L); |
| 1631 | − funcstate.f = cl->l.p = luaF_newproto(L); | |
| 1631 | + funcstate.f = cl->p = luaF_newproto(L); | |
| 1632 | 1632 | funcstate.f->source = luaS_new(L, name); /* create and anchor TString */ |
| 1633 | 1633 | luaC_objbarrier(L, funcstate.f, funcstate.f->source); |
| 1634 | 1634 | lexstate.buff = buff; |