diff options
Diffstat (limited to '')
| -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); |
