lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 525a91fed36866e6cb99758790df729e036582a3
parent 868d16dee03e82eba5ad23b6ab6f65b791e3ae94
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  2 Dec 1997 10:43:33 -0200

BUG: "lastline" was not reset on function entry, so debug information
started only in the 2nd line of a function.

Diffstat:
Mllex.c | 3+--
Mlua.stx | 3++-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/llex.c b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.7 1997/11/19 17:35:47 roberto Exp roberto $ +** $Id: llex.c,v 1.8 1997/11/21 19:00:46 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -60,7 +60,6 @@ void luaX_setinput (ZIO *z) LexState *LS = L->lexstate; LS->current = '\n'; LS->linelasttoken = 0; - LS->lastline = 0; LS->linenumber = 0; LS->iflevel = 0; LS->ifstate[0].skip = 0; diff --git a/lua.stx b/lua.stx @@ -1,6 +1,6 @@ %{ /* -** $Id: lua.stx,v 1.18 1997/11/19 17:29:23 roberto Exp roberto $ +** $Id: lua.stx,v 1.19 1997/11/21 19:00:46 roberto Exp roberto $ ** Syntax analizer and code generator ** See Copyright Notice in lua.h */ @@ -573,6 +573,7 @@ static void init_state (TaggedString *filename) else L->currState->maxvars = -1; /* flag no debug information */ code_byte(0); /* to be filled with stacksize */ + L->lexstate->lastline = 0; /* invalidate it */ }