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

ruby-changes:27565

From: nobu <ko1@a...>
Date: Wed, 6 Mar 2013 22:26:29 +0900 (JST)
Subject: [ruby-changes:27565] nobu:r39617 (trunk): iseq.c: keyword arguments

nobu	2013-03-06 22:24:06 +0900 (Wed, 06 Mar 2013)

  New Revision: 39617

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

  Log:
    iseq.c: keyword arguments
    
    * iseq.c (rb_iseq_disasm): show keyword arguments info, in format
      "keyword: NUM@LIDX".

  Modified files:
    trunk/iseq.c

Index: iseq.c
===================================================================
--- iseq.c	(revision 39616)
+++ iseq.c	(revision 39617)
@@ -1391,10 +1391,11 @@ rb_iseq_disasm(VALUE self) https://github.com/ruby/ruby/blob/trunk/iseq.c#L1391
     if (tbl) {
 	rb_str_catf(str,
 		    "local table (size: %d, argc: %d "
-		    "[opts: %d, rest: %d, post: %d, block: %d] s%d)\n",
+		    "[opts: %d, rest: %d, post: %d, block: %d, keyword: %d@%d] s%d)\n",
 		    iseqdat->local_size, iseqdat->argc,
 		    iseqdat->arg_opts, iseqdat->arg_rest,
 		    iseqdat->arg_post_len, iseqdat->arg_block,
+		    iseqdat->arg_keywords, iseqdat->arg_keyword,
 		    iseqdat->arg_simple);
 
 	for (i = 0; i < iseqdat->local_table_size; i++) {

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

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