summaryrefslogtreecommitdiff
path: root/src/ccl.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-10-12 12:00:44 +0000
committerKenichi Handa <handa@m17n.org>1998-10-12 12:00:44 +0000
commit51520e8a2e1bcf3d81c8ab7d47546fbcfeb91b01 (patch)
treefe36a228c2cf758e0880088b5325ae1ac06e6962 /src/ccl.c
parent020da460989f99035044aad5d97166139af57c1f (diff)
downloademacs-51520e8a2e1bcf3d81c8ab7d47546fbcfeb91b01.tar.gz
(CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
Diffstat (limited to 'src/ccl.c')
-rw-r--r--src/ccl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ccl.c b/src/ccl.c
index c724405e16c..2778aa54a29 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -627,10 +627,10 @@ static tr_stack *mapping_stack_pointer;
#define CCL_GE 0x14 /* X = (X >= Y) */
#define CCL_NE 0x15 /* X = (X != Y) */
-#define CCL_ENCODE_SJIS 0x16 /* X = HIGHER_BYTE (SJIS (Y, Z))
- r[7] = LOWER_BYTE (SJIS (Y, Z) */
-#define CCL_DECODE_SJIS 0x17 /* X = HIGHER_BYTE (DE-SJIS (Y, Z))
+#define CCL_DECODE_SJIS 0x16 /* X = HIGHER_BYTE (DE-SJIS (Y, Z))
r[7] = LOWER_BYTE (DE-SJIS (Y, Z)) */
+#define CCL_ENCODE_SJIS 0x17 /* X = HIGHER_BYTE (SJIS (Y, Z))
+ r[7] = LOWER_BYTE (SJIS (Y, Z) */
/* Terminate CCL program successfully. */
#define CCL_SUCCESS \
@@ -1073,8 +1073,8 @@ ccl_driver (ccl, source, destination, src_bytes, dst_bytes, consumed)
case CCL_LE: reg[rrr] = i <= j; break;
case CCL_GE: reg[rrr] = i >= j; break;
case CCL_NE: reg[rrr] = i != j; break;
- case CCL_ENCODE_SJIS: ENCODE_SJIS (i, j, reg[rrr], reg[7]); break;
case CCL_DECODE_SJIS: DECODE_SJIS (i, j, reg[rrr], reg[7]); break;
+ case CCL_ENCODE_SJIS: ENCODE_SJIS (i, j, reg[rrr], reg[7]); break;
default: CCL_INVALID_CMD;
}
code &= 0x1F;