Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 642:307ae566885f

Show
Ignore:
Timestamp:
10/03/08 11:31:16 (3 months ago)
Author:
Christian Kamm <kamm incasoftware de>
branch:
default
Message:

Make default argument protection check not error for undefined protection.
Fix symbol visibility issues in Tango.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dmd/mtype.c

    r630 r642  
    29402940        if(arg->defaultArg->op == TOKvar) 
    29412941        {   VarExp *ve = (VarExp *)arg->defaultArg; 
    2942             if(ve->var->protection < sc->protection) 
     2942            if(ve->var->protection != PROTundefined && ve->var->protection < sc->protection) 
    29432943            error(loc, "default argument %s has stronger protection than function %s", ve->var->toChars(), toChars()); 
    29442944        } 
  • runtime/llvmdc.diff

    r641 r642  
    1313 } 
    1414  
     15Index: lib/common/tango/core/Exception.d 
     16=================================================================== 
     17--- lib/common/tango/core/Exception.d   (revision 3954) 
     18+++ lib/common/tango/core/Exception.d   (working copy) 
     19@@ -223,7 +223,7 @@ 
     20 /** 
     21  * The basic exception thrown by the tango.io.vfs package. 
     22  */ 
     23-private class VfsException : IOException 
     24+class VfsException : IOException 
     25 { 
     26     this( char[] msg ) 
     27     { 
     28@@ -234,7 +234,7 @@ 
     29 /** 
     30  * The basic exception thrown by the tango.io.cluster package. 
     31  */ 
     32-private class ClusterException : IOException 
     33+class ClusterException : IOException 
     34 { 
     35     this( char[] msg ) 
     36     { 
    1537Index: lib/common/tango/core/BitManip.d 
    1638=================================================================== 
     
    343365                         byte[64] byteargs = void; 
    344366                         long[64] longargs = void; 
     367Index: tango/io/vfs/model/Vfs.d 
     368=================================================================== 
     369--- tango/io/vfs/model/Vfs.d    (revision 3954) 
     370+++ tango/io/vfs/model/Vfs.d    (working copy) 
     371@@ -38,7 +38,7 @@ 
     372  
     373 *******************************************************************************/ 
     374  
     375-private struct VfsStats 
     376+struct VfsStats 
     377 { 
     378         ulong   bytes;                  // byte count of files 
     379         uint    files,                  // number of files 
    345380Index: tango/core/Vararg.d 
    346381=================================================================== 
     
    723758 { 
    724759     alias void* va_list; 
     760Index: tango/util/log/Log.d 
     761=================================================================== 
     762--- tango/util/log/Log.d    (revision 3954) 
     763+++ tango/util/log/Log.d    (working copy) 
     764@@ -1275,7 +1275,7 @@ 
     765  
     766 *******************************************************************************/ 
     767  
     768-private struct LogEvent 
     769+struct LogEvent 
     770 { 
     771         private char[]          msg_, 
     772                                 name_; 
     773Index: tango/time/chrono/GregorianBased.d 
     774=================================================================== 
     775--- tango/time/chrono/GregorianBased.d  (revision 3954) 
     776+++ tango/time/chrono/GregorianBased.d  (working copy) 
     777@@ -21,7 +21,7 @@ 
     778  
     779  
     780  
     781-private class GregorianBased : Gregorian { 
     782+class GregorianBased : Gregorian { 
     783  
     784   private EraRange[] eraRanges_; 
     785   private int maxYear_, minYear_; 
Copyright © 2008, LDC Development Team.