aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-12 15:38:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-12 15:38:02 -0300
commit024ed4218f923194c97bf1c8fccba4f598296ccb (patch)
tree3b81ada7c3f3a7cf6751eae58e3445095f7c1112
parentc1f725ba4a49641b0e245e0608132baa092624b6 (diff)
downloadlua-024ed4218f923194c97bf1c8fccba4f598296ccb.tar.gz
lua-024ed4218f923194c97bf1c8fccba4f598296ccb.tar.bz2
lua-024ed4218f923194c97bf1c8fccba4f598296ccb.zip
better name for source_id (short_src)
-rw-r--r--ldebug.c4
-rw-r--r--luadebug.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/ldebug.c b/ldebug.c
index 59053ed0..dec67fdc 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.39 2000/08/31 13:29:12 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.40 2000/09/11 20:29:27 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -195,7 +195,7 @@ static void lua_funcinfo (lua_Debug *ar, StkId func) {
195 default: 195 default:
196 LUA_INTERNALERROR("invalid `func' value"); 196 LUA_INTERNALERROR("invalid `func' value");
197 } 197 }
198 luaO_chunkid(ar->source_id, ar->source, sizeof(ar->source_id)); 198 luaO_chunkid(ar->short_src, ar->source, sizeof(ar->short_src));
199 if (ar->linedefined == 0) 199 if (ar->linedefined == 0)
200 ar->what = "main"; 200 ar->what = "main";
201} 201}
diff --git a/luadebug.h b/luadebug.h
index f81496e1..c90e93b9 100644
--- a/luadebug.h
+++ b/luadebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luadebug.h,v 1.13 2000/08/28 17:57:04 roberto Exp roberto $ 2** $Id: luadebug.h,v 1.14 2000/09/11 20:29:27 roberto Exp roberto $
3** Debugging API 3** Debugging API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -37,7 +37,7 @@ struct lua_Debug {
37 int linedefined; /* (S) */ 37 int linedefined; /* (S) */
38 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ 38 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */
39 const char *source; /* (S) */ 39 const char *source; /* (S) */
40 char source_id[LUA_IDSIZE]; /* (S) */ 40 char short_src[LUA_IDSIZE]; /* (S) */
41 /* private part */ 41 /* private part */
42 struct lua_TObject *_func; /* active function */ 42 struct lua_TObject *_func; /* active function */
43}; 43};