From 19c4d26c5138830c4a7d2435ce1af7d7184913c3 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 3 Nov 2007 19:04:53 +0000 Subject: * string.c (tr_setup_table): use C array for characters that fit in a byte to gain performance. * string.c (rb_str_delete_bang): ditto. * string.c (rb_str_squeeze_bang): ditto. * string.c (rb_str_count): ditto. * string.c (tr_trans): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'encoding.c') diff --git a/encoding.c b/encoding.c index 8f1a0822b9..97e6cfff50 100644 --- a/encoding.c +++ b/encoding.c @@ -261,7 +261,7 @@ rb_enc_find(const char *name) return rb_enc_from_index(idx); } -static int +static inline int enc_capable(VALUE obj) { if (IMMEDIATE_P(obj)) return Qfalse; -- cgit v1.2.3