mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2000-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7dd3853eac
commit
96b40dff45
27 changed files with 286 additions and 171 deletions
7
array.c
7
array.c
|
@ -51,6 +51,13 @@ rb_ary_modify(ary)
|
|||
rb_raise(rb_eSecurityError, "Insecure: can't modify array");
|
||||
}
|
||||
|
||||
VALUE
|
||||
rb_ary_freeze(ary)
|
||||
VALUE ary;
|
||||
{
|
||||
return rb_obj_freeze(ary);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
rb_ary_frozen_p(ary)
|
||||
VALUE ary;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue