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

ruby-changes:55236

From: svn <ko1@a...>
Date: Fri, 5 Apr 2019 17:15:25 +0900 (JST)
Subject: [ruby-changes:55236] svn:r67443 (trunk): * expand tabs.

svn	2019-04-05 17:15:21 +0900 (Fri, 05 Apr 2019)

  New Revision: 67443

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

  Log:
    * expand tabs.

  Modified files:
    trunk/compile.c
    trunk/vm_eval.c
    trunk/vm_insnhelper.c
    trunk/vm_method.c
Index: compile.c
===================================================================
--- compile.c	(revision 67442)
+++ compile.c	(revision 67443)
@@ -7144,29 +7144,29 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L7144
       case NODE_DEFN:{
         ID mid = node->nd_mid;
 	const rb_iseq_t *method_iseq = NEW_ISEQ(node->nd_defn,
-						rb_id2str(mid),
+                                                rb_id2str(mid),
 						ISEQ_TYPE_METHOD, line);
 
 	debugp_param("defn/iseq", rb_iseqw_new(method_iseq));
         ADD_INSN2(ret, line, definemethod, ID2SYM(mid), method_iseq);
 
         if (!popped) {
-	    ADD_INSN1(ret, line, putobject, ID2SYM(mid));
+            ADD_INSN1(ret, line, putobject, ID2SYM(mid));
 	}
 
 	break;
       }
       case NODE_DEFS:{
         ID mid = node->nd_mid;
-	const rb_iseq_t * singleton_method_iseq = NEW_ISEQ(node->nd_defn,
+        const rb_iseq_t * singleton_method_iseq = NEW_ISEQ(node->nd_defn,
                                                            rb_id2str(mid),
                                                            ISEQ_TYPE_METHOD, line);
 
-	debugp_param("defs/iseq", rb_iseqw_new(singleton_method_iseq));
+        debugp_param("defs/iseq", rb_iseqw_new(singleton_method_iseq));
         CHECK(COMPILE(ret, "defs: recv", node->nd_recv));
         ADD_INSN2(ret, line, definesmethod, ID2SYM(mid), singleton_method_iseq);
 
-	if (!popped) {
+        if (!popped) {
             ADD_INSN1(ret, line, putobject, ID2SYM(mid));
         }
 	break;
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 67442)
+++ vm_eval.c	(revision 67443)
@@ -1322,7 +1322,7 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1322
 
     /* TODO: what the code checking? */
     if (!cref && block.as.captured.code.val) {
-	rb_cref_t *orig_cref = vm_get_cref(vm_block_ep(&block));
+        rb_cref_t *orig_cref = vm_get_cref(vm_block_ep(&block));
 	cref = vm_cref_dup(orig_cref);
     }
     vm_set_eval_stack(ec, iseq, cref, &block);
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 67442)
+++ vm_method.c	(revision 67443)
@@ -1148,9 +1148,9 @@ rb_attr(VALUE klass, ID id, int read, in https://github.com/ruby/ruby/blob/trunk/vm_method.c#L1148
 	visi = METHOD_VISI_PUBLIC;
     }
     else {
-	switch (vm_scope_visibility_get(ec)) {
+        switch (vm_scope_visibility_get(ec)) {
 	  case METHOD_VISI_PRIVATE:
-	    if (vm_scope_module_func_check(ec)) {
+            if (vm_scope_module_func_check(ec)) {
 		rb_warning("attribute accessor as module_function");
 	    }
 	    visi = METHOD_VISI_PRIVATE;
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 67442)
+++ vm_insnhelper.c	(revision 67443)
@@ -773,7 +773,7 @@ vm_get_cref(const VALUE *ep) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L773
 	return cref;
     }
     else {
-	rb_bug("vm_get_cref: unreachable");
+        rb_bug("vm_get_cref: unreachable");
     }
 }
 
@@ -906,7 +906,7 @@ vm_get_ev_const(rb_execution_context_t * https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L906
 
     if (orig_klass == Qnil) {
 	/* in current lexical scope */
-	const rb_cref_t *root_cref = vm_get_cref(ec->cfp->ep);
+        const rb_cref_t *root_cref = vm_get_cref(ec->cfp->ep);
 	const rb_cref_t *cref;
 	VALUE klass = Qnil;
 
@@ -2610,7 +2610,7 @@ vm_call_method_each_type(rb_execution_co https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2610
         return vm_call_zsuper(ec, cfp, calling, ci, cc, RCLASS_ORIGIN(cc->me->defined_class));
 
       case VM_METHOD_TYPE_REFINED: {
-	const rb_cref_t *cref = vm_get_cref(cfp->ep);
+        const rb_cref_t *cref = vm_get_cref(cfp->ep);
 	VALUE refinements = cref ? CREF_REFINEMENTS(cref) : Qnil;
 	VALUE refinement;
 	const rb_callable_method_entry_t *ref_me;
@@ -3141,7 +3141,7 @@ vm_defined(rb_execution_context_t *ec, r https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3141
 	}
 	break;
       case DEFINED_CVAR: {
-	const rb_cref_t *cref = vm_get_cref(GET_EP());
+        const rb_cref_t *cref = vm_get_cref(GET_EP());
 	klass = vm_get_cvar_base(cref, GET_CFP());
 	if (rb_cvar_defined(klass, SYM2ID(obj))) {
 	    expr_type = DEFINED_CVAR;
@@ -3510,10 +3510,10 @@ vm_scope_visibility_get(const rb_executi https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3510
     const rb_control_frame_t *cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp);
 
     if (!vm_env_cref_by_cref(cfp->ep)) {
-	return METHOD_VISI_PUBLIC;
+        return METHOD_VISI_PUBLIC;
     }
     else {
-	return CREF_SCOPE_VISI(vm_ec_cref(ec))->method_visi;
+        return CREF_SCOPE_VISI(vm_ec_cref(ec))->method_visi;
     }
 }
 
@@ -3523,10 +3523,10 @@ vm_scope_module_func_check(const rb_exec https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3523
     const rb_control_frame_t *cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp);
 
     if (!vm_env_cref_by_cref(cfp->ep)) {
-	return FALSE;
+        return FALSE;
     }
     else {
-	return CREF_SCOPE_VISI(vm_ec_cref(ec))->module_func;
+        return CREF_SCOPE_VISI(vm_ec_cref(ec))->module_func;
     }
 }
 
@@ -3538,23 +3538,23 @@ vm_define_method(const rb_execution_cont https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3538
     rb_cref_t *cref = vm_ec_cref(ec);
 
     if (!is_singleton) {
-	klass = CREF_CLASS(cref);
-	visi = vm_scope_visibility_get(ec);
+        klass = CREF_CLASS(cref);
+        visi = vm_scope_visibility_get(ec);
     }
     else { /* singleton */
-	klass = rb_singleton_class(obj); /* class and frozen checked in this API */
-	visi = METHOD_VISI_PUBLIC;
+        klass = rb_singleton_class(obj); /* class and frozen checked in this API */
+        visi = METHOD_VISI_PUBLIC;
     }
 
     if (NIL_P(klass)) {
-	rb_raise(rb_eTypeError, "no class/module to add method");
+        rb_raise(rb_eTypeError, "no class/module to add method");
     }
 
     rb_add_method_iseq(klass, id, (const rb_iseq_t *)iseqval, cref, visi);
 
     if (!is_singleton && vm_scope_module_func_check(ec)) {
-	klass = rb_singleton_class(klass);
-	rb_add_method_iseq(klass, id, (const rb_iseq_t *)iseqval, cref, METHOD_VISI_PUBLIC);
+        klass = rb_singleton_class(klass);
+        rb_add_method_iseq(klass, id, (const rb_iseq_t *)iseqval, cref, METHOD_VISI_PUBLIC);
     }
 }
 
@@ -3727,7 +3727,7 @@ static int https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3727
 vm_ic_hit_p(IC ic, const VALUE *reg_ep)
 {
     if (ic->ic_serial == GET_GLOBAL_CONSTANT_STATE()) {
-	return (ic->ic_cref == NULL || ic->ic_cref == vm_get_cref(reg_ep));
+        return (ic->ic_cref == NULL || ic->ic_cref == vm_get_cref(reg_ep));
     }
     return FALSE;
 }

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

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