lua

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

commit c78aaa9a70cabf53c0386077e253eac48f45b71f
parent 4d7a554921a56e280fb21f6af2bd62c19f6f4b81
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 22 Aug 2002 16:50:46 -0300

better line number for function definitions

Diffstat:
Mlparser.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lparser.c b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.191 2002/08/05 17:35:45 roberto Exp roberto $ +** $Id: lparser.c,v 1.192 2002/08/20 20:03:05 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -1137,6 +1137,7 @@ static void funcstat (LexState *ls, int line) { needself = funcname(ls, &v); body(ls, &b, needself, line); luaK_storevar(ls->fs, &v, &b); + luaK_fixline(ls->fs, line); /* definition `happens' in the first line */ }