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

ruby-changes:33840

From: akr <ko1@a...>
Date: Sun, 11 May 2014 22:29:20 +0900 (JST)
Subject: [ruby-changes:33840] akr:r45921 (trunk): * compile.c (BUFSIZE): Unused macro removed.

akr	2014-05-11 22:29:16 +0900 (Sun, 11 May 2014)

  New Revision: 45921

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45921

  Log:
    * compile.c (BUFSIZE): Unused macro removed.
    
    * vm.c (BUFSIZE): Ditto.
    
    * pack.c (INT64toNUM): Ditto.
      (UINT64toNUM): Ditto.
      (BYTEWIDTH): Ditto.
    
    * time.c (lshift): Ditto.
      (UINT64toNUM): Ditto.
      (id_lshift): Unused variable removed.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/pack.c
    trunk/time.c
    trunk/vm.c
Index: time.c
===================================================================
--- time.c	(revision 45920)
+++ time.c	(revision 45921)
@@ -34,7 +34,7 @@ https://github.com/ruby/ruby/blob/trunk/time.c#L34
 #include "timev.h"
 
 static ID id_divmod, id_mul, id_submicro, id_nano_num, id_nano_den, id_offset, id_zone;
-static ID id_eq, id_ne, id_quo, id_div, id_cmp, id_lshift;
+static ID id_eq, id_ne, id_quo, id_div, id_cmp;
 
 #define NDIV(x,y) (-(-((x)+1)/(y))-1)
 #define NMOD(x,y) ((y)-(-((x)+1)%(y))-1)
@@ -172,7 +172,6 @@ mod(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/time.c#L172
 }
 
 #define neg(x) (sub(INT2FIX(0), (x)))
-#define lshift(x,y) (rb_funcall((x), id_lshift, 1, (y)))
 
 static VALUE
 quo(VALUE x, VALUE y)
@@ -214,10 +213,8 @@ divmodv(VALUE n, VALUE d, VALUE *q, VALU https://github.com/ruby/ruby/blob/trunk/time.c#L213
 
 #if SIZEOF_LONG == 8
 # define INT64toNUM(x) LONG2NUM(x)
-# define UINT64toNUM(x) ULONG2NUM(x)
 #elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
 # define INT64toNUM(x) LL2NUM(x)
-# define UINT64toNUM(x) ULL2NUM(x)
 #endif
 
 #if defined(HAVE_UINT64_T) && SIZEOF_LONG*2 <= SIZEOF_UINT64_T
@@ -4947,7 +4944,6 @@ Init_Time(void) https://github.com/ruby/ruby/blob/trunk/time.c#L4944
     id_quo = rb_intern("quo");
     id_div = rb_intern("div");
     id_cmp = rb_intern("<=>");
-    id_lshift = rb_intern("<<");
     id_divmod = rb_intern("divmod");
     id_mul = rb_intern("*");
     id_submicro = rb_intern("submicro");
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45920)
+++ ChangeLog	(revision 45921)
@@ -1,3 +1,17 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 11 22:27:18 2014  Tanaka Akira  <akr@f...>
+
+	* compile.c (BUFSIZE): Unused macro removed.
+
+	* vm.c (BUFSIZE): Ditto.
+
+	* pack.c (INT64toNUM): Ditto.
+	  (UINT64toNUM): Ditto.
+	  (BYTEWIDTH): Ditto.
+
+	* time.c (lshift): Ditto.
+	  (UINT64toNUM): Ditto.
+	  (id_lshift): Unused variable removed.
+
 Sun May 11 21:23:27 2014  Tanaka Akira  <akr@f...>
 
 	* pack.c (swaps): Unused macro removed.
Index: pack.c
===================================================================
--- pack.c	(revision 45920)
+++ pack.c	(revision 45921)
@@ -70,14 +70,6 @@ static const char endstr[] = "sSiIlLqQ"; https://github.com/ruby/ruby/blob/trunk/pack.c#L70
 # define NATINT_LEN(type,len) ((int)sizeof(type))
 #endif
 
-#if SIZEOF_LONG == 8
-# define INT64toNUM(x) LONG2NUM(x)
-# define UINT64toNUM(x) ULONG2NUM(x)
-#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
-# define INT64toNUM(x) LL2NUM(x)
-# define UINT64toNUM(x) ULL2NUM(x)
-#endif
-
 #define define_swapx(x, xtype)		\
 static xtype				\
 TOKEN_PASTE(swap,x)(xtype z)		\
@@ -1899,8 +1891,6 @@ pack_unpack(VALUE str, VALUE fmt) https://github.com/ruby/ruby/blob/trunk/pack.c#L1891
     return ary;
 }
 
-#define BYTEWIDTH 8
-
 int
 rb_uv_to_utf8(char buf[6], unsigned long uv)
 {
Index: compile.c
===================================================================
--- compile.c	(revision 45920)
+++ compile.c	(revision 45921)
@@ -2996,8 +2996,6 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHO https://github.com/ruby/ruby/blob/trunk/compile.c#L2996
     return done;
 }
 
-#define BUFSIZE 0x100
-
 static VALUE
 make_name_for_block(rb_iseq_t *iseq)
 {
Index: vm.c
===================================================================
--- vm.c	(revision 45920)
+++ vm.c	(revision 45921)
@@ -85,7 +85,6 @@ static rb_serial_t ruby_vm_class_serial https://github.com/ruby/ruby/blob/trunk/vm.c#L85
 
 #include <assert.h>
 
-#define BUFSIZE 0x100
 #define PROCDEBUG 0
 
 rb_serial_t

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

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