Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 184e560

Browse filesBrowse files
committed
* removed spaces just before tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 0d280fa commit 184e560
Copy full SHA for 184e560

File tree

Expand file treeCollapse file tree

15 files changed

+35
-35
lines changed
Filter options
Expand file treeCollapse file tree

15 files changed

+35
-35
lines changed

‎bignum.c

Copy file name to clipboardExpand all lines: bignum.c
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,8 +1904,8 @@ bigmul1_karatsuba(VALUE x, VALUE y)
19041904

19051905
if (!BIGZEROP(xl) && !BIGZEROP(yl)) {
19061906
/* t2 <- xl * yl */
1907-
t2 = bigmul0(xl, yl);
1908-
t2n = big_real_len(t2);
1907+
t2 = bigmul0(xl, yl);
1908+
t2n = big_real_len(t2);
19091909

19101910
/* copy t2 into low bytes of the result (z0) */
19111911
MEMCPY(zds, BDIGITS(t2), BDIGIT, t2n);
@@ -2013,7 +2013,7 @@ dump_bignum(VALUE x)
20132013
long i;
20142014
printf("0x0");
20152015
for (i = RBIGNUM_LEN(x); i--; ) {
2016-
printf("_%08x", BDIGITS(x)[i]);
2016+
printf("_%08x", BDIGITS(x)[i]);
20172017
}
20182018
puts("");
20192019
}
@@ -2041,7 +2041,7 @@ bigmul0(VALUE x, VALUE y)
20412041
normal:
20422042
if (x == y) return bigsqr_fast(x);
20432043
if (xn == 1 && yn == 1) return bigmul1_single(x, y);
2044-
return bigmul1_normal(x, y);
2044+
return bigmul1_normal(x, y);
20452045
}
20462046

20472047
/* normal multiplication when x or y is a sparse bignum */

‎encoding.c

Copy file name to clipboardExpand all lines: encoding.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ rb_enc_associate_index(VALUE obj, int idx)
664664
{
665665
/* enc_check_capable(obj);*/
666666
if (rb_enc_get_index(obj) == idx)
667-
return obj;
667+
return obj;
668668
if (SPECIAL_CONST_P(obj)) {
669669
rb_raise(rb_eArgError, "cannot set encoding");
670670
}

‎gc.c

Copy file name to clipboardExpand all lines: gc.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ rb_newobj_from_heap(rb_objspace_t *objspace)
10091009
VALUE obj;
10101010

10111011
if ((ruby_gc_stress && !ruby_disable_gc_stress) || !freelist) {
1012-
if (!heaps_increment(objspace) && !garbage_collect(objspace)) {
1012+
if (!heaps_increment(objspace) && !garbage_collect(objspace)) {
10131013
during_gc = 0;
10141014
rb_memerror();
10151015
}

‎hash.c

Copy file name to clipboardExpand all lines: hash.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static VALUE
193193
hash_foreach_call(struct hash_foreach_arg *arg)
194194
{
195195
if (st_foreach(RHASH(arg->hash)->ntbl, hash_foreach_iter, (st_data_t)arg)) {
196-
rb_raise(rb_eRuntimeError, "hash modified during iteration");
196+
rb_raise(rb_eRuntimeError, "hash modified during iteration");
197197
}
198198
return Qnil;
199199
}

‎io.c

Copy file name to clipboardExpand all lines: io.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5648,7 +5648,7 @@ io_reopen(VALUE io, VALUE nfile)
56485648

56495649
nfile = rb_io_get_io(nfile);
56505650
if (rb_safe_level() >= 4 &&
5651-
(!OBJ_UNTRUSTED(io) || !OBJ_UNTRUSTED(nfile))) {
5651+
(!OBJ_UNTRUSTED(io) || !OBJ_UNTRUSTED(nfile))) {
56525652
rb_raise(rb_eSecurityError, "Insecure: can't reopen");
56535653
}
56545654
GetOpenFile(io, fptr);

‎re.c

Copy file name to clipboardExpand all lines: re.c
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ rb_memsearch_ss(const unsigned char *xs, long m, const unsigned char *ys, long n
113113
if (m > SIZEOF_VALUE)
114114
rb_bug("!!too long pattern string!!");
115115

116-
/* Prepare hash value */
116+
/* Prepare hash value */
117117
for (hx = *x++, hy = *y++; x < xe; ++x, ++y) {
118118
hx <<= CHAR_BIT;
119119
hy <<= CHAR_BIT;
@@ -356,7 +356,7 @@ rb_reg_expr_str(VALUE str, const char *s, long len)
356356
}
357357
else if (c == -1) {
358358
int l = mbclen(p, pend, enc);
359-
rb_str_buf_cat(str, p, l);
359+
rb_str_buf_cat(str, p, l);
360360
p += l;
361361
continue;
362362
}
@@ -526,9 +526,9 @@ rb_reg_to_s(VALUE re)
526526
rb_enc_get(re),
527527
OnigDefaultSyntax);
528528
if (r == 0) {
529-
++ptr;
530-
len -= 2;
531-
err = (onig_compile(rp, ptr, ptr + len, NULL, NULL, 0) != 0);
529+
++ptr;
530+
len -= 2;
531+
err = (onig_compile(rp, ptr, ptr + len, NULL, NULL, 0) != 0);
532532
}
533533
onig_free(rp);
534534
}

‎regerror.c

Copy file name to clipboardExpand all lines: regerror.c
+11-11Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,17 @@ static int to_ascii(OnigEncoding enc, UChar *s, UChar *end,
205205
while (p < end) {
206206
code = ONIGENC_MBC_TO_CODE(enc, p, end);
207207
if (code >= 0x80) {
208-
if (code > 0xffff && len + 10 <= buf_size) {
209-
sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
210-
sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16));
211-
sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8));
212-
sprint_byte((char*)(&(buf[len+8])), (unsigned int)code);
213-
len += 10;
214-
}
215-
else if (len + 6 <= buf_size) {
216-
sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
217-
sprint_byte((char*)(&(buf[len+4])), (unsigned int)code);
218-
len += 6;
208+
if (code > 0xffff && len + 10 <= buf_size) {
209+
sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
210+
sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16));
211+
sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8));
212+
sprint_byte((char*)(&(buf[len+8])), (unsigned int)code);
213+
len += 10;
214+
}
215+
else if (len + 6 <= buf_size) {
216+
sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
217+
sprint_byte((char*)(&(buf[len+4])), (unsigned int)code);
218+
len += 6;
219219
}
220220
else {
221221
break;

‎regexec.c

Copy file name to clipboardExpand all lines: regexec.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ stack_double(OnigStackType** arg_stk_base, OnigStackType** arg_stk_end,
879879
}\
880880
k++;\
881881
}\
882-
break;\
882+
break;\
883883
}\
884884
}\
885885
}\
@@ -920,7 +920,7 @@ stack_double(OnigStackType** arg_stk_base, OnigStackType** arg_stk_end,
920920
}\
921921
k++;\
922922
}\
923-
break;\
923+
break;\
924924
}\
925925
}\
926926
else {\

‎strftime.c

Copy file name to clipboardExpand all lines: strftime.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
521521
* live without, but it would be a great help to those of
522522
* us that muck around with various message processors.
523523
*/
524-
case 'z': /* time zone offset east of GMT e.g. -0600 */
524+
case 'z': /* time zone offset east of GMT e.g. -0600 */
525525
if (precision < 4) precision = 4;
526526
NEEDS(precision + 1);
527527
if (gmt) {
@@ -949,7 +949,7 @@ iso8601wknum(const struct tm *timeptr)
949949
* and that
950950
* timeptr->tm_wday MOD 7 == timeptr->tm_wday
951951
* from which it follows that. . .
952-
*/
952+
*/
953953
jan1day = timeptr->tm_wday - (timeptr->tm_yday % 7);
954954
if (jan1day < 0)
955955
jan1day += 7;

‎string.c

Copy file name to clipboardExpand all lines: string.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3902,7 +3902,7 @@ rb_str_reverse_bang(VALUE str)
39023902
while (s < e) {
39033903
c = *s;
39043904
*s++ = *e;
3905-
*e-- = c;
3905+
*e-- = c;
39063906
}
39073907
}
39083908
else {

‎time.c

Copy file name to clipboardExpand all lines: time.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3554,7 +3554,7 @@ time_strftime(VALUE time, VALUE format)
35543554
}
35553555
else {
35563556
len = rb_strftime_alloc(&buf, RSTRING_PTR(format),
3557-
&tobj->vtm, rb_time_unmagnify(tobj->timexv), TIME_UTC_P(tobj));
3557+
&tobj->vtm, rb_time_unmagnify(tobj->timexv), TIME_UTC_P(tobj));
35583558
}
35593559
str = rb_str_new(buf, len);
35603560
if (buf != buffer) xfree(buf);

‎transcode.c

Copy file name to clipboardExpand all lines: transcode.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
675675
case UNDEF:
676676
goto undef;
677677
default:
678-
rb_raise(rb_eRuntimeError, "unknown transcoding instruction");
678+
rb_raise(rb_eRuntimeError, "unknown transcoding instruction");
679679
}
680680
continue;
681681

‎util.c

Copy file name to clipboardExpand all lines: util.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ ruby_add_suffix(VALUE str, const char *suffix)
291291
while ((*t = *s) && *s != '.') {
292292
baselen++;
293293
if (*s == '\\' || *s == '/') baselen = 0;
294-
s++; t++;
294+
s++; t++;
295295
}
296296
p = t;
297297

@@ -309,7 +309,7 @@ ruby_add_suffix(VALUE str, const char *suffix)
309309
ext[++extlen] = '\0';
310310
}
311311
else if (baselen < 8) {
312-
*p++ = *suffix;
312+
*p++ = *suffix;
313313
}
314314
else if (ext[3] != *suffix) {
315315
ext[3] = *suffix;

‎variable.c

Copy file name to clipboardExpand all lines: variable.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ rb_alias_variable(ID name1, ID name2)
784784

785785
entry2 = rb_global_entry(name2);
786786
if (!st_lookup(rb_global_tbl, (st_data_t)name1, &data1)) {
787-
entry1 = ALLOC(struct global_entry);
787+
entry1 = ALLOC(struct global_entry);
788788
entry1->id = name1;
789789
st_add_direct(rb_global_tbl, name1, (st_data_t)entry1);
790790
}

‎vm_method.c

Copy file name to clipboardExpand all lines: vm_method.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ rb_add_method_def(VALUE klass, ID mid, rb_method_type_t type, rb_method_definiti
154154
klass = rb_cObject;
155155
}
156156
if (rb_safe_level() >= 4 &&
157-
(klass == rb_cObject || !OBJ_UNTRUSTED(klass))) {
157+
(klass == rb_cObject || !OBJ_UNTRUSTED(klass))) {
158158
rb_raise(rb_eSecurityError, "Insecure: can't define method");
159159
}
160160
if (!FL_TEST(klass, FL_SINGLETON) &&

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.