diff options
Diffstat (limited to 'lua.stx')
-rw-r--r-- | lua.stx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ | |||
1 | %{ | 1 | %{ |
2 | /* | 2 | /* |
3 | ** $Id: lua.stx,v 1.23 1997/12/15 16:17:20 roberto Exp roberto $ | 3 | ** $Id: lua.stx,v 1.24 1997/12/22 17:24:11 roberto Exp roberto $ |
4 | ** Syntax analizer and code generator | 4 | ** Syntax analizer and code generator |
5 | ** See Copyright Notice in lua.h | 5 | ** See Copyright Notice in lua.h |
6 | */ | 6 | */ |
@@ -619,14 +619,14 @@ static TProtoFunc *close_func (void) | |||
619 | /* | 619 | /* |
620 | ** Parse Lua code. | 620 | ** Parse Lua code. |
621 | */ | 621 | */ |
622 | TProtoFunc *luaY_parser (ZIO *z, char *chunkname) | 622 | TProtoFunc *luaY_parser (ZIO *z) |
623 | { | 623 | { |
624 | struct LexState lexstate; | 624 | struct LexState lexstate; |
625 | FuncState state[MAXSTATES]; | 625 | FuncState state[MAXSTATES]; |
626 | L->currState = L->mainState = &state[0]; | 626 | L->currState = L->mainState = &state[0]; |
627 | L->lexstate = &lexstate; | 627 | L->lexstate = &lexstate; |
628 | luaX_setinput(z); | 628 | luaX_setinput(z); |
629 | init_state(luaS_new(chunkname)); | 629 | init_state(luaS_new(zname(z))); |
630 | if (luaY_parse()) lua_error("parse error"); | 630 | if (luaY_parse()) lua_error("parse error"); |
631 | return close_func(); | 631 | return close_func(); |
632 | } | 632 | } |