[前][次][番号順一覧][スレッド一覧]

ruby-changes:44680

From: mrkn <ko1@a...>
Date: Sat, 12 Nov 2016 21:16:16 +0900 (JST)
Subject: [ruby-changes:44680] mrkn:r56753 (trunk): raitonal.c: remove needless macro

mrkn	2016-11-12 21:16:12 +0900 (Sat, 12 Nov 2016)

  New Revision: 56753

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56753

  Log:
    raitonal.c: remove needless macro
    
    * rational.c (id_lshift, f_lshift): removed.

  Modified files:
    trunk/rational.c
Index: rational.c
===================================================================
--- rational.c	(revision 56752)
+++ rational.c	(revision 56753)
@@ -2039,9 +2039,6 @@ float_decode(VALUE self) https://github.com/ruby/ruby/blob/trunk/rational.c#L2039
 }
 #endif
 
-#define id_lshift rb_intern("<<")
-#define f_lshift(x,n) rb_funcall((x), id_lshift, 1, (n))
-
 /*
  * call-seq:
  *    flt.to_r  ->  rational

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]