Mercurial > projects > ldc
diff tango/tango/io/Buffer.d @ 136:0e28624814e8 trunk
[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
author | lindquist |
---|---|
date | Thu, 17 Jan 2008 03:15:12 +0100 |
parents | 1700239cab2e |
children | ce7b81fb957f |
line wrap: on
line diff
--- a/tango/tango/io/Buffer.d Mon Jan 14 23:09:55 2008 +0100 +++ b/tango/tango/io/Buffer.d Thu Jan 17 03:15:12 2008 +0100 @@ -25,6 +25,7 @@ extern (C) { protected void * memcpy (void *dst, void *src, uint); + private int printf(char*, ...); } /******************************************************************************* @@ -163,10 +164,14 @@ this (IConduit conduit) { + printf("Buffer.this(%p)\n", conduit); + assert (conduit !is null); assert (conduit); this (conduit.bufferSize); setConduit (conduit); + + assert(this !is null); } /*********************************************************************** @@ -221,7 +226,8 @@ this (uint capacity = 0) { - setContent (new ubyte[capacity], 0); + setContent (new ubyte[capacity], 0); + assert(this !is null); } /***********************************************************************