Project

General

Profile

« Previous | Next » 

Revision 89e6910f

Added by ko1 (Koichi Sasada) almost 11 years ago

  • include/ruby/ruby.h: constify RRational::(num,den) and
    RComplex::(real,imag).
    Add macro to set these values:
  • RRATIONAL_SET_NUM()
  • RRATIONAL_SET_DEN()
  • RCOMPLEX_SET_REAL()
  • RCOMPLEX_SET_IMAG()
    This change is a part of RGENGC branch [ruby-trunk - Feature #8339].
    TODO: API design. RRATIONAL_SET(rat,num,den) is enough?
    TODO: Setting constify variable with cast has same issue of r40691.
  • complex.c, rational.c: use above macros.

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