better name for source_id (short_src)
This commit is contained in:
4
ldebug.c
4
ldebug.c
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 */
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user