Skip to content

Commit 7d6d0b6

Browse files
authored
Merge pull request #43 from Geod24/do
Replace 'body' with 'do' keyword
2 parents d06aaa5 + 2c0f179 commit 7d6d0b6

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/undead/bitarray.d

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct BitArray
6060
{
6161
assert(i < len);
6262
}
63-
body
63+
do
6464
{
6565
return cast(bool)bt(ptr, i);
6666
}
@@ -71,7 +71,7 @@ struct BitArray
7171
{
7272
assert(i < len);
7373
}
74-
body
74+
do
7575
{
7676
if (b)
7777
bts(ptr, i);
@@ -183,7 +183,7 @@ struct BitArray
183183
{
184184
assert(result == this);
185185
}
186-
body
186+
do
187187
{
188188
if (len >= 2)
189189
{
@@ -228,7 +228,7 @@ struct BitArray
228228
{
229229
assert(result == this);
230230
}
231-
body
231+
do
232232
{
233233
if (len >= 2)
234234
{
@@ -419,7 +419,7 @@ struct BitArray
419419
assert(numbits <= v.length * 8);
420420
assert((v.length & 3) == 0);
421421
}
422-
body
422+
do
423423
{
424424
ptr = cast(typeof(ptr))v.ptr;
425425
len = numbits;
@@ -512,7 +512,7 @@ struct BitArray
512512
{
513513
assert(len == e2.length);
514514
}
515-
body
515+
do
516516
{
517517
auto dim = this.dim();
518518

@@ -552,7 +552,7 @@ struct BitArray
552552
{
553553
assert(len == e2.length);
554554
}
555-
body
555+
do
556556
{
557557
auto dim = this.dim();
558558

@@ -592,7 +592,7 @@ struct BitArray
592592
{
593593
assert(len == e2.length);
594594
}
595-
body
595+
do
596596
{
597597
auto dim = this.dim();
598598

@@ -634,7 +634,7 @@ struct BitArray
634634
{
635635
assert(len == e2.length);
636636
}
637-
body
637+
do
638638
{
639639
auto dim = this.dim();
640640

@@ -674,7 +674,7 @@ struct BitArray
674674
{
675675
assert(len == e2.length);
676676
}
677-
body
677+
do
678678
{
679679
auto dim = this.dim();
680680

@@ -710,7 +710,7 @@ struct BitArray
710710
{
711711
assert(len == e2.length);
712712
}
713-
body
713+
do
714714
{
715715
auto dim = this.dim();
716716

@@ -745,7 +745,7 @@ struct BitArray
745745
{
746746
assert(len == e2.length);
747747
}
748-
body
748+
do
749749
{
750750
auto dim = this.dim();
751751

@@ -782,7 +782,7 @@ struct BitArray
782782
{
783783
assert(len == e2.length);
784784
}
785-
body
785+
do
786786
{
787787
auto dim = this.dim();
788788

src/undead/date.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ in
565565
assert(0 <= weekday && weekday <= 6);
566566
assert(1 <= n && n <= 5);
567567
}
568-
body
568+
do
569569
{
570570
// Get day of the first of the month
571571
auto x = makeDay(year, month - 1, 1);

src/undead/regexp.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,7 @@ private:
27522752
{
27532753
assert(p < pattern.length);
27542754
}
2755-
body
2755+
do
27562756
{ int c;
27572757
int i;
27582758
rchar tc;

src/undead/stream.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ class BufferedStream : FilterStream {
18281828
assert(bufferSourcePos == 0);
18291829
assert(bufferLen == 0);
18301830
}
1831-
body {
1831+
do {
18321832
if (writeable && bufferDirty) {
18331833
if (bufferSourcePos != 0 && seekable) {
18341834
// move actual file pointer to front of buffer
@@ -2911,7 +2911,7 @@ class SliceStream : FilterStream {
29112911
in {
29122912
assert (low <= s.size);
29132913
}
2914-
body {
2914+
do {
29152915
super(s);
29162916
this.low = low;
29172917
this.high = 0;
@@ -2929,7 +2929,7 @@ class SliceStream : FilterStream {
29292929
assert (low <= high);
29302930
assert (high <= s.size);
29312931
}
2932-
body {
2932+
do {
29332933
super(s);
29342934
this.low = low;
29352935
this.high = high;

0 commit comments

Comments
 (0)