** E-Mail: furukawa@tcp-ip.or.jp
** \e$B$^$G8fO"Mm$r$*4j$$$7$^$9!#\e(B
***********************************************************************/
-/* $Id: nkf.c,v 1.75 2005/07/21 05:55:59 naruse Exp $ */
+/* $Id: nkf.c,v 1.76 2005/07/21 06:45:53 naruse Exp $ */
#define NKF_VERSION "2.0.5"
#define NKF_RELEASE_DATE "2005-07-22"
#include "config.h"
#endif
#ifdef SHIFTJIS_CP932
if (cp932_f && CP932_TABLE_BEGIN <= c2 && c2 <= CP932_TABLE_END){
- extern unsigned short shiftjis_cp932[3][189];
+ extern const unsigned short shiftjis_cp932[3][189];
val = shiftjis_cp932[c2 - CP932_TABLE_BEGIN][c1 - 0x40];
if (val){
c2 = val >> 8;
#endif /* SHIFTJIS_CP932 */
#ifdef X0212_ENABLE
if (x0212_f && 0xfa <= c2 && c2 <= 0xfc){
- extern unsigned short shiftjis_x0212[3][189];
+ extern const unsigned short shiftjis_x0212[3][189];
val = shiftjis_x0212[c2 - 0xfa][c1 - 0x40];
if (val){
if (val & 0x8000){
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0x00A9, 0x2122,
};
-const unsigned short * euc_to_utf8_2bytes[] = {
+const unsigned short *const euc_to_utf8_2bytes[] = {
euc_to_utf8_A1, euc_to_utf8_A2, euc_to_utf8_A3,
euc_to_utf8_A4, euc_to_utf8_A5, euc_to_utf8_A6, euc_to_utf8_A7,
euc_to_utf8_A8, euc_to_utf8_A9, euc_to_utf8_AA, euc_to_utf8_AB,
euc_to_utf8_FC, 0, 0,
};
/* Microsoft UCS Mapping Compatible */
-const unsigned short * euc_to_utf8_2bytes_ms[] = {
+const unsigned short *const euc_to_utf8_2bytes_ms[] = {
euc_to_utf8_A1_ms, euc_to_utf8_A2_ms, euc_to_utf8_A3,
euc_to_utf8_A4, euc_to_utf8_A5, euc_to_utf8_A6, euc_to_utf8_A7,
euc_to_utf8_A8, euc_to_utf8_A9, euc_to_utf8_AA, euc_to_utf8_AB,
};
#ifdef X0212_ENABLE
-const unsigned short * x0212_to_utf8_2bytes[] = {
+const unsigned short *const x0212_to_utf8_2bytes[] = {
0, euc_to_utf8_8FA2, 0,
0, 0, euc_to_utf8_8FA6, euc_to_utf8_8FA7,
0, euc_to_utf8_8FA9, euc_to_utf8_8FAA, euc_to_utf8_8FAB,