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

ruby-changes:14175

From: nobu <ko1@a...>
Date: Fri, 4 Dec 2009 17:34:28 +0900 (JST)
Subject: [ruby-changes:14175] Ruby:r25993 (trunk): * insns.def (defined): adjust indent.

nobu	2009-12-04 17:34:16 +0900 (Fri, 04 Dec 2009)

  New Revision: 25993

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

  Log:
    * insns.def (defined): adjust indent.

  Modified files:
    trunk/insns.def

Index: insns.def
===================================================================
--- insns.def	(revision 25992)
+++ insns.def	(revision 25993)
@@ -787,19 +787,19 @@
 	}
 	break;
       case DEFINED_METHOD:{
-	  VALUE klass = CLASS_OF(v);
-	  const rb_method_entry_t *me = rb_method_entry(klass, SYM2ID(obj));
+	VALUE klass = CLASS_OF(v);
+	const rb_method_entry_t *me = rb_method_entry(klass, SYM2ID(obj));
 
-	  if (me) {
-	      if (!(me->flag & NOEX_PRIVATE)) {
-		  if (!((me->flag & NOEX_PROTECTED) &&
-			!rb_obj_is_kind_of(GET_SELF(),
-					   rb_class_real(klass)))) {
-		      expr_type = "method";
-		  }
-	      }
-	  }
-	  break;
+	if (me) {
+	    if (!(me->flag & NOEX_PRIVATE)) {
+		if (!((me->flag & NOEX_PROTECTED) &&
+		      !rb_obj_is_kind_of(GET_SELF(),
+					 rb_class_real(klass)))) {
+		    expr_type = "method";
+		}
+	    }
+	}
+	break;
       }
       case DEFINED_YIELD:
 	if (GET_BLOCK_PTR()) {
@@ -807,27 +807,27 @@
 	}
 	break;
       case DEFINED_ZSUPER:{
-	  rb_iseq_t *ip = GET_ISEQ();
-	  while (ip) {
-	      if (ip->defined_method_id) {
-		  break;
-	      }
-	      ip = ip->parent_iseq;
-	  }
-	  if (ip) {
-	      VALUE klass = vm_search_normal_superclass(ip->klass, GET_SELF());
-	      if (rb_method_boundp(klass, ip->defined_method_id, 0)) {
-		  expr_type = "super";
-	      }
-	  }
-	  break;
+	rb_iseq_t *ip = GET_ISEQ();
+	while (ip) {
+	    if (ip->defined_method_id) {
+		break;
+	    }
+	    ip = ip->parent_iseq;
+	}
+	if (ip) {
+	    VALUE klass = vm_search_normal_superclass(ip->klass, GET_SELF());
+	    if (rb_method_boundp(klass, ip->defined_method_id, 0)) {
+		expr_type = "super";
+	    }
+	}
+	break;
       }
       case DEFINED_REF:{
-	  val = vm_getspecial(th, GET_LFP(), Qfalse, FIX2INT(obj));
-	  if (val != Qnil) {
-	      expr_type = "global-variable";
-	  }
-	  break;
+	val = vm_getspecial(th, GET_LFP(), Qfalse, FIX2INT(obj));
+	if (val != Qnil) {
+	    expr_type = "global-variable";
+	}
+	break;
       }
       default:
 	rb_bug("unimplemented defined? type (VM)");

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

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