From: Takahiro Kambe Date: 2010-05-08T13:23:32+09:00 Subject: [ruby-dev:41220] Re: [ruby_1_9_2] コンパイルエラー In message <20100508.132235.138674172.taca@back-street.net> on Sat, 8 May 2010 13:22:22 +0900, Takahiro Kambe wrote: > 単純なコードの追加ミスと思います。 > > Index: enc/cp949.c > =================================================================== > --- enc/cp949.c (リビジョン 27668) > +++ enc/cp949.c (作業コピー) > @@ -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, あ、これだけではダメでした、何か足りない。;-( 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:58: error: 'ACCEPT' undeclared here (not in a function) ./enc/cp949.c:58: error: 'FAILURE' undeclared here (not in a function) ./enc/cp949.c:70: error: expected ',' or ';' before '}' token -- 神戸 隆博 / Takahiro Kambe