ruby_1_9_2e$B%V%i%s%A$N%3%s%Q%$%k$G%(%i!<$,5/$-$^$9!#e(B
gcc -I. -I.ext/include/i386-netbsdelf5.99.29 -I./include -I.
-DONIG_ENC_REGISTER=rb_enc_register -fPIC -g -Wextra
-Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings
-Wno-missing-field-initializers -Wno-long-long -fPIC -pipe -o
enc/cp949.o -c ./enc/cp949.c
./enc/cp949.c:56: error: ‘A’ undeclared here (not in a function)
./enc/cp949.c:56: error: ‘F’ undeclared here (not in a function)
./enc/cp949.c:68: error: expected ‘,’ or ‘;’ before ‘}’ token
./enc/cp949.c: In function ‘cp949_mbc_enc_len’:
./enc/cp949.c:76: error: ‘state_t’ undeclared (first use in this
function)
./enc/cp949.c:76: error: (Each undeclared identifier is reported only
once
./enc/cp949.c:76: error: for each function it appears in.)
./enc/cp949.c:76: error: expected ‘;’ before ‘s’
./enc/cp949.c:80: error: ‘s’ undeclared (first use in this function)
./enc/cp949.c:80: error: ‘ACCEPT’ undeclared (first use in this
function)
./enc/cp949.c:82: error: ‘trans’ undeclared (first use in this function)
*** Error code 1
Stop.
make: stopped in /usr/local/src/ruby_1_9_2
*** Error code 1
…
e$BC1=c$J%3!<%I$NDI2C%_%9$H;W$$$^$9!#e(B
Index: enc/cp949.c
— enc/cp949.c (e$B%j%S%8%g%se(B 27668)
+++ enc/cp949.c (e$B:n6H%3%T!<e(B)
@@ -48,6 +48,8 @@
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1
};
+#define A ACCEPT
+#define F FAILURE
static const char CP949_CAN_BE_TRAIL_TABLE[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
e$B$H$3$m$G!"$3$Ne(B A e$B$H$+e(B F e$B$H$$$C$?%^%/%m$G$9$,!"e(B
% egrep ‘define[ \t]A[ \t]’ enc/*
enc/big5.c:#define A ACCEPT
enc/emacs_mule.c:#define A ACCEPT
enc/euc_jp.c:#define A ACCEPT
enc/euc_kr.c:#define A ACCEPT
enc/euc_tw.c:#define A ACCEPT
enc/gb18030.c:#define A ACCEPT
enc/gbk.c:#define A ACCEPT
enc/shift_jis.c:#define A ACCEPT
enc/utf_8.c:#define A ACCEPT
e$B$H!“F1$8$b$N$,e(B copy & paste
e$B$5$l$?$h$&$K;6:_$7$F$$$^$9!#2?$+$^$H$a$?e(B
e$BJ}$,NI$$$N$G$O$J$$$G$7$g$&$+!”:#2s$N$h$&$J8m$j$rKI$00UL#$G$b!#e(B