Changeset 281

Show
Ignore:
Timestamp:
06/14/07 21:20:31 (2 years ago)
Author:
pragma
Message:

Better, but not tested. demangling is acting strangely.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/ddl/utils.sh

    r278 r281  
    88echo "Building Utils" 
    99 
    10 $fullbuild -full -clean $debugMode utils/ddlinfo.d 
    11 $fullbuild -full -clean $debugMode utils/bless.d 
    12 $fullbuild -full -clean $debugMode utils/insitu.d 
     10$fullbuild $debug utils\\ddlinfo.d 
     11$fullbuild $debug utils\\bless.d 
     12$fullbuild $debug utils\\insitu.d 
    1313 
    1414ls -alF utils/*.exe 
  • trunk/build/vars.sh

    r278 r281  
    11 
    22# if need be, change this to use your build tool of preference 
    3 fullbuild="rebuild -full -clean
    4 nolinkbuild="rebuild -nolink" 
     3fullbuild="build -full
     4nolinkbuild="build -nolink" 
    55compile="dmd -c" 
    66 
  • trunk/ddl/DDLReader.d

    r279 r281  
    125125        return this; 
    126126    } 
    127  
    128     alias _get!(char) get; 
    129     alias _get!(wchar) get; 
    130     alias _get!(dchar) get; 
    131     alias _get!(byte) get; 
    132     alias _get!(ubyte) get; 
    133     alias _get!(short) get; 
    134     alias _get!(ushort) get;     
    135     alias _get!(int) get; 
    136     alias _get!(uint) get; 
    137     alias _get!(long) get; 
    138     alias _get!(ulong) get;  
    139      
     127         
     128    public DDLReader get(inout char x){ 
     129        return _get(x); 
     130    } 
     131     
     132    public DDLReader get(inout wchar x){ 
     133        return _get(x); 
     134    } 
     135     
     136    public DDLReader get(inout dchar x){ 
     137        return _get(x); 
     138    } 
     139     
     140    public DDLReader get(inout byte x){ 
     141        return _get(x); 
     142    } 
     143     
     144    public DDLReader get(inout ubyte x){ 
     145        return _get(x); 
     146    } 
     147     
     148    public DDLReader get(inout short x){ 
     149        return _get(x); 
     150    } 
     151     
     152    public DDLReader get(inout ushort x){ 
     153        return _get(x); 
     154    }    
     155     
     156    public DDLReader get(inout int x){ 
     157        return _get(x); 
     158    } 
     159     
     160    public DDLReader get(inout uint x){ 
     161        return _get(x); 
     162    } 
     163     
     164    public DDLReader get(inout long x){ 
     165        return _get(x); 
     166    } 
     167 
     168    public DDLReader get(inout ulong x){ 
     169        return _get(x); 
     170    } 
     171         
    140172    public DDLReader _getArray(T)(inout T[] x,size_t elements = size_t.max) 
    141173    {        
     
    155187    } 
    156188     
    157     alias _getArray!(char) get; 
    158     alias _getArray!(wchar) get; 
    159     alias _getArray!(dchar) get; 
    160     alias _getArray!(byte) get; 
    161     alias _getArray!(ubyte) get; 
    162     alias _getArray!(short) get; 
    163     alias _getArray!(ushort) get;    
    164     alias _getArray!(int) get; 
    165     alias _getArray!(uint) get; 
    166     alias _getArray!(long) get; 
    167     alias _getArray!(ulong) get;         
     189    public DDLReader get(inout char[] x,size_t elements = size_t.max){ 
     190        return _getArray!(char)(x,elements); 
     191    } 
     192     
     193    public DDLReader get(inout wchar[] x,size_t elements = size_t.max){ 
     194        return _getArray!(wchar)(x,elements); 
     195    } 
     196             
     197    public DDLReader get(inout dchar[] x,size_t elements = size_t.max){ 
     198        return _getArray!(dchar)(x,elements); 
     199    } 
     200     
     201    public DDLReader get(inout byte[] x,size_t elements = size_t.max){ 
     202        return _getArray!(byte)(x,elements); 
     203    } 
     204     
     205    public DDLReader get(inout ubyte[] x,size_t elements = size_t.max){ 
     206        return _getArray!(ubyte)(x,elements); 
     207    }    
     208     
     209    public DDLReader get(inout short[] x,size_t elements = size_t.max){ 
     210        return _getArray!(short)(x,elements); 
     211    }    
     212     
     213    public DDLReader get(inout ushort[] x,size_t elements = size_t.max){ 
     214        return _getArray!(ushort)(x,elements); 
     215    }    
     216     
     217    public DDLReader get(inout int[] x,size_t elements = size_t.max){ 
     218        return _getArray!(int)(x,elements); 
     219    } 
     220         
     221    public DDLReader get(inout uint[] x,size_t elements = size_t.max){ 
     222        return _getArray!(uint)(x,elements); 
     223    } 
     224     
     225    public DDLReader get(inout long[] x,size_t elements = size_t.max){ 
     226        return _getArray!(long)(x,elements); 
     227    } 
     228     
     229    public DDLReader get(inout ulong[] x,size_t elements = size_t.max){ 
     230        return _getArray!(ulong)(x,elements); 
     231    }        
    168232             
    169233    /** 
  • trunk/ddl/Linker.d

    r279 r281  
    136136        return this.registry; 
    137137    } 
     138 
     139    // borrowed from Phobos 
     140    private enum 
     141    {   MIctorstart = 1,  // we've started constructing it 
     142        MIctordone = 2,   // finished construction 
     143        MIstandalone = 4, // module ctor does not depend on other module 
     144                          // ctors being done first 
     145    }; 
    138146 
    139147    /** 
  • trunk/ddl/PathLibrary.d

    r279 r281  
    7272    
    7373   debug protected void debugPathList(char[] prompt,FilePath[] list){ 
    74       debugLog("%s (%d)\n",prompt,list.length); 
     74      debugLog("{0} ({1})\n",prompt,list.length); 
    7575       foreach(path; list){ 
    76           debugLog("  %s\n",path.toUtf8()); 
     76          debugLog("  {0}\n",path.toUtf8()); 
    7777       } 
    7878   } 
  • trunk/ddl/omf/OMFReader.d

    r279 r281  
    4848    The class is abstract and is implemented directly via WordOMFREader and DWordOMFReader. 
    4949*/ 
    50 public abstract class OMFReader : DDLReader{ 
     50public class OMFReader : DDLReader{ 
    5151    ubyte type; 
    5252     
     
    6161    } 
    6262     
    63     //NOTE: workaround to help D resolve quasi-covaraint overrides 
    64     alias DDLReader.get get;  
     63    //NOTE: workaround to help D resolve quasi-covaraint overrides  
     64    public alias DDLReader.get get;     
    6565     
    6666    OMFReader get(inout OMFIndex x){ 
     
    114114*/ 
    115115class WordOMFReader : OMFReader{ 
     116     
     117    //NOTE: workaround to help D resolve quasi-covaraint overrides 
     118    public alias OMFReader.get get; 
     119     
    116120    /// Constructor 
    117121    public this(void[] buffer,ubyte type){ 
     
    143147*/ 
    144148class DWordOMFReader : OMFReader{ 
     149    //NOTE: workaround to help D resolve quasi-covaraint overrides 
     150    public alias DDLReader.get get;  
     151    public alias OMFReader.get get;  
     152     
    145153    /// Constructor 
    146154    public this(void[] buffer,ubyte type){ 
  • trunk/examples/ArgParserTut.d

    r192 r281  
    11private { 
    22    import utils.ArgParser; 
    3     import mango.io.Stdout; 
    4     import mango.io.FileConduit; 
    5     import mango.text.LineIterator; 
     3    import tango.io.Stdout; 
     4    import tango.io.FileConduit; 
     5    import tango.text.LineIterator; 
    66} 
    77 
  • trunk/test/linktest0.d

    r224 r281  
    11/+ 
    2     Copyright (c) 2005,2006 Eric Anderton 
     2    Copyright (c) 2005-2007 Eric Anderton 
    33         
    44    Permission is hereby granted, free of charge, to any person 
     
    2929import test.testconfig; 
    3030 
    31 import mango.io.Stdout; 
     31import tango.io.Stdout; 
    3232 
    3333/** 
  • trunk/test/linktest1.d

    r221 r281  
    11/+ 
    2     Copyright (c) 2005,2006 Eric Anderton 
     2    Copyright (c) 2005-2007 Eric Anderton 
    33         
    44    Permission is hereby granted, free of charge, to any person 
     
    3030import std.stdio; 
    3131 
    32 import mango.io.Stdout; 
     32import tango.io.Stdout; 
    3333 
    3434/** 
  • trunk/test/linktest2.d

    r229 r281  
    11/+ 
    2     Copyright (c) 2005,2006 Eric Anderton 
     2    Copyright (c) 2005-2007 Eric Anderton 
    33         
    44    Permission is hereby granted, free of charge, to any person 
     
    3030import test.testconfig; 
    3131 
    32 import mango.io.Stdout; 
     32import tango.io.Stdout; 
    3333 
    3434/** 
  • trunk/test/pathtest1.d

    r223 r281  
    11/+ 
    2     Copyright (c) 2006 Eric Anderton 
     2    Copyright (c) 2006-2007 Eric Anderton 
    33         
    44    Permission is hereby granted, free of charge, to any person 
     
    3131import test.testconfig; 
    3232 
    33 import mango.io.Stdout; 
     33import tango.io.Stdout; 
    3434/** 
    3535    This test searches the D library namespace located in DMD's lib subdirectory. 
  • trunk/test/pathtest2.d

    r223 r281  
    11/+ 
    2     Copyright (c) 2006 Eric Anderton 
     2    Copyright (c) 2006-2007 Eric Anderton 
    33         
    44    Permission is hereby granted, free of charge, to any person 
     
    3131import test.testconfig; 
    3232 
    33 import mango.io.Stdout; 
     33import tango.io.Stdout; 
    3434 
    3535/** 
  • trunk/test/testmodule.d

    r228 r281  
    128128/* Eratosthenes Sieve prime number calculation. */ 
    129129  
    130 bit flags[8191]; 
     130bool flags[8191]; 
    131131  
    132132void sieve(int iterations)