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

ruby-changes:47057

From: nobu <ko1@a...>
Date: Mon, 26 Jun 2017 09:59:30 +0900 (JST)
Subject: [ruby-changes:47057] nobu:r59172 (trunk): compile.c: fix debug print

nobu	2017-06-26 09:59:24 +0900 (Mon, 26 Jun 2017)

  New Revision: 59172

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

  Log:
    compile.c: fix debug print
    
    * compile.c (iseq_compile_each0): debugs/ruby_debug_printf do not
      support PRIsVALUE.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 59171)
+++ compile.c	(revision 59172)
@@ -4887,7 +4887,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L4887
 	ID id = node->nd_vid;
 	int idx = iseq->body->local_iseq->body->local_table_size - get_local_var_idx(iseq, id);
 
-	debugs("lvar: %"PRIsVALUE" idx: %d\n", rb_id2str(id), idx);
+	debugs("lvar: %s idx: %d\n", rb_id2name(id), idx);
 	CHECK(COMPILE(ret, "rvalue", node->nd_value));
 
 	if (!popped) {
@@ -5730,7 +5730,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L5730
 	    ID id = node->nd_vid;
 	    int idx = iseq->body->local_iseq->body->local_table_size - get_local_var_idx(iseq, id);
 
-	    debugs("id: %"PRIsVALUE" idx: %d\n", rb_id2str(id), idx);
+	    debugs("id: %s idx: %d\n", rb_id2name(id), idx);
 	    ADD_GETLOCAL(ret, line, idx, get_lvar_level(iseq));
 	}
 	break;

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

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