root/sources/dool.diff

Revision 164, 1.9 kB (checked in by Gregor, 2 years ago)

--

  • dsss.conf

    old new  
     1name=dool 
     2 
     3[dool] 
     4 
  • dool/System.d

    old new  
    182182                    } 
    183183                } 
    184184         
    185                 std.format.doFormat(&putc, arguments, argptr); 
     185                std.format.doFormat(&putc, arguments, cast(va_list) argptr); 
    186186                if (newline) 
    187187                { 
    188188                    //FPUTC('\n', fp); 
     
    233233                    static assert(0); 
    234234                } 
    235235         
    236                 std.format.doFormat(&putcw, arguments, argptr); 
     236                std.format.doFormat(&putcw, arguments, cast(va_list) argptr); 
    237237                if (newline) 
    238238                { 
    239239                    //FPUTWC('\n', fp); 
  • dool/io/OutBuffer.d

    old new  
    3737private import dool.String; 
    3838private import dool.system.stdlib; 
    3939 
     40 
     41// alloca doesn't work with GDC 
     42version (GNU) 
     43{ 
     44    void* alloca(size_t sz) 
     45    { 
     46        return new void[sz]; 
     47    } 
     48} 
     49 
    4050/** 
    4151* OutBuffer provides a way to build up an array of bytes out 
    4252* of raw data. It is useful for things like preparing an 
  • dool/io/Stream.d

    old new  
    450450    return c; 
    451451  } 
    452452 
    453   int vreadf(TypeInfo[] arguments, void* args) { 
     453  int vreadf(TypeInfo[] arguments, va_list args) { 
    454454    char[] fmt; 
    455455    int j = 0; 
    456456    int count = 0, i = 0; 
     
    950950  } 
    951951 
    952952  // writes data with optional trailing newline 
    953   OutputStream writefx(TypeInfo[] arguments, void* argptr, int newline=false) { 
     953  OutputStream writefx(TypeInfo[] arguments, va_list argptr, int newline=false) { 
    954954    doFormat(&doFormatCallback,arguments,argptr); 
    955955    if (newline)  
    956956      writeLine(""); 
Note: See TracBrowser for help on using the browser.