diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
commit | 9fcc48517659c72de43bece515fdd5cea88c07f8 (patch) | |
tree | ad065ea1c7e2c0f6781e366e9a2e95b4cadb1780 /lparser.c | |
parent | 64066359dda2a0920d307e901185faf78cc32b97 (diff) | |
download | lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.gz lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.bz2 lua-9fcc48517659c72de43bece515fdd5cea88c07f8.zip |
zio does not keep "source" name (nobody uses it)
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.214 2003/07/28 18:31:20 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.215 2003/07/29 18:51:00 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -348,12 +348,12 @@ static void close_func (LexState *ls) { | |||
348 | } | 348 | } |
349 | 349 | ||
350 | 350 | ||
351 | Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff) { | 351 | Proto *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, const char *name) { |
352 | struct LexState lexstate; | 352 | struct LexState lexstate; |
353 | struct FuncState funcstate; | 353 | struct FuncState funcstate; |
354 | lexstate.buff = buff; | 354 | lexstate.buff = buff; |
355 | lexstate.nestlevel = 0; | 355 | lexstate.nestlevel = 0; |
356 | luaX_setinput(L, &lexstate, z, luaS_new(L, zname(z))); | 356 | luaX_setinput(L, &lexstate, z, luaS_new(L, name)); |
357 | open_func(&lexstate, &funcstate); | 357 | open_func(&lexstate, &funcstate); |
358 | next(&lexstate); /* read first token */ | 358 | next(&lexstate); /* read first token */ |
359 | chunk(&lexstate); | 359 | chunk(&lexstate); |