From f39ad4cab2f2d1c977aa4b4356a3a42c11d1d03d Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 27 May 2010 14:47:16 +0000 Subject: [PATCH] * include/ruby/encoding.h (rb_filesystem_encindex): defined. * include/ruby/encoding.h (rb_locale_encindex): ditto. * encoding.c (rb_filesystem_encindex): remove static. * encoding.c (rb_locale_encindex): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ encoding.c | 4 ++-- include/ruby/encoding.h | 2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f3b8fe3bbe..8068ff17ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Thu May 27 23:03:19 2010 NARUSE, Yui + + * include/ruby/encoding.h (rb_filesystem_encindex): defined. + + * include/ruby/encoding.h (rb_locale_encindex): ditto. + + * encoding.c (rb_filesystem_encindex): remove static. + + * encoding.c (rb_locale_encindex): ditto. + Thu May 27 22:34:27 2010 NAKAMURA Usaku * win32/win32.c (rb_w32_read): call ReadFile() with len = 0 before diff --git a/encoding.c b/encoding.c index b1aceffa18..001762221f 100644 --- a/encoding.c +++ b/encoding.c @@ -1114,7 +1114,7 @@ rb_usascii_encindex(void) return ENCINDEX_US_ASCII; } -static int +int rb_locale_encindex(void) { VALUE charmap = rb_locale_charmap(rb_cEncoding); @@ -1155,7 +1155,7 @@ enc_set_filesystem_encoding(void) return idx; } -static int +int rb_filesystem_encindex(void) { int idx = rb_enc_registered("filesystem"); diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 36f4a7cf12..88f5e52101 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -195,6 +195,8 @@ rb_encoding *rb_default_internal_encoding(void); int rb_ascii8bit_encindex(void); int rb_utf8_encindex(void); int rb_usascii_encindex(void); +int rb_locale_encindex(void); +int rb_filesystem_encindex(void); VALUE rb_enc_default_external(void); VALUE rb_enc_default_internal(void); void rb_enc_set_default_external(VALUE encoding);