From 559a266a843daf47b096657ad7172972dee78081 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: http://svn.ruby-lang.org/repos/ruby/trunk@14772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/encoding.h') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 50516b3c0..cbe4f8874 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