From b3d0682fb94f56a438dbb4fdb2b3440ccc10cfb4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Oct 2002 15:46:08 -0300 Subject: use of different buffers for scanner and concatenation --- lparser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index e5dc2054..1009f87b 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.193 2002/08/22 19:51:08 roberto Exp roberto $ +** $Id: lparser.c,v 1.194 2002/08/30 19:09:21 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -351,9 +351,10 @@ static void close_func (LexState *ls) { } -Proto *luaY_parser (lua_State *L, ZIO *z) { +Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff) { struct LexState lexstate; struct FuncState funcstate; + lexstate.buff = buff; luaX_setinput(L, &lexstate, z, luaS_new(L, zname(z))); open_func(&lexstate, &funcstate); next(&lexstate); /* read first token */ -- cgit v1.2.3-55-g6feb