diff options
Diffstat (limited to '')
| -rw-r--r-- | lparser.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 1.193 2002/08/22 19:51:08 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.194 2002/08/30 19:09:21 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 | */ |
| @@ -351,9 +351,10 @@ static void close_func (LexState *ls) { | |||
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | 353 | ||
| 354 | Proto *luaY_parser (lua_State *L, ZIO *z) { | 354 | Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff) { |
| 355 | struct LexState lexstate; | 355 | struct LexState lexstate; |
| 356 | struct FuncState funcstate; | 356 | struct FuncState funcstate; |
| 357 | lexstate.buff = buff; | ||
| 357 | luaX_setinput(L, &lexstate, z, luaS_new(L, zname(z))); | 358 | luaX_setinput(L, &lexstate, z, luaS_new(L, zname(z))); |
| 358 | open_func(&lexstate, &funcstate); | 359 | open_func(&lexstate, &funcstate); |
| 359 | next(&lexstate); /* read first token */ | 360 | next(&lexstate); /* read first token */ |
