diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-02 10:43:54 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-02 10:43:54 -0200 |
| commit | 525a91fed36866e6cb99758790df729e036582a3 (patch) | |
| tree | 2da6a479499bfa59bfb79da83cb0f35769c8e253 /lua.stx | |
| parent | 868d16dee03e82eba5ad23b6ab6f65b791e3ae94 (diff) | |
| download | lua-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.stx | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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 | ||
