summaryrefslogtreecommitdiff
path: root/encoding.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-09-29 12:58:26 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-10-05 14:18:23 +0900
commit5112a548467e04ebdb386f0cc7bacb29f38d3fd2 (patch)
treefe56859f6065a23483e7fd3e516f7ec644be2e85 /encoding.c
parent312668cf031ce5e018f78d6a7cad9bcdcdac6ae6 (diff)
downloadruby-5112a548467e04ebdb386f0cc7bacb29f38d3fd2.tar.gz
include/ruby/encoding.h: convert macros into inline functions
Less macros == huge win.
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/encoding.c b/encoding.c
index a162821e64..2fb1c42047 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1277,13 +1277,6 @@ rb_enc_codepoint_len(const char *p, const char *e, int *len_p, rb_encoding *enc)
return rb_enc_mbc_to_codepoint(p, e, enc);
}
-#undef rb_enc_codepoint
-unsigned int
-rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc)
-{
- return rb_enc_codepoint_len(p, e, 0, enc);
-}
-
int
rb_enc_codelen(int c, rb_encoding *enc)
{
@@ -1294,13 +1287,6 @@ rb_enc_codelen(int c, rb_encoding *enc)
return n;
}
-#undef rb_enc_code_to_mbclen
-int
-rb_enc_code_to_mbclen(int code, rb_encoding *enc)
-{
- return ONIGENC_CODE_TO_MBCLEN(enc, code);
-}
-
int
rb_enc_toupper(int c, rb_encoding *enc)
{