From 9fcc48517659c72de43bece515fdd5cea88c07f8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Aug 2003 16:51:54 -0300 Subject: zio does not keep "source" name (nobody uses it) --- lparser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 33d0344e..1eb56401 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.214 2003/07/28 18:31:20 roberto Exp roberto $ +** $Id: lparser.c,v 1.215 2003/07/29 18:51:00 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -348,12 +348,12 @@ static void close_func (LexState *ls) { } -Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff) { +Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { struct LexState lexstate; struct FuncState funcstate; lexstate.buff = buff; lexstate.nestlevel = 0; - luaX_setinput(L, &lexstate, z, luaS_new(L, zname(z))); + luaX_setinput(L, &lexstate, z, luaS_new(L, name)); open_func(&lexstate, &funcstate); next(&lexstate); /* read first token */ chunk(&lexstate); -- cgit v1.2.3-55-g6feb