char[] intToString( char[] buf, uint val )
{
assert( buf.length > 9 );
char[] intToString( char[] buf, uint val )
{
assert( buf.length > 9 );
- char* p = buf.ptr + buf.length;
+ auto p = buf.ptr + buf.length;
+ *--p = cast(char)(val % 10 + '0');
} while( val /= 10 );
return buf[p - buf.ptr .. $];
} while( val /= 10 );
return buf[p - buf.ptr .. $];
# Makefile to build the composite D runtime library for Win32
# Designed to work with DigitalMars make
# Targets:
# Makefile to build the composite D runtime library for Win32
# Designed to work with DigitalMars make
# Targets:
-# make
-# Same as make all
-# make lib
-# Build the runtime library
+# make
+# Same as make all
+# make lib
+# Build the runtime library
# make doc
# Generate documentation
# make doc
# Generate documentation
-# make clean
-# Delete unneeded files created by build process
+# make clean
+# Delete unneeded files created by build process
LIB_TARGET=druntime-dmd.lib
LIB_MASK=druntime-dmd*.lib
LIB_TARGET=druntime-dmd.lib
LIB_MASK=druntime-dmd*.lib
make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
cd ..
cd $(DIR_RT)
make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
cd ..
cd $(DIR_RT)
+ make -fwin32.mak lib DC=$(DC)
cd ..\..
cd $(DIR_GC)
make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
cd ..\..
cd $(DIR_GC)
make -fwin32.mak lib DC=$(DC) ADD_DFLAGS="$(ADD_DFLAGS)" ADD_CFLAGS="$(ADD_CFLAGS)"
doc : $(ALL_DOCS)
cd $(DIR_CC)
doc : $(ALL_DOCS)
cd $(DIR_CC)
+ make -fwin32.mak doc DC=$(DC)
+ make -fwin32.mak doc DC=$(DC)
+ make -fwin32.mak doc DC=$(DC)
cd ..\..
######################################################
cd ..\..
######################################################