"zio" now keeps its "name".

This commit is contained in:
Roberto Ierusalimschy
1997-12-22 18:57:18 -02:00
parent a78eecee48
commit 03f3f9e707
5 changed files with 32 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
%{
/*
** $Id: lua.stx,v 1.23 1997/12/15 16:17:20 roberto Exp roberto $
** $Id: lua.stx,v 1.24 1997/12/22 17:24:11 roberto Exp roberto $
** Syntax analizer and code generator
** See Copyright Notice in lua.h
*/
@@ -619,14 +619,14 @@ static TProtoFunc *close_func (void)
/*
** Parse Lua code.
*/
TProtoFunc *luaY_parser (ZIO *z, char *chunkname)
TProtoFunc *luaY_parser (ZIO *z)
{
struct LexState lexstate;
FuncState state[MAXSTATES];
L->currState = L->mainState = &state[0];
L->lexstate = &lexstate;
luaX_setinput(z);
init_state(luaS_new(chunkname));
init_state(luaS_new(zname(z)));
if (luaY_parse()) lua_error("parse error");
return close_func();
}