diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-01-26 14:30:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-01-26 14:30:02 -0200 |
commit | c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9 (patch) | |
tree | 06ed5143f5724be72981ad6303d24c7f09e1cb46 /ldebug.c | |
parent | 7106c491dddbfc7b9986c3c91214acd56b066d7f (diff) | |
download | lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.gz lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.bz2 lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.zip |
detail (cleaning trailing spaces)
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |