diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-22 18:57:18 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-22 18:57:18 -0200 |
commit | 03f3f9e707ceaf46efb4917f8d32ea62283b9358 (patch) | |
tree | cdf8e8d255fc95e09b94521dff35cd4f0f57d1e6 /lua.stx | |
parent | a78eecee48c725549316629b9a8d936c990b65de (diff) | |
download | lua-03f3f9e707ceaf46efb4917f8d32ea62283b9358.tar.gz lua-03f3f9e707ceaf46efb4917f8d32ea62283b9358.tar.bz2 lua-03f3f9e707ceaf46efb4917f8d32ea62283b9358.zip |
"zio" now keeps its "name".
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 | } |