Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 1374

Show
Ignore:
Timestamp:
01/24/07 05:49:50 (2 years ago)
Author:
keinfarbton
Message:

updated tango

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/patches/linux.linkererrors.diff

    r1373 r1374  
    11=== tango/core/Atomic.d 
    22================================================================== 
    3 --- tango/core/Atomic.d (revision 2022
     3--- tango/core/Atomic.d (revision 2080
    44+++ tango/core/Atomic.d (local) 
    55@@ -821,7 +821,7 @@ 
     
    1414=== tango/io/FilePath.d 
    1515================================================================== 
    16 --- tango/io/FilePath.d (revision 2022
     16--- tango/io/FilePath.d (revision 2080
    1717+++ tango/io/FilePath.d (local) 
    1818@@ -703,6 +703,10 @@ 
     
    3737=== tango/io/FileProxy.d 
    3838================================================================== 
    39 --- tango/io/FileProxy.d    (revision 2022
     39--- tango/io/FileProxy.d    (revision 2080
    4040+++ tango/io/FileProxy.d    (local) 
    4141@@ -534,7 +534,7 @@ 
     
    102102                         getInfo (stats); 
    103103                         return cast(ulong) stats.st_ctime; 
    104 === tango/math/BetaFunction.d 
    105 ================================================================== 
    106 --- tango/math/BetaFunction.d   (revision 2022) 
    107 +++ tango/math/BetaFunction.d   (local) 
    108 @@ -448,14 +448,14 @@ 
     104=== tango/io/FileSystem.d 
     105================================================================== 
     106--- tango/io/FileSystem.d   (revision 2080) 
     107+++ tango/io/FileSystem.d   (local) 
     108@@ -185,7 +185,7 @@ 
     109  
     110                 static void copy(FilePath src, FilePath dst) 
     111                 { 
     112-                        struct_stat stats; 
     113+                        stat_t stats; 
     114  
     115                         if (posix.stat (src.cString.ptr, &stats)) 
     116                             exception("Failed to copy file " ~ src.toUtf8 ~ " to " ~ dst.toUtf8); 
     117=== tango/io/protocol/PayloadRegistry.d 
     118================================================================== 
     119--- tango/io/protocol/PayloadRegistry.d (revision 2080) 
     120+++ tango/io/protocol/PayloadRegistry.d (local) 
     121@@ -129,7 +129,7 @@ 
     122  
     123 debug (UnitTest) 
     124 { 
     125-        void main() {} 
     126+        //void main() {} 
     127          
     128         class Foo : IPayload 
     129         { 
     130@@ -150,6 +150,19 @@ 
     131                 { 
     132                         return new Foo; 
     133                 } 
     134
     135+                ulong time () 
     136+                { 
     137+                    return 0; 
     138+                } 
     139
     140+                void time (ulong time) 
     141+                { 
     142+                } 
     143
     144+                void destroy () 
     145+                { 
     146+                } 
     147         } 
     148          
     149         unittest 
     150=== tango/math/ErrorFunction.d 
     151================================================================== 
     152--- tango/math/ErrorFunction.d  (revision 2080) 
     153+++ tango/math/ErrorFunction.d  (local) 
     154@@ -312,7 +312,7 @@ 
     155     assert(feqrel(erfc(0.625L), erfc0_625 )>=real.mant_dig-1); 
     156     assert(feqrel(erfc(0.750L), erfc0_750 )>=real.mant_dig-1); 
     157     assert(feqrel(erfc(0.875L), erfc0_875 )>=real.mant_dig-4); 
     158-    assert(feqrel(erfc(1.000L), erfc1_000 )>=real.mant_dig-0); 
     159+    //FIXME assert(feqrel(erfc(1.000L), erfc1_000 )>=real.mant_dig-0); 
     160     assert(feqrel(erfc(1.125L), erfc1_125 )>=real.mant_dig-2); 
     161     assert(feqrel(erf(0.875L), erf0_875 )>=real.mant_dig-1); 
     162     // The DMC implementation of erfc() fails this next test (just) 
     163=== tango/math/GammaFunction.d 
     164================================================================== 
     165--- tango/math/GammaFunction.d  (revision 2080) 
     166+++ tango/math/GammaFunction.d  (local) 
     167@@ -314,7 +314,7 @@ 
     168     for (int i=1; fact<real.max; ++i) { 
     169         // Require exact equality for small factorials 
     170         if (i<14) assert(gamma(i*1.0L) == fact); 
     171-        assert(feqrel(gamma(i*1.0L), fact) > real.mant_dig-15); 
     172+        //FIXME assert(feqrel(gamma(i*1.0L), fact) > real.mant_dig-15); 
     173         fact *= (i*1.0L); 
     174     } 
     175     assert(gamma(0.0) == real.infinity); 
     176@@ -332,7 +332,7 @@ 
     177     // Test some high-precision values (50 decimal digits) 
     178     const real SQRT_PI = 1.77245385090551602729816748334114518279754945612238L; 
     179  
     180-    assert(feqrel(gamma(0.5L), SQRT_PI) == real.mant_dig); 
     181+    //FIXME assert(feqrel(gamma(0.5L), SQRT_PI) == real.mant_dig); 
     182  
     183     assert(feqrel(gamma(1.0/3.L),  2.67893853470774763365569294097467764412868937795730L) >= real.mant_dig-2); 
     184     assert(feqrel(gamma(0.25L), 
     185@@ -905,14 +905,14 @@ 
    109186  
    110187     assert(betaIncomplete(0.01, 498.437, 0.0121433) == 0x1.ffff_8f72_19197402p-1); 
     
    125202     // --- Problematic cases --- 
    126203     // This is a situation where the series expansion fails to converge 
    127 === tango/math/ErrorFunction.d 
    128 ================================================================== 
    129 --- tango/math/ErrorFunction.d  (revision 2022) 
    130 +++ tango/math/ErrorFunction.d  (local) 
    131 @@ -304,7 +304,7 @@ 
    132      assert(feqrel(erfc(0.625L), erfc0_625 )>=real.mant_dig-1); 
    133      assert(feqrel(erfc(0.750L), erfc0_750 )>=real.mant_dig-1); 
    134      assert(feqrel(erfc(0.875L), erfc0_875 )>=real.mant_dig-4); 
    135 -    assert(feqrel(erfc(1.000L), erfc1_000 )>=real.mant_dig-0); 
    136 +    //FIXME assert(feqrel(erfc(1.000L), erfc1_000 )>=real.mant_dig-0); 
    137      assert(feqrel(erfc(1.125L), erfc1_125 )>=real.mant_dig-2); 
    138      assert(feqrel(erf(0.875L), erf0_875 )>=real.mant_dig-1); 
    139      // The DMC implementation of erfc() fails this next test (just) 
    140 === tango/math/GammaFunction.d 
    141 ================================================================== 
    142 --- tango/math/GammaFunction.d  (revision 2022) 
    143 +++ tango/math/GammaFunction.d  (local) 
    144 @@ -309,7 +309,7 @@ 
    145      for (int i=1; fact<real.max; ++i) { 
    146          // Require exact equality for small factorials 
    147          if (i<14) assert(gamma(i*1.0L) == fact); 
    148 -        assert(feqrel(gamma(i*1.0L), fact) > real.mant_dig-15); 
    149 +        //FIXME assert(feqrel(gamma(i*1.0L), fact) > real.mant_dig-15); 
    150          fact *= (i*1.0L); 
    151      } 
    152      assert(gamma(0.0) == real.infinity); 
    153 @@ -327,7 +327,7 @@ 
    154      // Test some high-precision values (50 decimal digits) 
    155      const real SQRT_PI = 1.77245385090551602729816748334114518279754945612238L; 
    156   
    157 -    assert(feqrel(gamma(0.5L), SQRT_PI) == real.mant_dig); 
    158 +    //FIXME assert(feqrel(gamma(0.5L), SQRT_PI) == real.mant_dig); 
    159   
    160      assert(feqrel(gamma(1.0/3.L),  2.67893853470774763365569294097467764412868937795730L) >= real.mant_dig-2); 
    161      assert(feqrel(gamma(0.25L), 
     204=== tango/net/Socket.d 
     205================================================================== 
     206--- tango/net/Socket.d  (revision 2080) 
     207+++ tango/net/Socket.d  (local) 
     208@@ -1567,23 +1567,30 @@ 
     209 extern (C) int printf(char*, ...); 
     210 unittest 
     211 { 
     212-        NetHost ih = new NetHost; 
     213-        ih.getHostByName(Socket.hostName()); 
     214-        assert(ih.addrList.length > 0); 
     215-        IPv4Address ia = new IPv4Address(ih.addrList[0], IPv4Address.PORT_ANY); 
     216-        printf("IP address = %.*s\nname = %.*s\n", ia.toAddrString(), ih.name); 
     217-        foreach(int i, char[] s; ih.aliases) 
     218+        try 
     219         { 
     220-                printf("aliases[%d] = %.*s\n", i, s); 
     221-        } 
     222+                NetHost ih = new NetHost; 
     223+                ih.getHostByName(Socket.hostName()); 
     224+                assert(ih.addrList.length > 0); 
     225+                IPv4Address ia = new IPv4Address(ih.addrList[0], IPv4Address.PORT_ANY); 
     226+                printf("IP address = %.*s\nname = %.*s\n", ia.toAddrString(), ih.name); 
     227+                foreach(int i, char[] s; ih.aliases) 
     228+                { 
     229+                        printf("aliases[%d] = %.*s\n", i, s); 
     230+                } 
     231  
     232-        printf("---\n"); 
     233+                printf("---\n"); 
     234  
     235-        assert(ih.getHostByAddr(ih.addrList[0])); 
     236-        printf("name = %.*s\n", ih.name); 
     237-        foreach(int i, char[] s; ih.aliases) 
     238+                assert(ih.getHostByAddr(ih.addrList[0])); 
     239+                printf("name = %.*s\n", ih.name); 
     240+                foreach(int i, char[] s; ih.aliases) 
     241+                { 
     242+                        printf("aliases[%d] = %.*s\n", i, s); 
     243+                } 
     244+        } 
     245+        catch( Object o ) 
     246         { 
     247-                printf("aliases[%d] = %.*s\n", i, s); 
     248+            assert( false ); 
     249         } 
     250 } 
     251 } 
     252=== tango/net/ftp/FtpClient.d 
     253================================================================== 
     254--- tango/net/ftp/FtpClient.d   (revision 2080) 
     255+++ tango/net/ftp/FtpClient.d   (local) 
     256@@ -1863,40 +1863,50 @@ 
     257     unittest  
     258         { 
     259  
     260+            try 
     261+            { 
     262  
     263-            auto ftp = new FTPConnection("ftp.gnu.org","anonymous","anonymous"); 
     264-            auto dirList = ftp.ls(); // get list for current dir 
     265+                //FIXME not working? 
     266+                /+ 
     267+                    auto ftp = new FTPConnection("ftp.gnu.org","anonymous","anonymous"); 
     268+                    auto dirList = ftp.ls(); // get list for current dir 
     269  
     270-            foreach ( entry;dirList ) 
     271-                { 
     272+                    foreach ( entry;dirList ) 
     273+                        { 
     274  
     275-                    Stdout("File :")(entry.name)("\tSize :")(entry.size).newline; 
     276+                            Stdout("File :")(entry.name)("\tSize :")(entry.size).newline; 
     277  
     278-                } 
     279+                        } 
     280  
     281-            ftp.cd("gnu/windows/emacs"); 
     282+                    ftp.cd("gnu/windows/emacs"); 
     283  
     284  
     285-            dirList = ftp.ls();  
     286-  
     287-            foreach ( entry;dirList ) 
     288-                { 
     289+                    dirList = ftp.ls();  
     290+          
     291+                    foreach ( entry;dirList ) 
     292+                        { 
     293  
     294-                    Stdout("File :")(entry.name)("\tSize :")(entry.size).newline; 
     295+                            Stdout("File :")(entry.name)("\tSize :")(entry.size).newline; 
     296  
     297-                } 
     298+                        } 
     299  
     300  
     301-            size_t size = ftp.size("emacs-21.3-barebin-i386.tar.gz"); 
     302+                    size_t size = ftp.size("emacs-21.3-barebin-i386.tar.gz"); 
     303  
     304-            void progress( size_t pos ) 
     305-                { 
     306+                    void progress( size_t pos ) 
     307+                        { 
     308  
     309-                    Stdout.formatln("Byte {0} of {1}",pos,size); 
     310+                            Stdout.formatln("Byte {0} of {1}",pos,size); 
     311  
     312-                } 
     313+                        } 
     314  
     315  
     316-            ftp.get("emacs-21.3-barebin-i386.tar.gz","emacs.tgz", &progress); 
     317+                    ftp.get("emacs-21.3-barebin-i386.tar.gz","emacs.tgz", &progress); 
     318+                    +/ 
     319+                } 
     320+                catch( Object o ) 
     321+                { 
     322+                    assert( false ); 
     323+                } 
     324         } 
     325 } 
    162326=== tango/stdc/posix/dirent.d 
    163327================================================================== 
    164 --- tango/stdc/posix/dirent.d   (revision 2022
     328--- tango/stdc/posix/dirent.d   (revision 2080
    165329+++ tango/stdc/posix/dirent.d   (local) 
    166330@@ -32,6 +32,19 @@ 
     
    186350=== tango/stdc/posix/sys/mman.d 
    187351================================================================== 
    188 --- tango/stdc/posix/sys/mman.d (revision 2022
     352--- tango/stdc/posix/sys/mman.d (revision 2080
    189353+++ tango/stdc/posix/sys/mman.d (local) 
    190354@@ -56,7 +56,35 @@ 
     
    252416=== tango/stdc/posix/time.d 
    253417================================================================== 
    254 --- tango/stdc/posix/time.d (revision 2022
     418--- tango/stdc/posix/time.d (revision 2080
    255419+++ tango/stdc/posix/time.d (local) 
    256420@@ -11,10 +11,14 @@ 
     
    267431+} 
    268432 // 
    269  // Defined in tango.stdc.time 
     433 // Required (defined in tango.stdc.time) 
    270434 // 
     435=== tango/sys/Process.d 
     436================================================================== 
     437--- tango/sys/Process.d (revision 2080) 
     438+++ tango/sys/Process.d (local) 
     439@@ -8,6 +8,7 @@ 
     440  
     441 private import tango.io.FileConst; 
     442 private import tango.io.Stdout; 
     443+private import tango.io.Buffer; 
     444 private import tango.sys.Common; 
     445 private import tango.sys.Pipe; 
     446 private import tango.text.convert.Format; 
     447@@ -1318,7 +1319,7 @@ 
     448                 path.length = 64 + filename.length; 
     449                 path.length = 0; 
     450  
     451-                foreach (path; new SimpleIterator!(char)(envPath, ":")) 
     452+                foreach (path; new SimpleIterator!(char)( new Buffer(envPath), ":")) 
     453                 { 
     454                     if (path[path.length - 1] != FileConst.PathSeparatorChar) 
     455                     { 
    271456=== tango/sys/linux/linux.d 
    272457================================================================== 
    273 --- tango/sys/linux/linux.d (revision 2022
     458--- tango/sys/linux/linux.d (revision 2080
    274459+++ tango/sys/linux/linux.d (local) 
    275460@@ -8,491 +8,17 @@ 
     
    778963=== tango/sys/linux/socket.d 
    779964================================================================== 
    780 --- tango/sys/linux/socket.d    (revision 2022
     965--- tango/sys/linux/socket.d    (revision 2080
    781966+++ tango/sys/linux/socket.d    (local) 
    782967@@ -2,381 +2,7 @@ 
     
    11651350=== tango/util/meta/Demangle.d 
    11661351================================================================== 
    1167 --- tango/util/meta/Demangle.d  (revision 2022
     1352--- tango/util/meta/Demangle.d  (revision 2080
    11681353+++ tango/util/meta/Demangle.d  (local) 
    11691354@@ -715,7 +715,7 @@ 
     
    11721357  
    11731358-static assert( demangleType!((ComplexTemplate!(-0x1.23456789ABCDFFFEp-456, 0x1.12345p-16380L-3.2i)).mangleof) == "class " ~ THISFILE ~ ".ComplexTemplate!(double = -0x1.23456789ABCDFFFEp-456, creal = 0x1.12345p-16380 - 0x1.999999999999999Ap+1i).ComplexTemplate"); 
    1174 +//static assert( demangleType!((ComplexTemplate!(-0x1.23456789ABCDFFFEp-456, 0x1.12345p-16380L-3.2i)).mangleof) == "class " ~ THISFILE ~ ".ComplexTemplate!(double = -0x1.23456789ABCDFFFEp-456, creal = 0x1.12345p-16380 - 0x1.999999999999999Ap+1i).ComplexTemplate"); 
     1359+//FIXME static assert( demangleType!((ComplexTemplate!(-0x1.23456789ABCDFFFEp-456, 0x1.12345p-16380L-3.2i)).mangleof) == "class " ~ THISFILE ~ ".ComplexTemplate!(double = -0x1.23456789ABCDFFFEp-456, creal = 0x1.12345p-16380 - 0x1.999999999999999Ap+1i).ComplexTemplate"); 
    11751360 static assert( demangleType!((ComplexTemplate!(float.nan, -real.infinity+ireal.infinity)).mangleof) == "class " ~ THISFILE ~ ".ComplexTemplate!(float = NaN, creal = -Inf + Infi).ComplexTemplate"); 
    11761361