better name for source_id (short_src)

This commit is contained in:
Roberto Ierusalimschy
2000-09-12 15:38:02 -03:00
parent c1f725ba4a
commit 024ed4218f
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/* /*
** $Id: ldebug.c,v 1.39 2000/08/31 13:29:12 roberto Exp roberto $ ** $Id: ldebug.c,v 1.40 2000/09/11 20:29:27 roberto Exp roberto $
** Debug Interface ** Debug Interface
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@@ -195,7 +195,7 @@ static void lua_funcinfo (lua_Debug *ar, StkId func) {
default: default:
LUA_INTERNALERROR("invalid `func' value"); LUA_INTERNALERROR("invalid `func' value");
} }
luaO_chunkid(ar->source_id, ar->source, sizeof(ar->source_id)); luaO_chunkid(ar->short_src, ar->source, sizeof(ar->short_src));
if (ar->linedefined == 0) if (ar->linedefined == 0)
ar->what = "main"; ar->what = "main";
} }

View File

@@ -1,5 +1,5 @@
/* /*
** $Id: luadebug.h,v 1.13 2000/08/28 17:57:04 roberto Exp roberto $ ** $Id: luadebug.h,v 1.14 2000/09/11 20:29:27 roberto Exp roberto $
** Debugging API ** Debugging API
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@@ -37,7 +37,7 @@ struct lua_Debug {
int linedefined; /* (S) */ int linedefined; /* (S) */
const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ const char *what; /* (S) `Lua' function, `C' function, Lua `main' */
const char *source; /* (S) */ const char *source; /* (S) */
char source_id[LUA_IDSIZE]; /* (S) */ char short_src[LUA_IDSIZE]; /* (S) */
/* private part */ /* private part */
struct lua_TObject *_func; /* active function */ struct lua_TObject *_func; /* active function */
}; };