* bignum.c (rb_big2str1): Use power_level instead of bitsize(xn).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c (rb_big2str1): Make an expression more explicit.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
configure.in: clock_gettime

* configure.in (clock_gettime): need to check with -lrt prior to check
  for the function only.  otherwise -lrt is not linked and the link
  fails, when ac_cv_func_clock_gettime is cached as yes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
lib/ostruct.rb: Update exception class

* lib/ostruct.rb (OpenStruct#modifiable): Builtin classies raises
  RuntimeError on frozen instance. TypeError is an old way.

* test/ostruct/test_ostruct.rb: Added tests for above.
lib/ostruct.rb: Standardize to use name class

* lib/ostruct.rb (OpenStruct#delete_field): Use Symbol instead of
  String. Not only adjusting style. Some special string behave
  `string.to_sym.to_s != string`.

* test/ostruct/test_ostruct.rb: Added tests for above.
lib/ostruct.rb: Enumerator should deal size

* lib/ostruct.rb (OpenStruct#each_pair): Currently, Enumerator has
  size. And Struct#each_pair keeps members-size.

* test/ostruct/test_ostruct.rb: Added tests for above.