diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.9 2004/10/04 19:04:34 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.10 2004/10/07 17:27:00 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 | */ |
@@ -284,7 +284,7 @@ static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) { | |||
284 | } | 284 | } |
285 | 285 | ||
286 | 286 | ||
287 | static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | 287 | static Instruction symbexec (const Proto *pt, int lastpc, int reg) { |
288 | int pc; | 288 | int pc; |
289 | int last; /* stores position of last instruction that changed `reg' */ | 289 | int last; /* stores position of last instruction that changed `reg' */ |
290 | last = pt->sizecode-1; /* points to final return (a `neutral' instruction) */ | 290 | last = pt->sizecode-1; /* points to final return (a `neutral' instruction) */ |
@@ -434,7 +434,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
434 | 434 | ||
435 | 435 | ||
436 | int luaG_checkcode (const Proto *pt) { | 436 | int luaG_checkcode (const Proto *pt) { |
437 | return (luaG_symbexec(pt, pt->sizecode, NO_REG) != 0); | 437 | return (symbexec(pt, pt->sizecode, NO_REG) != 0); |
438 | } | 438 | } |
439 | 439 | ||
440 | 440 | ||
@@ -454,7 +454,7 @@ static const char *getobjname (CallInfo *ci, int stackpos, const char **name) { | |||
454 | *name = luaF_getlocalname(p, stackpos+1, pc); | 454 | *name = luaF_getlocalname(p, stackpos+1, pc); |
455 | if (*name) /* is a local? */ | 455 | if (*name) /* is a local? */ |
456 | return "local"; | 456 | return "local"; |
457 | i = luaG_symbexec(p, pc, stackpos); /* try symbolic execution */ | 457 | i = symbexec(p, pc, stackpos); /* try symbolic execution */ |
458 | lua_assert(pc != -1); | 458 | lua_assert(pc != -1); |
459 | switch (GET_OPCODE(i)) { | 459 | switch (GET_OPCODE(i)) { |
460 | case OP_GETGLOBAL: { | 460 | case OP_GETGLOBAL: { |