 |
Changeset 3779
- Timestamp:
- 07/21/08 08:49:59
(5 months ago)
- Author:
- larsivi
- Message:
Merging [3768]:[3778] into 0.99.7 release
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3199 |
r3779 |
|
| 11 | 11 | $DSSS_BUILD -obj -explicit lib/common/tango/core/Exception.d -fintfc-file=tango/core/Exception.di ; \ |
|---|
| 12 | 12 | $DSSS_BUILD -obj -explicit lib/common/tango/core/Memory.d -fintfc-file=tango/core/Memory.di ; \ |
|---|
| 13 | | $DSSS_BUILD -obj -explicit lib/common/tango/core/Runtime.d -fintfc-file=tango/core/Runtime.di ; \ |
|---|
| 14 | | $DSSS_BUILD -obj -explicit lib/common/tango/core/Thread.d -fintfc-file=tango/core/Thread.di ; |
|---|
| | 13 | $DSSS_BUILD -obj -explicit lib/common/tango/core/Runtime.d -fintfc-file=tango/core/Runtime.di ; |
|---|
| 15 | 14 | } else version (DigitalMars) { |
|---|
| 16 | 15 | prebuild = $DSSS_BUILD -obj -explicit lib/common/tango/core/BitManip.d -Hftango/core/BitManip.di ; \ |
|---|
| … | … | |
| 33 | 32 | |
|---|
| 34 | 33 | [tango/sys] |
|---|
| 35 | | exclude = tango/sys/linux/* tango/sys/darwin/* tango/sys/win32/* tango/sys/freebsd/* |
|---|
| | 34 | exclude = tango/sys/linux/* tango/sys/darwin/* tango/sys/freebsd/* |
|---|
| 36 | 35 | exclude += tango/sys/TimeConverter.d |
|---|
| | 36 | exclude += tango/sys/win32/Type.di |
|---|
| | 37 | exclude += tango/sys/win32/UserGdi.di |
|---|
| | 38 | exclude += tango/sys/win32/Process.di |
|---|
| | 39 | exclude += tango/sys/win32/Macros.di |
|---|
| 37 | 40 | |
|---|
| 38 | 41 | version (linux) { |
|---|
| … | … | |
| 70 | 73 | [tango/time] |
|---|
| 71 | 74 | |
|---|
| 72 | | [tango/group] |
|---|
| | 75 | [+std] |
|---|
| | 76 | preinstall = install std/intrinsic.di $INCLUDE_PREFIX/std ; \ |
|---|
| | 77 | install std/stdarg.di $INCLUDE_PREFIX/std ; \ |
|---|
| | 78 | install std/c/stdarg.di $INCLUDE_PREFIX/std/c |
|---|
| 73 | 79 | |
|---|
| 74 | | [+std] |
|---|
| 75 | | preinstall = installdir std $INCLUDE_PREFIX/std |
|---|
| r3646 |
r3779 |
|
| 26 | 26 | { |
|---|
| 27 | 27 | if(useMessageBoxes) |
|---|
| 28 | | MessageBoxA(null, cast(ubyte*) toStringz(msg), cast(ubyte*) "Tango Switch utility\0", 0); |
|---|
| | 28 | MessageBoxA(null, toStringz(msg), "Tango Switch utility\0", 0); |
|---|
| 29 | 29 | else |
|---|
| 30 | 30 | printf("%s\n", toStringz(msg)); |
|---|
| … | … | |
| 94 | 94 | } |
|---|
| 95 | 95 | |
|---|
| 96 | | MoveFileA(cast(ubyte*) toStringz(targetConf), cast(ubyte*) toStringz(tangoConf)); // backup the Tango Build config |
|---|
| 97 | | MoveFileA(cast(ubyte*) toStringz(phobosConf), cast(ubyte*) toStringz(targetConf)); // put Phobos's Build config in place |
|---|
| | 96 | MoveFileA(toStringz(targetConf), toStringz(tangoConf)); // backup the Tango Build config |
|---|
| | 97 | MoveFileA(toStringz(phobosConf), toStringz(targetConf)); // put Phobos's Build config in place |
|---|
| 98 | 98 | |
|---|
| 99 | | if (!CopyFileA(cast(ubyte*) toStringz(phobosLib), cast(ubyte*) toStringz(targetLib), false)) |
|---|
| | 99 | if (!CopyFileA(toStringz(phobosLib), toStringz(targetLib), false)) |
|---|
| 100 | 100 | showMessage("Error: Could not find " ~ phobosLib); |
|---|
| 101 | 101 | else |
|---|
| … | … | |
| 111 | 111 | } |
|---|
| 112 | 112 | |
|---|
| 113 | | MoveFileA(cast(ubyte*) toStringz(targetConf), cast(ubyte*) toStringz(phobosConf)); // backup the Phobos Build config |
|---|
| 114 | | MoveFileA(cast(ubyte*) toStringz(tangoConf), cast(ubyte*) toStringz(targetConf)); // put Tango's Build config in place |
|---|
| | 113 | MoveFileA(toStringz(targetConf), toStringz(phobosConf)); // backup the Phobos Build config |
|---|
| | 114 | MoveFileA(toStringz(tangoConf), toStringz(targetConf)); // put Tango's Build config in place |
|---|
| 115 | 115 | |
|---|
| 116 | | if (!CopyFileA(cast(ubyte*) toStringz(tangoLib), cast(ubyte*) toStringz(targetLib), false)) |
|---|
| | 116 | if (!CopyFileA(toStringz(tangoLib), toStringz(targetLib), false)) |
|---|
| 117 | 117 | showMessage("Error: Could not find " ~ tangoLib); |
|---|
| 118 | 118 | else |
|---|
| r3471 |
r3779 |
|
| 13 | 13 | |
|---|
| 14 | 14 | module tango.io.model.IConduit; |
|---|
| 15 | | |
|---|
| 16 | | public import tango.io.model.IBuffer; |
|---|
| 17 | 15 | |
|---|
| 18 | 16 | /******************************************************************************* |
|---|
| r3691 |
r3779 |
|
| 15 | 15 | |
|---|
| 16 | 16 | Layout can be customized via configuring various handlers and |
|---|
| 17 | | associated meta-date. This is utilized to plug in text.locale |
|---|
| | 17 | associated meta-data. This is utilized to plug in text.locale |
|---|
| 18 | 18 | for handling custom formats, date/time and culture-specific |
|---|
| 19 | 19 | conversions. |
|---|
| … | … | |
| 33 | 33 | private import Float = tango.text.convert.Float, |
|---|
| 34 | 34 | Integer = tango.text.convert.Integer; |
|---|
| | 35 | |
|---|
| | 36 | private import tango.io.model.IConduit : OutputStream; |
|---|
| 35 | 37 | |
|---|
| 36 | 38 | /******************************************************************************* |
|---|
| … | … | |
| 144 | 146 | { |
|---|
| 145 | 147 | return convert (sink, _arguments, _argptr, formatStr); |
|---|
| | 148 | } |
|---|
| | 149 | |
|---|
| | 150 | /********************************************************************** |
|---|
| | 151 | |
|---|
| | 152 | Tentative convert using an OutputStream as sink - may still be |
|---|
| | 153 | removed. |
|---|
| | 154 | |
|---|
| | 155 | Since: 0.99.7 |
|---|
| | 156 | |
|---|
| | 157 | **********************************************************************/ |
|---|
| | 158 | |
|---|
| | 159 | public final uint convert (OutputStream output, T[] formatStr, ...) |
|---|
| | 160 | { |
|---|
| | 161 | return convert (cast(Sink) &output.write, _arguments, _argptr, formatStr); |
|---|
| 146 | 162 | } |
|---|
| 147 | 163 | |
|---|
| … | … | |
| 901 | 917 | auto layout = new Layout!(char); |
|---|
| 902 | 918 | |
|---|
| | 919 | layout.convert (Cout.stream, "hi {}", "there\n"); |
|---|
| | 920 | |
|---|
| 903 | 921 | Cout (layout.sprint (new char[1], "hi")).newline; |
|---|
| 904 | 922 | Cout (layout.sprint (new char[10], "{.4}", "hello")).newline; |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic