mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
internal.h: use built-in encoding indexes
* internal.h (rb_{ascii8bit,utf8,usascii}_encindex): use built-in encoding indexes for optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
869a1b5876
commit
ea2b115efd
4 changed files with 12 additions and 2 deletions
|
@ -24,6 +24,10 @@
|
|||
#endif
|
||||
#include "ruby/util.h"
|
||||
|
||||
#undef rb_ascii8bit_encindex
|
||||
#undef rb_utf8_encindex
|
||||
#undef rb_usascii_encindex
|
||||
|
||||
#if defined __GNUC__ && __GNUC__ >= 4
|
||||
#pragma GCC visibility push(default)
|
||||
int rb_enc_register(const char *name, rb_encoding *encoding);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue