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

ruby-changes:41130

From: nobu <ko1@a...>
Date: Sun, 20 Dec 2015 00:13:06 +0900 (JST)
Subject: [ruby-changes:41130] nobu:r53203 (trunk): proc.c: remove old macro

nobu	2015-12-20 00:12:45 +0900 (Sun, 20 Dec 2015)

  New Revision: 53203

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

  Log:
    proc.c: remove old macro
    
    * proc.c (proc_get_iseq): remove and expand old name macro.

  Modified files:
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 53202)
+++ proc.c	(revision 53203)
@@ -969,8 +969,6 @@ rb_block_arity(void) https://github.com/ruby/ruby/blob/trunk/proc.c#L969
     return max != UNLIMITED_ARGUMENTS ? min : -min-1;
 }
 
-#define get_proc_iseq rb_proc_get_iseq
-
 const rb_iseq_t *
 rb_proc_get_iseq(VALUE self, int *is_proc)
 {
@@ -1028,7 +1026,7 @@ iseq_location(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/proc.c#L1026
 VALUE
 rb_proc_location(VALUE self)
 {
-    return iseq_location(get_proc_iseq(self, 0));
+    return iseq_location(rb_get_proc_iseq(self, 0));
 }
 
 static VALUE
@@ -1064,7 +1062,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/proc.c#L1062
 rb_proc_parameters(VALUE self)
 {
     int is_proc;
-    const rb_iseq_t *iseq = get_proc_iseq(self, &is_proc);
+    const rb_iseq_t *iseq = rb_get_proc_iseq(self, &is_proc);
     if (!iseq) {
 	return unnamed_parameters(rb_proc_arity(self));
     }
@@ -2294,7 +2292,7 @@ method_def_iseq(const rb_method_definiti https://github.com/ruby/ruby/blob/trunk/proc.c#L2292
       case VM_METHOD_TYPE_ISEQ:
 	return rb_iseq_check(def->body.iseq.iseqptr);
       case VM_METHOD_TYPE_BMETHOD:
-	return get_proc_iseq(def->body.proc, 0);
+	return rb_get_proc_iseq(def->body.proc, 0);
       case VM_METHOD_TYPE_ALIAS:
 	return method_def_iseq(def->body.alias.original_me->def);
       case VM_METHOD_TYPE_CFUNC:

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

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