diff --git a/ChangeLog b/ChangeLog index 2621bc8f55..15d07fc2e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Mar 5 10:10:40 2009 Nobuyoshi Nakada + + * include/ruby/encoding.h (enc_initialized_p): ENC_UNINITIALIZED + is not defined already. + + * include/ruby/encoding.h (ENC_FROM_ENCINDEX): removed because + depending on a static variable. + Thu Mar 5 04:42:52 2009 Yusuke Endoh * test/ruby/test_array.rb: fix wrong test, and add a test for diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 6a808a58cb..b28ddc9a7f 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -184,13 +184,10 @@ VALUE rb_locale_charmap(VALUE klass); long rb_memsearch(const void*,long,const void*,long,rb_encoding*); RUBY_EXTERN VALUE rb_cEncoding; -#define enc_initialized_p(enc) ((enc)->ruby_encoding_index != ENC_UNINITIALIZED) #define ENC_DUMMY_FLAG (1<<24) #define ENC_INDEX_MASK (~(~0U<<24)) #define ENC_TO_ENCINDEX(enc) ((enc)->ruby_encoding_index & ENC_INDEX_MASK) -#define ENC_FROM_ENCINDEX(idx) (RARRAY_PTR(rb_encoding_list)[idx]) -#define ENC_FROM_ENCODING(enc) ENC_FROM_ENCINDEX(ENC_TO_ENCINDEX(enc)) #define ENC_DUMMY_P(enc) ((enc)->ruby_encoding_index & ENC_DUMMY_FLAG) #define ENC_SET_DUMMY(enc) ((enc)->ruby_encoding_index |= ENC_DUMMY_FLAG)