Skip to content

Commit

Permalink
add a rb_str_freeze() as CRuby API. fix #1419
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Nov 17, 2011
1 parent 6298457 commit ac926b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions string.c
Original file line number Diff line number Diff line change
Expand Up @@ -6909,6 +6909,12 @@ rb_str_modify(VALUE obj)
}
}

VALUE
rb_str_freeze(VALUE str)
{
return rb_obj_freeze(str);
}

VALUE
rb_str_plus(VALUE str1, VALUE str2)
{
Expand Down

0 comments on commit ac926b3

Please sign in to comment.