[ruby-dev:31754] Re: [ruby-cvs:20585] Ruby:r13348 (trunk): * array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui

From: "U.Nakamura" <usa@...>
Date: 2007-09-07 15:42:54 UTC
List: ruby-dev #31754
こんにちは、なかむら(う)です。

In message "[ruby-cvs:20585] Ruby:r13348 (trunk): * array.c (rb_ary_cycle): typo in rdoc.  a patch from Yugui"
    on Sep.06,2007 21:33:47, <matz@ruby-lang.org> wrote:
| matz	2007-09-06 21:33:45 +0900 (Thu, 06 Sep 2007)
| 
|   New Revision: 13348
(snip)
|  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/oniguruma.h?r1=13348&r2=13347
(以下略)

この変更でOnigEncodingTypeのmbc_enc_lenの引数を変えちゃってま
すが、それに追従してないところがあるようです。
こうでしょうか?

Index: regenc.c
===================================================================
--- regenc.c	(revision 13402)
+++ regenc.c	(working copy)
@@ -592,7 +592,7 @@
 #endif
 
 extern int
-onigenc_single_byte_mbc_enc_len(const UChar* p)
+onigenc_single_byte_mbc_enc_len(const UChar* p, const UChar* e)
 {
   return 1;
 }
Index: regenc.h
===================================================================
--- regenc.h	(revision 13402)
+++ regenc.h	(working copy)
@@ -117,7 +117,7 @@
 
 /* methods for single byte encoding */
 ONIG_EXTERN int onigenc_ascii_mbc_case_fold P_((OnigCaseFoldType flag, const UChar** p, const UChar* end, UChar* lower));
-ONIG_EXTERN int onigenc_single_byte_mbc_enc_len P_((const UChar* p));
+ONIG_EXTERN int onigenc_single_byte_mbc_enc_len P_((const UChar* p, const UChar* e));
 ONIG_EXTERN OnigCodePoint onigenc_single_byte_mbc_to_code P_((const UChar* p, const UChar* end));
 ONIG_EXTERN int onigenc_single_byte_code_to_mbclen P_((OnigCodePoint code));
 ONIG_EXTERN int onigenc_single_byte_code_to_mbc P_((OnigCodePoint code, UChar *buf));

それでは。
-- 
U.Nakamura <usa@garbagecollect.jp>


In This Thread

Prev Next