Skip to content

Commit 8641bfa

Browse files
committed
Replace all uses of "body" with "do".
1 parent f2a02ba commit 8641bfa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

engine/source/dmdscript/outbuffer.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class OutBuffer
7575
{
7676
assert(offset + nbytes <= data.length);
7777
}
78-
body
78+
do
7979
{
8080
//c.stdio.printf("OutBuffer.reserve: length = %d, offset = %d, nbytes = %d\n", data.length, offset, nbytes);
8181
if (data.length < offset + nbytes)
@@ -210,7 +210,7 @@ class OutBuffer
210210
{
211211
assert((offset & (alignsize - 1)) == 0);
212212
}
213-
body
213+
do
214214
{ uint nbytes;
215215

216216
nbytes = offset & (alignsize - 1);
@@ -261,7 +261,7 @@ class OutBuffer
261261
{
262262
assert(index <= offset);
263263
}
264-
body
264+
do
265265
{
266266
reserve(nbytes);
267267

engine/source/dmdscript/value.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct Value
107107
{
108108
assert(b == 1 || b == 0);
109109
}
110-
body
110+
do
111111
{ vtype = V_BOOLEAN;
112112
dbool = b; }
113113

@@ -178,7 +178,7 @@ struct Value
178178
static void copy(Value* to, Value* from)
179179
in { }
180180
out { assert(memcmp(to, from, Value.sizeof) == 0); }
181-
body
181+
do
182182

183183
{
184184
/+version(all /*UseAsm*/)

0 commit comments

Comments
 (0)