From 1c0416e6eed8fa11e02c406fca40c9c1f6f87450 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 28 Dec 2007 14:55:43 +0000 Subject: * ext/strscan/strscan.c (str_new): new function for allocate an string with encoding propagation. (extract_range): use str_new. (extract_beg_len): ditto. (strscan_peek): ditto. (strscan_rest): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 50516b3c0a..cbe4f88743 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -51,7 +51,7 @@ rb_encoding* rb_enc_compatible(VALUE,VALUE); rb_encoding* rb_enc_check(VALUE,VALUE); void rb_enc_associate_index(VALUE, int); void rb_enc_associate(VALUE, rb_encoding*); -void rb_enc_copy(VALUE, VALUE); +void rb_enc_copy(VALUE dst, VALUE src); VALUE rb_enc_str_new(const char*, long len, rb_encoding*); long rb_enc_strlen(const char*, const char*, rb_encoding*); -- cgit v1.2.3