aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-01-26 14:30:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-01-26 14:30:02 -0200
commitc4ea0c3b29252bcafeadf2f69532bdb67ab20bb9 (patch)
tree06ed5143f5724be72981ad6303d24c7f09e1cb46 /ldebug.c
parent7106c491dddbfc7b9986c3c91214acd56b066d7f (diff)
downloadlua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.gz
lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.bz2
lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.zip
detail (cleaning trailing spaces)
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index cd506ac2..d473de7c 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.74 2010/10/11 20:24:42 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.75 2010/11/30 17:17:51 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*/
@@ -325,7 +325,7 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg,
325 if (reg == a) { 325 if (reg == a) {
326 int k = GETARG_C(i); /* key index */ 326 int k = GETARG_C(i); /* key index */
327 int t = GETARG_B(i); 327 int t = GETARG_B(i);
328 const char *vn = (op == OP_GETTABLE) /* name of indexed variable */ 328 const char *vn = (op == OP_GETTABLE) /* name of indexed variable */
329 ? luaF_getlocalname(p, t + 1, pc) 329 ? luaF_getlocalname(p, t + 1, pc)
330 : getstr(p->upvalues[t].name); 330 : getstr(p->upvalues[t].name);
331 kname(p, k, a, what, name); 331 kname(p, k, a, what, name);
@@ -468,7 +468,7 @@ void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
468 const char *kind = NULL; 468 const char *kind = NULL;
469 if (isLua(ci)) { 469 if (isLua(ci)) {
470 kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */ 470 kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */
471 if (!kind && isinstack(ci, o)) /* no? try a register */ 471 if (!kind && isinstack(ci, o)) /* no? try a register */
472 kind = getobjname(L, ci, cast_int(o - ci->u.l.base), &name); 472 kind = getobjname(L, ci, cast_int(o - ci->u.l.base), &name);
473 } 473 }
474 if (kind) 474 if (kind)