diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-11 05:46:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-11 05:46:17 +0000 |
commit | 66a5fcab3a510282df64c8f4b28d62ef2aa2f438 (patch) | |
tree | af051ee40cb26bcf644980746f50b8151ecb89ca | |
parent | 4b036bb69b74f9d4c46c5598b3338c4db5bf0501 (diff) |
* insns.def (setspecial, putstring): fixed typos in rdoc.
* insns.def (toregexp): uses rb_ary_tmp_new(), and clears it after
used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | insns.def | 8 |
2 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,10 @@ +Wed Feb 11 14:46:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * insns.def (setspecial, putstring): fixed typos in rdoc. + + * insns.def (toregexp): uses rb_ary_tmp_new(), and clears it after + used. + Wed Feb 11 14:08:23 2009 Tanaka Akira <akr@fsij.org> * ext/socket/ancdata.c (anc_inspect_socket_rights): return 1 on @@ -89,7 +89,7 @@ getspecial /** @c variable @e set special local variable ($~, $_, ...) value as obj. - @j 特別なローカル変数($~, $_, ...)の値をを設定する。 + @j 特別なローカル変数($~, $_, ...)の値を設定する。 */ DEFINE_INSN setspecial @@ -365,7 +365,7 @@ putiseq /** @c put @e put string val. string will be copied. - @j 文字列ををコピーしてスタックにプッシュする。 + @j 文字列をコピーしてスタックにプッシュする。 */ DEFINE_INSN putstring @@ -425,13 +425,13 @@ toregexp { VALUE rb_reg_new_ary(VALUE ary, int options); int i; - const VALUE ary = rb_ary_new2(cnt); - RBASIC(ary)->klass = 0; + const VALUE ary = rb_ary_tmp_new(cnt); for (i = 0; i < cnt; i++) { rb_ary_store(ary, cnt-i-1, TOPN(i)); } POPN(cnt); val = rb_reg_new_ary(ary, opt); + rb_ary_clear(ary); } /** |