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

ruby-changes:51110

From: mame <ko1@a...>
Date: Wed, 2 May 2018 09:57:52 +0900 (JST)
Subject: [ruby-changes:51110] mame:r63317 (trunk): iseq.c (rb_iseq_disasm_insn): Change the width of insn names

mame	2018-05-02 09:57:47 +0900 (Wed, 02 May 2018)

  New Revision: 63317

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

  Log:
    iseq.c (rb_iseq_disasm_insn): Change the width of insn names
    
    Currently "trace_opt_send_without_block" (28 letters) is the longest
    insn.

  Modified files:
    trunk/iseq.c
Index: iseq.c
===================================================================
--- iseq.c	(revision 63316)
+++ iseq.c	(revision 63317)
@@ -1831,10 +1831,10 @@ rb_iseq_disasm_insn(VALUE ret, const VAL https://github.com/ruby/ruby/blob/trunk/iseq.c#L1831
 
     insn_name_buff = insn_name(insn);
     if (1) {
-	rb_str_catf(str, "%04"PRIuSIZE" %-16s ", pos, insn_name_buff);
+	rb_str_catf(str, "%04"PRIuSIZE" %-28s ", pos, insn_name_buff);
     }
     else {
-	rb_str_catf(str, "%04"PRIuSIZE" %-16.*s ", pos,
+	rb_str_catf(str, "%04"PRIuSIZE" %-28.*s ", pos,
 		    (int)strcspn(insn_name_buff, "_"), insn_name_buff);
     }
 

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

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