BUG: "lastline" was not reset on function entry, so debug information

started only in the 2nd line of a function.
This commit is contained in:
Roberto Ierusalimschy
1997-12-02 10:43:54 -02:00
parent 868d16dee0
commit 525a91fed3
2 changed files with 3 additions and 3 deletions

View File

@@ -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 */
}