Skip to content

Commit 12d2c8b

Browse files
committed
stripped trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 624d07b commit 12d2c8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+847
-849
lines changed

array.c

Lines changed: 190 additions & 190 deletions
Large diffs are not rendered by default.

bignum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ bigmul1_karatsuba(VALUE x, VALUE y)
17141714
t1 = xl; xl = xh; xh = t1;
17151715
}
17161716
bigadd_core(BDIGITS(xh), RBIGNUM_LEN(xh),
1717-
BDIGITS(xl), RBIGNUM_LEN(xl),
1717+
BDIGITS(xl), RBIGNUM_LEN(xl),
17181718
BDIGITS(xh), RBIGNUM_LEN(xh));
17191719

17201720
/* yh <- yh + yl */
@@ -1723,7 +1723,7 @@ bigmul1_karatsuba(VALUE x, VALUE y)
17231723
t1 = yl; yl = yh; yh = t1;
17241724
}
17251725
bigadd_core(BDIGITS(yh), RBIGNUM_LEN(yh),
1726-
BDIGITS(yl), RBIGNUM_LEN(yl),
1726+
BDIGITS(yl), RBIGNUM_LEN(yl),
17271727
BDIGITS(yh), RBIGNUM_LEN(yh));
17281728
}
17291729
else yh = xh;

blockinlining.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ iseq_special_block(rb_iseq_t *iseq, void *builder)
3434
else {
3535
iseq->cached_special_block_builder = (void *)1;
3636
}
37-
37+
3838
if (iseq->parent_iseq) {
3939
parent = iseq->parent_iseq->self;
4040
}

class.c

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ clone_method(ID mid, NODE *body, struct clone_method_data *data)
8282
NODE *fbody = body->nd_body->nd_body;
8383

8484
if (nd_type(fbody) == RUBY_VM_METHOD_NODE) {
85-
fbody = NEW_NODE(RUBY_VM_METHOD_NODE, 0,
85+
fbody = NEW_NODE(RUBY_VM_METHOD_NODE, 0,
8686
rb_iseq_clone((VALUE)fbody->nd_body, data->klass),
8787
0);
8888
}
@@ -198,7 +198,7 @@ make_metametaclass(VALUE metaclass)
198198
}
199199
else {
200200
metametaclass = rb_class_boot(Qnil);
201-
RBASIC(metametaclass)->klass =
201+
RBASIC(metametaclass)->klass =
202202
(RBASIC(RBASIC(metaclass)->klass)->klass == RBASIC(metaclass)->klass)
203203
? make_metametaclass(RBASIC(metaclass)->klass)
204204
: RBASIC(RBASIC(metaclass)->klass)->klass;
@@ -212,9 +212,9 @@ make_metametaclass(VALUE metaclass)
212212
while (FL_TEST(super_of_metaclass, T_ICLASS)) {
213213
super_of_metaclass = RCLASS_SUPER(super_of_metaclass);
214214
}
215-
RCLASS_SUPER(metametaclass) =
215+
RCLASS_SUPER(metametaclass) =
216216
rb_iv_get(RBASIC(super_of_metaclass)->klass, "__attached__") == super_of_metaclass
217-
? RBASIC(super_of_metaclass)->klass
217+
? RBASIC(super_of_metaclass)->klass
218218
: make_metametaclass(super_of_metaclass);
219219
OBJ_INFECT(metametaclass, RCLASS_SUPER(metametaclass));
220220

@@ -422,7 +422,7 @@ rb_include_module(VALUE klass, VALUE module)
422422
if (!OBJ_UNTRUSTED(klass)) {
423423
rb_secure(4);
424424
}
425-
425+
426426
if (TYPE(module) != T_MODULE) {
427427
Check_Type(module, T_MODULE);
428428
}
@@ -461,16 +461,16 @@ rb_include_module(VALUE klass, VALUE module)
461461
/*
462462
* call-seq:
463463
* mod.included_modules -> array
464-
*
464+
*
465465
* Returns the list of modules included in <i>mod</i>.
466-
*
466+
*
467467
* module Mixin
468468
* end
469-
*
469+
*
470470
* module Outer
471471
* include Mixin
472472
* end
473-
*
473+
*
474474
* Mixin.included_modules #=> []
475475
* Outer.included_modules #=> [Mixin]
476476
*/
@@ -492,10 +492,10 @@ rb_mod_included_modules(VALUE mod)
492492
/*
493493
* call-seq:
494494
* mod.include?(module) => true or false
495-
*
495+
*
496496
* Returns <code>true</code> if <i>module</i> is included in
497497
* <i>mod</i> or one of <i>mod</i>'s ancestors.
498-
*
498+
*
499499
* module A
500500
* end
501501
* class B
@@ -525,15 +525,15 @@ rb_mod_include_p(VALUE mod, VALUE mod2)
525525
/*
526526
* call-seq:
527527
* mod.ancestors -> array
528-
*
528+
*
529529
* Returns a list of modules included in <i>mod</i> (including
530530
* <i>mod</i> itself).
531-
*
531+
*
532532
* module Mod
533533
* include Math
534534
* include Comparable
535535
* end
536-
*
536+
*
537537
* Mod.ancestors #=> [Mod, Comparable, Math]
538538
* Math.ancestors #=> [Math]
539539
*/
@@ -612,7 +612,7 @@ method_entry(ID key, NODE *body, st_table *list)
612612
if (key == ID_ALLOCATOR) {
613613
return ST_CONTINUE;
614614
}
615-
615+
616616
if (!st_lookup(list, key, 0)) {
617617
if (body ==0 || !body->nd_body->nd_body) {
618618
type = -1; /* none */
@@ -658,14 +658,14 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
658658
/*
659659
* call-seq:
660660
* mod.instance_methods(include_super=true) => array
661-
*
661+
*
662662
* Returns an array containing the names of instance methods that is callable
663663
* from outside in the receiver. For a module, these are the public methods;
664664
* for a class, they are the instance (not singleton) methods. With no
665665
* argument, or with an argument that is <code>false</code>, the
666666
* instance methods in <i>mod</i> are returned, otherwise the methods
667667
* in <i>mod</i> and <i>mod</i>'s superclasses are returned.
668-
*
668+
*
669669
* module A
670670
* def method1() end
671671
* end
@@ -675,7 +675,7 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
675675
* class C < B
676676
* def method3() end
677677
* end
678-
*
678+
*
679679
* A.instance_methods #=> [:method1]
680680
* B.instance_methods(false) #=> [:method2]
681681
* C.instance_methods(false) #=> [:method3]
@@ -691,7 +691,7 @@ rb_class_instance_methods(int argc, VALUE *argv, VALUE mod)
691691
/*
692692
* call-seq:
693693
* mod.protected_instance_methods(include_super=true) => array
694-
*
694+
*
695695
* Returns a list of the protected instance methods defined in
696696
* <i>mod</i>. If the optional parameter is not <code>false</code>, the
697697
* methods of any ancestors are included.
@@ -706,11 +706,11 @@ rb_class_protected_instance_methods(int argc, VALUE *argv, VALUE mod)
706706
/*
707707
* call-seq:
708708
* mod.private_instance_methods(include_super=true) => array
709-
*
709+
*
710710
* Returns a list of the private instance methods defined in
711711
* <i>mod</i>. If the optional parameter is not <code>false</code>, the
712712
* methods of any ancestors are included.
713-
*
713+
*
714714
* module Mod
715715
* def method1() end
716716
* private :method1
@@ -729,7 +729,7 @@ rb_class_private_instance_methods(int argc, VALUE *argv, VALUE mod)
729729
/*
730730
* call-seq:
731731
* mod.public_instance_methods(include_super=true) => array
732-
*
732+
*
733733
* Returns a list of the public instance methods defined in <i>mod</i>.
734734
* If the optional parameter is not <code>false</code>, the methods of
735735
* any ancestors are included.
@@ -744,30 +744,30 @@ rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod)
744744
/*
745745
* call-seq:
746746
* obj.singleton_methods(all=true) => array
747-
*
747+
*
748748
* Returns an array of the names of singleton methods for <i>obj</i>.
749749
* If the optional <i>all</i> parameter is true, the list will include
750750
* methods in modules included in <i>obj</i>.
751-
*
751+
*
752752
* module Other
753753
* def three() end
754754
* end
755-
*
755+
*
756756
* class Single
757757
* def Single.four() end
758758
* end
759-
*
759+
*
760760
* a = Single.new
761-
*
761+
*
762762
* def a.one()
763763
* end
764-
*
764+
*
765765
* class << a
766766
* include Other
767767
* def two()
768768
* end
769769
* end
770-
*
770+
*
771771
* Single.singleton_methods #=> [:four]
772772
* a.singleton_methods(false) #=> [:two, :one]
773773
* a.singleton_methods #=> [:two, :one, :three]
@@ -932,7 +932,7 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
932932
postargc = *q - '0';
933933
nonpostargc = argc - postargc;
934934
}
935-
else {
935+
else {
936936
postargc = 0;
937937
nonpostargc = argc;
938938
}
@@ -941,7 +941,7 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
941941
if (nonpostargc < 0)
942942
rb_raise(rb_eArgError, "wrong number of arguments (%d for %d)",
943943
argc, postargc);
944-
goto rest_arg;
944+
goto rest_arg;
945945
}
946946
else if (ISDIGIT(*p)) {
947947
/* leading mandatory arguments */

compar.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cmp_failed(void)
5050
/*
5151
* call-seq:
5252
* obj == other => true or false
53-
*
53+
*
5454
* Compares two objects based on the receiver's <code><=></code>
5555
* method, returning true if it returns 0. Also returns true if
5656
* _obj_ and _other_ are the same object.
@@ -70,7 +70,7 @@ cmp_equal(VALUE x, VALUE y)
7070
/*
7171
* call-seq:
7272
* obj > other => true or false
73-
*
73+
*
7474
* Compares two objects based on the receiver's <code><=></code>
7575
* method, returning true if it returns 1.
7676
*/
@@ -87,7 +87,7 @@ cmp_gt(VALUE x, VALUE y)
8787
/*
8888
* call-seq:
8989
* obj >= other => true or false
90-
*
90+
*
9191
* Compares two objects based on the receiver's <code><=></code>
9292
* method, returning true if it returns 0 or 1.
9393
*/
@@ -104,7 +104,7 @@ cmp_ge(VALUE x, VALUE y)
104104
/*
105105
* call-seq:
106106
* obj < other => true or false
107-
*
107+
*
108108
* Compares two objects based on the receiver's <code><=></code>
109109
* method, returning true if it returns -1.
110110
*/
@@ -121,7 +121,7 @@ cmp_lt(VALUE x, VALUE y)
121121
/*
122122
* call-seq:
123123
* obj <= other => true or false
124-
*
124+
*
125125
* Compares two objects based on the receiver's <code><=></code>
126126
* method, returning true if it returns -1 or 0.
127127
*/
@@ -138,16 +138,16 @@ cmp_le(VALUE x, VALUE y)
138138
/*
139139
* call-seq:
140140
* obj.between?(min, max) => true or false
141-
*
141+
*
142142
* Returns <code>false</code> if <i>obj</i> <code><=></code>
143143
* <i>min</i> is less than zero or if <i>anObject</i> <code><=></code>
144144
* <i>max</i> is greater than zero, <code>true</code> otherwise.
145-
*
145+
*
146146
* 3.between?(1, 5) #=> true
147147
* 6.between?(1, 5) #=> false
148148
* 'cat'.between?('ant', 'dog') #=> true
149149
* 'gnu'.between?('ant', 'dog') #=> false
150-
*
150+
*
151151
*/
152152

153153
static VALUE
@@ -167,7 +167,7 @@ cmp_between(VALUE x, VALUE min, VALUE max)
167167
* <code><=></code> to implement the conventional comparison operators
168168
* (<code><</code>, <code><=</code>, <code>==</code>, <code>>=</code>,
169169
* and <code>></code>) and the method <code>between?</code>.
170-
*
170+
*
171171
* class SizeMatters
172172
* include Comparable
173173
* attr :str
@@ -181,18 +181,18 @@ cmp_between(VALUE x, VALUE min, VALUE max)
181181
* @str
182182
* end
183183
* end
184-
*
184+
*
185185
* s1 = SizeMatters.new("Z")
186186
* s2 = SizeMatters.new("YY")
187187
* s3 = SizeMatters.new("XXX")
188188
* s4 = SizeMatters.new("WWWW")
189189
* s5 = SizeMatters.new("VVVVV")
190-
*
190+
*
191191
* s1 < s2 #=> true
192192
* s4.between?(s1, s3) #=> false
193193
* s4.between?(s3, s5) #=> true
194194
* [ s3, s2, s5, s4, s1 ].sort #=> [Z, YY, XXX, WWWW, VVVVV]
195-
*
195+
*
196196
*/
197197

198198
void

compile.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3962,7 +3962,6 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
39623962
VALUE label;
39633963
VALUE label_sym;
39643964

3965-
39663965
CONST_ID(goto_id, "__goto__");
39673966
CONST_ID(label_id, "__label__");
39683967

0 commit comments

Comments
 (0)