summaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-22 16:51:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-22 16:51:08 -0300
commitc78aaa9a70cabf53c0386077e253eac48f45b71f (patch)
treeac79df01fcbe093167451e5bb2d984aa5c498ab2 /lparser.c
parent4d7a554921a56e280fb21f6af2bd62c19f6f4b81 (diff)
downloadlua-c78aaa9a70cabf53c0386077e253eac48f45b71f.tar.gz
lua-c78aaa9a70cabf53c0386077e253eac48f45b71f.tar.bz2
lua-c78aaa9a70cabf53c0386077e253eac48f45b71f.zip
better line number for function definitions
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lparser.c b/lparser.c
index 8a82db68..3331d673 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.191 2002/08/05 17:35:45 roberto Exp roberto $ 2** $Id: lparser.c,v 1.192 2002/08/20 20:03:05 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1137,6 +1137,7 @@ static void funcstat (LexState *ls, int line) {
1137 needself = funcname(ls, &v); 1137 needself = funcname(ls, &v);
1138 body(ls, &b, needself, line); 1138 body(ls, &b, needself, line);
1139 luaK_storevar(ls->fs, &v, &b); 1139 luaK_storevar(ls->fs, &v, &b);
1140 luaK_fixline(ls->fs, line); /* definition `happens' in the first line */
1140} 1141}
1141 1142
1142 1143