ops.h: rename OP_LOADT/OP_LOADF to OP_LOADTRUE/OP_LOADFALSE

Rename boolean load opcodes for consistency with LOADNIL/LOADSELF.
Backward compatibility aliases are provided in opcode.h.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-01-23 21:51:01 +09:00
parent 60d981dbc8
commit a1567be5da
6 changed files with 30 additions and 26 deletions
+4 -4
View File
@@ -236,12 +236,12 @@ codedump(mrb_state *mrb, const mrb_irep *irep, FILE *out)
fprintf(out, "LOADSELF\tR%d\t(R0)", a);
print_lv_a(mrb, irep, a, out);
break;
CASE(OP_LOADT, B):
fprintf(out, "LOADT\t\tR%d\t(true)", a);
CASE(OP_LOADTRUE, B):
fprintf(out, "LOADTRUE\tR%d\t(true)", a);
print_lv_a(mrb, irep, a, out);
break;
CASE(OP_LOADF, B):
fprintf(out, "LOADF\t\tR%d\t(false)", a);
CASE(OP_LOADFALSE, B):
fprintf(out, "LOADFALSE\tR%d\t(false)", a);
print_lv_a(mrb, irep, a, out);
break;
CASE(OP_GETGV, BB):