ruby-changes:52423
From: nobu <ko1@a...>
Date: Tue, 4 Sep 2018 21:41:19 +0900 (JST)
Subject: [ruby-changes:52423] nobu:r64632 (trunk): rational.c: remove duplicate macros
nobu 2018-09-04 21:41:14 +0900 (Tue, 04 Sep 2018) New Revision: 64632 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64632 Log: rational.c: remove duplicate macros * rational.c (RRATIONAL_SET_{NUM,DEN}): also defined in internal.h since r53887. Modified files: trunk/rational.c Index: rational.c =================================================================== --- rational.c (revision 64631) +++ rational.c (revision 64632) @@ -388,9 +388,6 @@ f_lcm(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/rational.c#L388 #define get_dat2(x,y) \ struct RRational *adat = RRATIONAL(x), *bdat = RRATIONAL(y) -#define RRATIONAL_SET_NUM(rat, n) RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->num,(n)) -#define RRATIONAL_SET_DEN(rat, d) RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->den,(d)) - inline static VALUE nurat_s_new_internal(VALUE klass, VALUE num, VALUE den) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/