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

ruby-changes:11310

From: nobu <ko1@a...>
Date: Fri, 13 Mar 2009 14:55:21 +0900 (JST)
Subject: [ruby-changes:11310] Ruby:r22923 (trunk): * class.c: fixed indent.

nobu	2009-03-13 14:55:13 +0900 (Fri, 13 Mar 2009)

  New Revision: 22923

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

  Log:
    * class.c: fixed indent.

  Modified files:
    trunk/class.c

Index: class.c
===================================================================
--- class.c	(revision 22922)
+++ class.c	(revision 22923)
@@ -120,7 +120,7 @@
 	data.tbl = RCLASS_M_TBL(clone) = st_init_numtable();
 	data.klass = clone;
 	st_foreach(RCLASS_M_TBL(orig), clone_method,
-	  (st_data_t)&data);
+		   (st_data_t)&data);
     }
 
     return clone;
@@ -166,7 +166,7 @@
 	data.tbl = RCLASS_M_TBL(clone);
 	data.klass = (VALUE)clone;
 	st_foreach(RCLASS_M_TBL(klass), clone_method,
-	  (st_data_t)&data);
+		   (st_data_t)&data);
 	rb_singleton_class_attached(RBASIC(clone)->klass, (VALUE)clone);
 	FL_SET(clone, FL_SINGLETON);
 	return (VALUE)clone;
@@ -430,27 +430,27 @@
     OBJ_INFECT(klass, module);
     c = klass;
     while (module) {
-       int superclass_seen = Qfalse;
+	int superclass_seen = Qfalse;
 
 	if (RCLASS_M_TBL(klass) == RCLASS_M_TBL(module))
 	    rb_raise(rb_eArgError, "cyclic include detected");
-       /* ignore if the module included already in superclasses */
-       for (p = RCLASS_SUPER(klass); p; p = RCLASS_SUPER(p)) {
-           switch (BUILTIN_TYPE(p)) {
-             case T_ICLASS:
-               if (RCLASS_M_TBL(p) == RCLASS_M_TBL(module)) {
-                   if (!superclass_seen) {
-                       c = p;  /* move insertion point */
-                   }
-                   goto skip;
-               }
-               break;
-             case T_CLASS:
-               superclass_seen = Qtrue;
-               break;
-           }
-       }
-       c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
+	/* ignore if the module included already in superclasses */
+	for (p = RCLASS_SUPER(klass); p; p = RCLASS_SUPER(p)) {
+	    switch (BUILTIN_TYPE(p)) {
+	      case T_ICLASS:
+		if (RCLASS_M_TBL(p) == RCLASS_M_TBL(module)) {
+		    if (!superclass_seen) {
+			c = p;  /* move insertion point */
+		    }
+		    goto skip;
+		}
+		break;
+	      case T_CLASS:
+		superclass_seen = Qtrue;
+		break;
+	    }
+	}
+	c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
 	changed = 1;
       skip:
 	module = RCLASS_SUPER(module);
@@ -865,7 +865,7 @@
 
     if (BUILTIN_TYPE(obj) == T_CLASS) {
 	if (rb_iv_get(RBASIC(klass)->klass, "__attached__") != klass)
-        make_metametaclass(klass);
+	    make_metametaclass(klass);
     }
     if (OBJ_TAINTED(obj)) {
 	OBJ_TAINT(klass);

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

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