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

ruby-changes:50666

From: nobu <ko1@a...>
Date: Mon, 19 Mar 2018 09:32:59 +0900 (JST)
Subject: [ruby-changes:50666] nobu:r62829 (trunk): iseq.c: mark kwrest arg

nobu	2018-03-19 09:32:51 +0900 (Mon, 19 Mar 2018)

  New Revision: 62829

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

  Log:
    iseq.c: mark kwrest arg

  Modified files:
    trunk/iseq.c
Index: iseq.c
===================================================================
--- iseq.c	(revision 62828)
+++ iseq.c	(revision 62829)
@@ -1870,11 +1870,12 @@ rb_iseq_disasm(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/iseq.c#L1870
 		}
 	    }
 
-	    snprintf(argi, sizeof(argi), "%s%s%s%s%s",	/* arg, opts, rest, post  block */
+	    snprintf(argi, sizeof(argi), "%s%s%s%s%s%s",	/* arg, opts, rest, post, kwrest, block */
 		     iseq->body->param.lead_num > li ? "Arg" : "",
 		     opti,
 		     (iseq->body->param.flags.has_rest && iseq->body->param.rest_start == li) ? "Rest" : "",
 		     (iseq->body->param.flags.has_post && iseq->body->param.post_start <= li && li < iseq->body->param.post_start + iseq->body->param.post_num) ? "Post" : "",
+		     (iseq->body->param.flags.has_kwrest && iseq->body->param.keyword->rest_start == li) ? "Kwrest" : "",
 		     (iseq->body->param.flags.has_block && iseq->body->param.block_start == li) ? "Block" : "");
 
 	    rb_str_catf(str, "[%2d] ", i + 1);

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

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