ruby-changes:56006
From: git <ko1@a...>
Date: Tue, 4 Jun 2019 23:17:52 +0900 (JST)
Subject: [ruby-changes:56006] git: b31e1b4a7c (trunk): * expand tabs.
https://git.ruby-lang.org/ruby.git/commit/?id=b31e1b4a7c From b31e1b4a7c5b97d861c2b34ed4ccd982d5c6cb82 Mon Sep 17 00:00:00 2001 From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Tue, 4 Jun 2019 23:17:38 +0900 Subject: * expand tabs. diff --git a/compile.c b/compile.c index 889dc32..66b7589 100644 --- a/compile.c +++ b/compile.c @@ -1556,7 +1556,7 @@ iseq_set_arguments_keywords(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, https://github.com/ruby/ruby/blob/trunk/compile.c#L1556 const NODE *val_node = node->nd_body->nd_value; VALUE dv; - if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) { + if (val_node == NODE_SPECIAL_REQUIRED_KEYWORD) { ++rkw; } else { @@ -1632,7 +1632,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons https://github.com/ruby/ruby/blob/trunk/compile.c#L1632 debugs(" - argc: %d\n", body->param.lead_num); rest_id = args->rest_arg; - if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) { + if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) { last_comma = 1; rest_id = 0; } @@ -8012,7 +8012,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in https://github.com/ruby/ruby/blob/trunk/compile.c#L8012 LABEL *end_label = NEW_LABEL(nd_line(node)); const NODE *default_value = node->nd_body->nd_value; - if (default_value == NODE_SPECIAL_REQUIRED_KEYWORD) { + if (default_value == NODE_SPECIAL_REQUIRED_KEYWORD) { /* required argument. do nothing */ COMPILE_ERROR(ERROR_ARGS "unreachable"); goto ng; diff --git a/node.c b/node.c index 864e115..8be6f81 100644 --- a/node.c +++ b/node.c @@ -1012,12 +1012,12 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) https://github.com/ruby/ruby/blob/trunk/node.c#L1012 F_ID(nd_ainfo->first_post_arg, "first post argument"); F_CUSTOM1(nd_ainfo->rest_arg, "rest argument") { if (node->nd_ainfo->rest_arg == NODE_SPECIAL_EXCESSED_COMMA) { - A("1 (excessed comma)"); - } - else { - A_ID(node->nd_ainfo->rest_arg); - } - } + A("1 (excessed comma)"); + } + else { + A_ID(node->nd_ainfo->rest_arg); + } + } F_ID(nd_ainfo->block_arg, "block argument"); F_NODE(nd_ainfo->opt_args, "optional arguments"); F_NODE(nd_ainfo->kw_args, "keyword arguments"); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/