aboutsummaryrefslogtreecommitdiff
path: root/lua.stx
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-02 10:43:54 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-02 10:43:54 -0200
commit525a91fed36866e6cb99758790df729e036582a3 (patch)
tree2da6a479499bfa59bfb79da83cb0f35769c8e253 /lua.stx
parent868d16dee03e82eba5ad23b6ab6f65b791e3ae94 (diff)
downloadlua-525a91fed36866e6cb99758790df729e036582a3.tar.gz
lua-525a91fed36866e6cb99758790df729e036582a3.tar.bz2
lua-525a91fed36866e6cb99758790df729e036582a3.zip
BUG: "lastline" was not reset on function entry, so debug information
started only in the 2nd line of a function.
Diffstat (limited to 'lua.stx')
-rw-r--r--lua.stx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua.stx b/lua.stx
index 0aa36635..b1afe6b4 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2/* 2/*
3** $Id: lua.stx,v 1.18 1997/11/19 17:29:23 roberto Exp roberto $ 3** $Id: lua.stx,v 1.19 1997/11/21 19:00:46 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*/
@@ -573,6 +573,7 @@ static void init_state (TaggedString *filename)
573 else 573 else
574 L->currState->maxvars = -1; /* flag no debug information */ 574 L->currState->maxvars = -1; /* flag no debug information */
575 code_byte(0); /* to be filled with stacksize */ 575 code_byte(0); /* to be filled with stacksize */
576 L->lexstate->lastline = 0; /* invalidate it */
576} 577}
577 578
578 579