diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-27 08:35:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-27 08:35:31 -0300 |
commit | b42430fd3a6200eaaf4020be90c4d47f7e251b67 (patch) | |
tree | c47c23ac9d461b79554986769375019dc6dc469c /ltests.c | |
parent | 60a7492d249860d20098ac2f0b9d863606c38450 (diff) | |
download | lua-b42430fd3a6200eaaf4020be90c4d47f7e251b67.tar.gz lua-b42430fd3a6200eaaf4020be90c4d47f7e251b67.tar.bz2 lua-b42430fd3a6200eaaf4020be90c4d47f7e251b67.zip |
'lineinfo' in prototypes saved as differences instead of absolute
values, so that the array can use bytes instead of ints, reducing
its size. (A new array 'abslineinfo' is used when line differences
do not fit in a byte.)
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.219 2017/06/09 16:48:44 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.220 2017/06/12 14:21:44 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 | */ |
@@ -537,7 +537,7 @@ static char *buildop (Proto *p, int pc, char *buff) { | |||
537 | Instruction i = p->code[pc]; | 537 | Instruction i = p->code[pc]; |
538 | OpCode o = GET_OPCODE(i); | 538 | OpCode o = GET_OPCODE(i); |
539 | const char *name = luaP_opnames[o]; | 539 | const char *name = luaP_opnames[o]; |
540 | int line = getfuncline(p, pc); | 540 | int line = luaG_getfuncline(p, pc); |
541 | sprintf(buff, "(%4d) %4d - ", line, pc); | 541 | sprintf(buff, "(%4d) %4d - ", line, pc); |
542 | switch (getOpMode(o)) { | 542 | switch (getOpMode(o)) { |
543 | case iABC: | 543 | case iABC: |