changeset 23428:49c7e979c16c

(CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
author Kenichi Handa <handa@m17n.org>
date Mon, 12 Oct 1998 12:00:44 +0000
parents 4acd4faa545a
children a3b20bea408f
files src/ccl.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ccl.c	Mon Oct 12 12:00:44 1998 +0000
+++ b/src/ccl.c	Mon Oct 12 12:00:44 1998 +0000
@@ -627,10 +627,10 @@
 #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))
+#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) */
-#define CCL_DECODE_SJIS 0x17	/* X = HIGHER_BYTE (DE-SJIS (Y, Z))
-				   r[7] = LOWER_BYTE (DE-SJIS (Y, Z)) */
 
 /* Terminate CCL program successfully.  */
 #define CCL_SUCCESS		   	\
@@ -1073,8 +1073,8 @@
 	    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_DECODE_SJIS: DECODE_SJIS (i, j, reg[rrr], reg[7]); 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;
 	    default: CCL_INVALID_CMD;
 	    }
 	  code &= 0x1F;