aboutsummaryrefslogtreecommitdiffstats
path: root/enc/euc_jp.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-27 19:49:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-27 19:49:45 +0000
commit8b9ad9d6f021cb5a7ebfba60dd258521955a202a (patch)
tree6ce51a0555d1c0ad51d75670db474748955bd182 /enc/euc_jp.c
parent2ded8d0698667692ce5d9ca2bbc6108ed1125235 (diff)
downloadruby-8b9ad9d6f021cb5a7ebfba60dd258521955a202a.tar.gz
oniguruma.h: constify
* include/ruby/oniguruma.h (OnigEncodingTypeST): constify property_name_to_ctype arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/euc_jp.c')
-rw-r--r--enc/euc_jp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/euc_jp.c b/enc/euc_jp.c
index 61bb8ba65a..d0852c3daa 100644
--- a/enc/euc_jp.c
+++ b/enc/euc_jp.c
@@ -501,9 +501,9 @@ static const OnigCodePoint CR_Cyrillic[] = {
#include "enc/jis/props.h"
static int
-property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
+property_name_to_ctype(OnigEncoding enc, const UChar* p, const UChar* end)
{
- UChar *s = p, *e = end;
+ const UChar *s = p, *e = end;
const struct enc_property *prop =
onig_jis_property((const char* )s, (unsigned int )(e - s));