diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-27 19:49:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-27 19:49:45 +0000 |
commit | 8b9ad9d6f021cb5a7ebfba60dd258521955a202a (patch) | |
tree | 6ce51a0555d1c0ad51d75670db474748955bd182 /enc/unicode.c | |
parent | 2ded8d0698667692ce5d9ca2bbc6108ed1125235 (diff) | |
download | ruby-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/unicode.c')
-rw-r--r-- | enc/unicode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index f0ef89880f..975fc2648e 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -188,12 +188,12 @@ onigenc_utf16_32_get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out, #define PROPERTY_NAME_MAX_SIZE (MAX_WORD_LENGTH + 1) extern int -onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name, UChar* end) +onigenc_unicode_property_name_to_ctype(OnigEncoding enc, const UChar* name, const UChar* end) { int len; int ctype; UChar buf[PROPERTY_NAME_MAX_SIZE]; - UChar *p; + const UChar *p; OnigCodePoint code; len = 0; |