1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-02-11 05:46:17 +00:00
parent 4b036bb69b
commit 66a5fcab3a
2 changed files with 11 additions and 4 deletions

View file

@ -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

View file

@ -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);
}
/**