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

ruby-changes:55046

From: svn <ko1@a...>
Date: Thu, 14 Mar 2019 15:43:59 +0900 (JST)
Subject: [ruby-changes:55046] svn:r67253 (trunk): * expand tabs.

svn	2019-03-14 15:43:54 +0900 (Thu, 14 Mar 2019)

  New Revision: 67253

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

  Log:
    * expand tabs.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 67252)
+++ compile.c	(revision 67253)
@@ -3869,7 +3869,7 @@ compile_keyword_arg(rb_iseq_t *iseq, LIN https://github.com/ruby/ruby/blob/trunk/compile.c#L3869
 
 static int
 compile_args(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node_root,
-	           struct rb_call_info_kw_arg **keywords_ptr, unsigned int *flag)
+                   struct rb_call_info_kw_arg **keywords_ptr, unsigned int *flag)
 {
     const NODE *node = node_root;
     int len = 0;
@@ -3942,7 +3942,7 @@ static_literal_value(const NODE *node, r https://github.com/ruby/ruby/blob/trunk/compile.c#L3942
 
 static int
 compile_array(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node_root,
-	      enum compile_array_type_t type, int popped)
+              enum compile_array_type_t type, int popped)
 {
     const NODE *node = node_root;
     int line = (int)nd_line(node);
@@ -3972,7 +3972,7 @@ compile_array(rb_iseq_t *iseq, LINK_ANCH https://github.com/ruby/ruby/blob/trunk/compile.c#L3972
 		    EXPECT_NODE("compile_array", node, NODE_ARRAY, -1);
 		}
 
-		if (type == COMPILE_ARRAY_TYPE_HASH && !node->nd_head) {
+                if (type == COMPILE_ARRAY_TYPE_HASH && !node->nd_head) {
 		    kw = node->nd_next;
 		    node = 0;
 		    if (kw) {
@@ -3989,7 +3989,7 @@ compile_array(rb_iseq_t *iseq, LINK_ANCH https://github.com/ruby/ruby/blob/trunk/compile.c#L3989
                 COMPILE_(anchor, "array element", node->nd_head, popped);
 	    }
 
-	    if (opt_p) {
+            if (opt_p) {
 		if (!popped) {
 		    VALUE ary = rb_ary_tmp_new(i);
 
@@ -4850,7 +4850,7 @@ setup_args(rb_iseq_t *iseq, LINK_ANCHOR https://github.com/ruby/ruby/blob/trunk/compile.c#L4850
 		*flag |= VM_CALL_KW_SPLAT;
 
 	    if (next_is_array) {
-		int len = compile_args(iseq, args, argn->nd_head, NULL, flag);
+                int len = compile_args(iseq, args, argn->nd_head, NULL, flag);
 		if (len < 0) return Qnil;
 		argc = INT2FIX(len + 1);
 	    }
@@ -4862,7 +4862,7 @@ setup_args(rb_iseq_t *iseq, LINK_ANCHOR https://github.com/ruby/ruby/blob/trunk/compile.c#L4862
 	  }
 	  case NODE_ARRAY:
 	    {
-		int len = compile_args(iseq, args, argn, keywords, flag);
+                int len = compile_args(iseq, args, argn, keywords, flag);
 		if (len < 0) return Qnil;
 		argc = INT2FIX(len);
 		break;
@@ -6818,7 +6818,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L6818
 	break;
       }
       case NODE_ARRAY:{
-	CHECK(compile_array(iseq, ret, node, COMPILE_ARRAY_TYPE_ARRAY, popped) >= 0);
+        CHECK(compile_array(iseq, ret, node, COMPILE_ARRAY_TYPE_ARRAY, popped) >= 0);
 	break;
       }
       case NODE_ZARRAY:{
@@ -6846,7 +6846,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L6846
 	INIT_ANCHOR(list);
 	switch (type) {
 	  case NODE_ARRAY:
-	    CHECK(compile_array(iseq, list, node->nd_head, COMPILE_ARRAY_TYPE_HASH, popped) >= 0);
+            CHECK(compile_array(iseq, list, node->nd_head, COMPILE_ARRAY_TYPE_HASH, popped) >= 0);
 	    ADD_SEQ(ret, list);
 	    break;
 

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

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