comparison src/mule-ccl.c @ 2830:d7505a1267a4

[xemacs-hg @ 2005-06-26 19:05:05 by aidan] Couple of build fixes--that'll teach me to spend the weekend doing something other than hacking XEmacs.
author aidan
date Sun, 26 Jun 2005 19:05:07 +0000
parents 714b354cef67
children d1754e7f0cea
comparison
equal deleted inserted replaced
2829:714b354cef67 2830:d7505a1267a4
824 else \ 824 else \
825 CCL_SUSPEND (CCL_STAT_SUSPEND_BY_SRC); \ 825 CCL_SUSPEND (CCL_STAT_SUSPEND_BY_SRC); \
826 } \ 826 } \
827 } while (0) 827 } while (0)
828 828
829 #define POSSIBLE_LEADING_BYTE_P(lb) \ 829 #define POSSIBLE_LEADING_BYTE_P(leading_byte) \
830 ((leading_byte > MIN_LEADING_BYTE) && \ 830 ((leading_byte > MIN_LEADING_BYTE) && \
831 (leading_byte - MIN_LEADING_BYTE) < NUM_LEADING_BYTES) 831 (leading_byte - MIN_LEADING_BYTE) < NUM_LEADING_BYTES)
832 832
833 /* Set C to the character code made from CHARSET and CODE. This is 833 /* Set C to the character code made from CHARSET and CODE. This is
834 like make_ichar but check the validity of CHARSET and CODE. If they 834 like make_ichar but check the validity of CHARSET and CODE. If they
1365 if (i == LEADING_BYTE_ASCII) 1365 if (i == LEADING_BYTE_ASCII)
1366 i = reg[rrr] & 0xFF; 1366 i = reg[rrr] & 0xFF;
1367 else if (LEADING_BYTE_CONTROL_1 == i) 1367 else if (LEADING_BYTE_CONTROL_1 == i)
1368 i = ((reg[rrr] & 0xFF) - 0xA0); 1368 i = ((reg[rrr] & 0xFF) - 0xA0);
1369 else if (POSSIBLE_LEADING_BYTE_P(i) && 1369 else if (POSSIBLE_LEADING_BYTE_P(i) &&
1370 !NILP(charset_by_leading_byte(i)) 1370 !NILP(charset_by_leading_byte(i)))
1371 { 1371 {
1372 if (XCHARSET_DIMENSION (charset_by_leading_byte (i)) == 1) 1372 if (XCHARSET_DIMENSION (charset_by_leading_byte (i)) == 1)
1373 i = (((i - FIELD2_TO_OFFICIAL_LEADING_BYTE) << 7) 1373 i = (((i - FIELD2_TO_OFFICIAL_LEADING_BYTE) << 7)
1374 | (reg[rrr] & 0x7F)); 1374 | (reg[rrr] & 0x7F));
1375 else if (i < MAX_LEADING_BYTE_OFFICIAL_2) 1375 else if (i < MAX_LEADING_BYTE_OFFICIAL_2)