 |
Changeset 3420
- Timestamp:
- 04/08/08 12:34:05
(4 years ago)
- Author:
- larsivi
- Message:
Make X86_64 formatting hack apply to all platforms when using GDC. Man, GDC sucks. closes #1015
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3398 |
r3420 |
|
| 40 | 40 | *******************************************************************************/ |
|---|
| 41 | 41 | |
|---|
| 42 | | version (X86_64) |
|---|
| | 42 | version (GNU) |
|---|
| 43 | 43 | { |
|---|
| 44 | 44 | private import std.stdarg; |
|---|
| … | … | |
| 182 | 182 | assert (arguments.length < 64, "too many args in Layout.convert"); |
|---|
| 183 | 183 | |
|---|
| 184 | | version (X86_64) |
|---|
| | 184 | version (GNU) |
|---|
| 185 | 185 | { |
|---|
| 186 | 186 | Arg[64] arglist = void; |
|---|
| … | … | |
| 196 | 196 | foreach (i, arg; arguments) |
|---|
| 197 | 197 | { |
|---|
| 198 | | arglist[i] = args.ptr; |
|---|
| | 198 | arglist[i] = args; |
|---|
| 199 | 199 | /* Since floating point types don't live on |
|---|
| 200 | 200 | * the stack, they must be accessed by the |
|---|
| … | … | |
| 855 | 855 | assert( Formatter( "->{0,10}<-", 12345 ) == "-> 12345<-" ); |
|---|
| 856 | 856 | |
|---|
| 857 | | //assert( Formatter( "{0:f}", 1.23f ) == "1.23" ); |
|---|
| | 857 | assert( Formatter( "{0:f}", 1.23f ) == "1.23" ); |
|---|
| 858 | 858 | assert( Formatter( "{0:f4}", 1.23456789L ) == "1.2346" ); |
|---|
| 859 | 859 | assert( Formatter( "{0:e4}", 0.0001) == "0.1000e-03"); |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2012 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic