diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-10 13:57:53 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-10 13:57:53 -0300 |
| commit | 2258ec6bc94bc127024a49e29a0b40f58a5ae0a3 (patch) | |
| tree | b748fbe9028183c4aa4727a24cf3a50382819b6b /ltests.c | |
| parent | 2598138eced28b6ff8d4db9550a4e70c26cd4baa (diff) | |
| download | lua-2258ec6bc94bc127024a49e29a0b40f58a5ae0a3.tar.gz lua-2258ec6bc94bc127024a49e29a0b40f58a5ae0a3.tar.bz2 lua-2258ec6bc94bc127024a49e29a0b40f58a5ae0a3.zip | |
'getline' renamed to 'getfuncline' (to avoid problems with POSIX)
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 2.62 2009/04/17 22:00:01 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.63 2009/06/01 19:09:26 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -402,7 +402,7 @@ static char *buildop (Proto *p, int pc, char *buff) { | |||
| 402 | Instruction i = p->code[pc]; | 402 | Instruction i = p->code[pc]; |
| 403 | OpCode o = GET_OPCODE(i); | 403 | OpCode o = GET_OPCODE(i); |
| 404 | const char *name = luaP_opnames[o]; | 404 | const char *name = luaP_opnames[o]; |
| 405 | int line = getline(p, pc); | 405 | int line = getfuncline(p, pc); |
| 406 | sprintf(buff, "(%4d) %4d - ", line, pc); | 406 | sprintf(buff, "(%4d) %4d - ", line, pc); |
| 407 | switch (getOpMode(o)) { | 407 | switch (getOpMode(o)) { |
| 408 | case iABC: | 408 | case iABC: |
