From 9f7183c280f310c0d0b49b7b9c3b8eac297fafa7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 21 Apr 2023 15:29:53 -0300 Subject: Field Instruction.key put inside a union So that we can get its space for other uses, if needed. --- lpprint.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lpprint.c') diff --git a/lpprint.c b/lpprint.c index 1c1b7b6..1b5c488 100644 --- a/lpprint.c +++ b/lpprint.c @@ -62,11 +62,11 @@ void printinst (const Instruction *op, const Instruction *p) { printf("%02ld: %s ", (long)(p - op), names[p->i.code]); switch ((Opcode)p->i.code) { case IChar: { - printf("'%c' (%02x)", p->i.aux, p->i.aux); + printf("'%c' (%02x)", p->i.aux1, p->i.aux1); break; } case ITestChar: { - printf("'%c' (%02x)", p->i.aux, p->i.aux); printjmp(op, p); + printf("'%c' (%02x)", p->i.aux1, p->i.aux1); printjmp(op, p); break; } case IUTFR: { @@ -75,11 +75,11 @@ void printinst (const Instruction *op, const Instruction *p) { } case IFullCapture: { printf("%s (size = %d) (idx = %d)", - capkind(getkind(p)), getoff(p), p->i.key); + capkind(getkind(p)), getoff(p), p->i.aux2.key); break; } case IOpenCapture: { - printf("%s (idx = %d)", capkind(getkind(p)), p->i.key); + printf("%s (idx = %d)", capkind(getkind(p)), p->i.aux2.key); break; } case ISet: { @@ -99,7 +99,7 @@ void printinst (const Instruction *op, const Instruction *p) { break; } case IBehind: { - printf("%d", p->i.aux); + printf("%d", p->i.aux1); break; } case IJmp: case ICall: case ICommit: case IChoice: -- cgit v1.2.3-55-g6feb