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

ruby-changes:14116

From: nobu <ko1@a...>
Date: Thu, 26 Nov 2009 14:26:00 +0900 (JST)
Subject: [ruby-changes:14116] Ruby:r25930 (trunk): * removed spaces just before tabs.

nobu	2009-11-26 14:25:08 +0900 (Thu, 26 Nov 2009)

  New Revision: 25930

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

  Log:
    * removed spaces just before tabs.

  Modified files:
    trunk/bignum.c
    trunk/encoding.c
    trunk/gc.c
    trunk/hash.c
    trunk/io.c
    trunk/re.c
    trunk/regerror.c
    trunk/regexec.c
    trunk/strftime.c
    trunk/string.c
    trunk/time.c
    trunk/transcode.c
    trunk/util.c
    trunk/variable.c
    trunk/vm_method.c

Index: encoding.c
===================================================================
--- encoding.c	(revision 25929)
+++ encoding.c	(revision 25930)
@@ -664,7 +664,7 @@
 {
 /*    enc_check_capable(obj);*/
     if (rb_enc_get_index(obj) == idx)
-    	return obj;
+	return obj;
     if (SPECIAL_CONST_P(obj)) {
 	rb_raise(rb_eArgError, "cannot set encoding");
     }
Index: time.c
===================================================================
--- time.c	(revision 25929)
+++ time.c	(revision 25930)
@@ -3554,7 +3554,7 @@
     }
     else {
 	len = rb_strftime_alloc(&buf, RSTRING_PTR(format),
-			       	&tobj->vtm, rb_time_unmagnify(tobj->timexv), TIME_UTC_P(tobj));
+				&tobj->vtm, rb_time_unmagnify(tobj->timexv), TIME_UTC_P(tobj));
     }
     str = rb_str_new(buf, len);
     if (buf != buffer) xfree(buf);
Index: re.c
===================================================================
--- re.c	(revision 25929)
+++ re.c	(revision 25930)
@@ -113,7 +113,7 @@
     if (m > SIZEOF_VALUE)
 	rb_bug("!!too long pattern string!!");
 
-    	/* Prepare hash value */
+    /* Prepare hash value */
     for (hx = *x++, hy = *y++; x < xe; ++x, ++y) {
 	hx <<= CHAR_BIT;
 	hy <<= CHAR_BIT;
@@ -356,7 +356,7 @@
 	    }
 	    else if (c == -1) {
                 int l = mbclen(p, pend, enc);
-	    	rb_str_buf_cat(str, p, l);
+		rb_str_buf_cat(str, p, l);
 		p += l;
 		continue;
 	    }
@@ -526,9 +526,9 @@
                                 rb_enc_get(re),
                                 OnigDefaultSyntax);
 	    if (r == 0) {
-		 ++ptr;
- 		 len -= 2;
-		 err = (onig_compile(rp, ptr, ptr + len, NULL, NULL, 0) != 0);
+		++ptr;
+		len -= 2;
+		err = (onig_compile(rp, ptr, ptr + len, NULL, NULL, 0) != 0);
 	    }
 	    onig_free(rp);
 	}
Index: variable.c
===================================================================
--- variable.c	(revision 25929)
+++ variable.c	(revision 25930)
@@ -784,7 +784,7 @@
 
     entry2 = rb_global_entry(name2);
     if (!st_lookup(rb_global_tbl, (st_data_t)name1, &data1)) {
- 	entry1 = ALLOC(struct global_entry);
+	entry1 = ALLOC(struct global_entry);
 	entry1->id = name1;
 	st_add_direct(rb_global_tbl, name1, (st_data_t)entry1);
     }
Index: regerror.c
===================================================================
--- regerror.c	(revision 25929)
+++ regerror.c	(revision 25930)
@@ -205,18 +205,18 @@
     while (p < end) {
       code = ONIGENC_MBC_TO_CODE(enc, p, end);
       if (code >= 0x80) {
- 	if (code > 0xffff && len + 10 <= buf_size) {
- 	  sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
- 	  sprint_byte((char*)(&(buf[len+4])),      (unsigned int)(code >> 16));
- 	  sprint_byte((char*)(&(buf[len+6])),      (unsigned int)(code >>  8));
- 	  sprint_byte((char*)(&(buf[len+8])),      (unsigned int)code);
- 	  len += 10;
- 	}
- 	else if (len + 6 <= buf_size) {
- 	  sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
- 	  sprint_byte((char*)(&(buf[len+4])),      (unsigned int)code);
- 	  len += 6;
+	if (code > 0xffff && len + 10 <= buf_size) {
+	  sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
+	  sprint_byte((char*)(&(buf[len+4])),      (unsigned int)(code >> 16));
+	  sprint_byte((char*)(&(buf[len+6])),      (unsigned int)(code >>  8));
+	  sprint_byte((char*)(&(buf[len+8])),      (unsigned int)code);
+	  len += 10;
 	}
+	else if (len + 6 <= buf_size) {
+	  sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
+	  sprint_byte((char*)(&(buf[len+4])),      (unsigned int)code);
+	  len += 6;
+	}
 	else {
 	  break;
 	}
Index: string.c
===================================================================
--- string.c	(revision 25929)
+++ string.c	(revision 25930)
@@ -3902,7 +3902,7 @@
 	    while (s < e) {
 		c = *s;
 		*s++ = *e;
- 		*e-- = c;
+		*e-- = c;
 	    }
 	}
 	else {
Index: io.c
===================================================================
--- io.c	(revision 25929)
+++ io.c	(revision 25930)
@@ -5648,7 +5648,7 @@
 
     nfile = rb_io_get_io(nfile);
     if (rb_safe_level() >= 4 &&
-       	(!OBJ_UNTRUSTED(io) || !OBJ_UNTRUSTED(nfile))) {
+	(!OBJ_UNTRUSTED(io) || !OBJ_UNTRUSTED(nfile))) {
 	rb_raise(rb_eSecurityError, "Insecure: can't reopen");
     }
     GetOpenFile(io, fptr);
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 25929)
+++ vm_method.c	(revision 25930)
@@ -154,7 +154,7 @@
 	klass = rb_cObject;
     }
     if (rb_safe_level() >= 4 &&
-       	(klass == rb_cObject || !OBJ_UNTRUSTED(klass))) {
+	(klass == rb_cObject || !OBJ_UNTRUSTED(klass))) {
 	rb_raise(rb_eSecurityError, "Insecure: can't define method");
     }
     if (!FL_TEST(klass, FL_SINGLETON) &&
Index: gc.c
===================================================================
--- gc.c	(revision 25929)
+++ gc.c	(revision 25930)
@@ -1009,7 +1009,7 @@
     VALUE obj;
 
     if ((ruby_gc_stress && !ruby_disable_gc_stress) || !freelist) {
-    	if (!heaps_increment(objspace) && !garbage_collect(objspace)) {
+	if (!heaps_increment(objspace) && !garbage_collect(objspace)) {
 	    during_gc = 0;
 	    rb_memerror();
 	}
Index: strftime.c
===================================================================
--- strftime.c	(revision 25929)
+++ strftime.c	(revision 25930)
@@ -521,7 +521,7 @@
 		 * live without, but it would be a great help to those of
 		 * us that muck around with various message processors.
 		 */
- 		case 'z':	/* time zone offset east of GMT e.g. -0600 */
+		case 'z':	/* time zone offset east of GMT e.g. -0600 */
 			if (precision < 4) precision = 4;
 			NEEDS(precision + 1);
 			if (gmt) {
@@ -949,7 +949,7 @@
 	 * and that
 	 * 	timeptr->tm_wday MOD 7 == timeptr->tm_wday
 	 * from which it follows that. . .
- 	 */
+	 */
 	jan1day = timeptr->tm_wday - (timeptr->tm_yday % 7);
 	if (jan1day < 0)
 		jan1day += 7;
Index: util.c
===================================================================
--- util.c	(revision 25929)
+++ util.c	(revision 25930)
@@ -291,7 +291,7 @@
     while ((*t = *s) && *s != '.') {
 	baselen++;
 	if (*s == '\\' || *s == '/') baselen = 0;
- 	s++; t++;
+	s++; t++;
     }
     p = t;
 
@@ -309,7 +309,7 @@
 	    ext[++extlen] = '\0';
         }
 	else if (baselen < 8) {
-   	    *p++ = *suffix;
+	    *p++ = *suffix;
 	}
 	else if (ext[3] != *suffix) {
 	    ext[3] = *suffix;
Index: regexec.c
===================================================================
--- regexec.c	(revision 25929)
+++ regexec.c	(revision 25930)
@@ -879,7 +879,7 @@
             }\
             k++;\
           }\
-  	  break;\
+	  break;\
         }\
       }\
     }\
@@ -920,7 +920,7 @@
               }\
               k++;\
             }\
-  	    break;\
+	    break;\
           }\
         }\
         else {\
Index: hash.c
===================================================================
--- hash.c	(revision 25929)
+++ hash.c	(revision 25930)
@@ -193,7 +193,7 @@
 hash_foreach_call(struct hash_foreach_arg *arg)
 {
     if (st_foreach(RHASH(arg->hash)->ntbl, hash_foreach_iter, (st_data_t)arg)) {
- 	rb_raise(rb_eRuntimeError, "hash modified during iteration");
+	rb_raise(rb_eRuntimeError, "hash modified during iteration");
     }
     return Qnil;
 }
Index: bignum.c
===================================================================
--- bignum.c	(revision 25929)
+++ bignum.c	(revision 25930)
@@ -1904,8 +1904,8 @@
 
     if (!BIGZEROP(xl) && !BIGZEROP(yl)) {
 	/* t2 <- xl * yl */
-    	t2 = bigmul0(xl, yl);
-    	t2n = big_real_len(t2);
+	t2 = bigmul0(xl, yl);
+	t2n = big_real_len(t2);
 
 	/* copy t2 into low bytes of the result (z0) */
 	MEMCPY(zds, BDIGITS(t2), BDIGIT, t2n);
@@ -2013,7 +2013,7 @@
     long i;
     printf("0x0");
     for (i = RBIGNUM_LEN(x); i--; ) {
-    	printf("_%08x", BDIGITS(x)[i]);
+	printf("_%08x", BDIGITS(x)[i]);
     }
     puts("");
 }
@@ -2041,7 +2041,7 @@
       normal:
 	if (x == y) return bigsqr_fast(x);
 	if (xn == 1 && yn == 1) return bigmul1_single(x, y);
-    	return bigmul1_normal(x, y);
+	return bigmul1_normal(x, y);
     }
 
     /* normal multiplication when x or y is a sparse bignum */
Index: transcode.c
===================================================================
--- transcode.c	(revision 25929)
+++ transcode.c	(revision 25930)
@@ -675,7 +675,7 @@
 	  case UNDEF:
 	    goto undef;
 	  default:
-	  	rb_raise(rb_eRuntimeError, "unknown transcoding instruction");
+	    rb_raise(rb_eRuntimeError, "unknown transcoding instruction");
 	}
 	continue;
 

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

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