Changeset 229

Show
Ignore:
Timestamp:
10/07/08 07:24:22 (3 months ago)
Author:
yidabu
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/database/sqlite/Base.d

    r210 r229  
    116116    else 
    117117    { 
    118         //private import tango.io.Stdout; 
     118        private import tango.io.Stdout; 
    119119        //alias Stdout writefln; 
    120120        //alias Stdout write; 
    121         private import tango.util.log.Trace; 
     121        //private import tango.util.log.Trace; 
    122122    } 
    123123} 
     
    591591        version(Phobos) 
    592592            debug writefln("debug: ", this.classinfo.name); 
    593         else 
    594             debug Trace.formatln("debug: {}", this.classinfo.name); 
     593        //else 
     594            //debug Stdout.formatln("debug: {}", this.classinfo.name); 
    595595    } 
    596596    /// Connection constructor and open the Connection with the specified file name. 
     
    599599            debug writefln("debug: ", this.classinfo.name); 
    600600        else 
    601             debug Trace.formatln("debug: {}", this.classinfo.name); 
     601            debug Stdout.formatln("debug: {}", this.classinfo.name); 
    602602        open(path); 
    603603    } 
     
    606606            debug writefln("debug: ~", this.classinfo.name); 
    607607        else 
    608             debug Trace.formatln("debug: ~{}", this.classinfo.name); 
     608            debug Stdout.formatln("debug: ~{}", this.classinfo.name); 
    609609        if(available()) close(); 
    610610    } 
     
    896896        version(Phobos) 
    897897            debug writefln("debug: ~", this.classinfo.name); 
    898         else 
    899             debug Trace.formatln("debug: ~{}", this.classinfo.name); 
     898        //else 
     899            //debug Stdout.formatln("debug: ~{}", this.classinfo.name); 
    900900        if(_pstmt) finalize(); 
    901901    } 
     
    14531453        version(Phobos) 
    14541454            debug writefln("debug: ~", this.classinfo.name); 
    1455         else 
    1456             debug Trace.formatln("debug: ~{}", this.classinfo.name); 
     1455        //else 
     1456            //debug Stdout.formatln("debug: ~{}", this.classinfo.name); 
    14571457    } 
    14581458 
     
    15371537            debug writefln("debug: ", this.classinfo.name); 
    15381538        else 
    1539             debug Trace.formatln("debug: {}", this.classinfo.name); 
     1539            debug Stdout.formatln("debug: {}", this.classinfo.name); 
    15401540        _con = con; 
    15411541        _cstmt = con.createStatement(); 
     
    15451545        debug writefln("debug: ~", this.classinfo.name); 
    15461546        else 
    1547             debug Trace.formatln("debug: ~{}", this.classinfo.name); 
     1547            debug Stdout.formatln("debug: ~{}", this.classinfo.name); 
    15481548    } 
    15491549 
  • trunk/dsss.conf

    r228 r229  
    33target=dwin 
    44buildflags=-version=Tango -inline -O -release 
     5exclude+=dwin\lab\* 
    56version (!Windows) { 
    67    exclude+=dwin\sys\win32\* 
  • trunk/lab/HTMLayoutTest.d

    r190 r229  
    2727version(Win32): 
    2828version(DFL): 
     29version(HTMLAYOUT): 
    2930 
    3031import flowerd.dfl; 
  • trunk/lab/SqliteSample.d

    r228 r229  
    5151    char[] databaseName = "sample.db"; 
    5252 
     53     
    5354    version(Phobos) 
    5455    { 
     
    6162        if(fp.exists) fp.remove; 
    6263    } 
     64     
    6365    //sqlite3* pdb; 
    6466    //sqlite3_open("sample.db", &pdb); 
     
    9193        writefln("[Create Table And Insert Rows:]\n"); 
    9294 
    93         cur.execute("create table sample (title TEXT, author TEXT, rank INT);"c); 
     95        cur.execute("create table IF NOT EXISTS sample (title TEXT, author TEXT, rank INT);"c); 
    9496        cur.execute("insert into sample (title, author, rank) values ('First Look', 'icee', 4);"c); 
    9597        cur.execute("insert into sample (title, author, rank) values ('Second Look', 'icee', 5);"c); 
     
    116118            stmt.reset(); 
    117119            stmt.bindParameters(ps); 
    118             writefln(cur.execute(stmt)); 
     120            //writefln(cur.execute(stmt)); 
     121            stmt.step();    // should be step ? 
    119122        } 
    120123        con.commit(); 
     
    294297        writefln("\n[Utils Test:]"); 
    295298 
    296         cur.execute("create table tx1 (a TEXT DEFAULT 'TX1TX1', b REAL NOT NULL, c INT DEFAULT 100);"c); 
     299        cur.execute("create table IF NOT EXISTS tx1 (a TEXT DEFAULT 'TX1TX1', b REAL NOT NULL, c INT DEFAULT 100);"c); 
    297300        cur.execute("create index idx_tx1_ab on tx1(a, b);"c); 
    298301        cur.execute("create view vx1 as select b as vb, c as vc from tx1;"c); 
  • trunk/net/libcurl/EasyCurl.d

    r228 r229  
    8181public  import dwin.net.libcurl.MultiPartForm; 
    8282public  import dwin.net.libcurl.model.IEasyCurl; 
     83public  import dwin.net.libcurl.Assert_string; 
    8384private import dwin.net.libcurl.Platform; 
    8485 
  • trunk/net/libcurl/MultiPartForm.d

    r228 r229  
    1818class MultiPartForm : IMultiPartForm 
    1919{ 
    20  
    2120 
    2221 
  • trunk/net/smtp/CDOMessage.d

    r227 r229  
    111111    } 
    112112     
    113     /* 
    114     bool attachment(char[] a) 
    115     { 
    116         if (!a || std.string.strip(a) == "") return false; 
    117         char[][] files = std.string.split(a,";"); 
     113     
     114    void addAttachments(char[][] files) 
     115    {         
    118116        foreach(f;files) 
    119117            addAttachment(f); 
    120         return true; 
    121118    } 
    122     */ 
     119     
    123120     
    124121    void server(char[] p) 
  • trunk/sys/win32/ie/HTMLElement.d

    r154 r229  
    110110        scope(exit) 
    111111            freeBStr(w); 
    112         return (t.put_innerText(w) == S_OK) ? true : false
     112        return t.put_innerText(w) == S_OK
    113113    } 
    114114    else  
     
    133133        scope(exit) 
    134134            freeBStr(w); 
    135         return (t.put_innerHTML(w) == S_OK) ? true : false
     135        return t.put_innerHTML(w) == S_OK
    136136    } 
    137137    else  
     
    155155        scope(exit) 
    156156            freeBStr(w); 
    157         return (t.put_outerHTML(w) == S_OK) ? true : false
     157        return t.put_outerHTML(w) == S_OK
    158158    } 
    159159    else  
  • trunk/sys/win32/ie/IE.d

    r154 r229  
    4646private import  tango.core.Vararg, 
    4747                tango.sys.win32.CodePage; 
     48 
     49private import TextUtil = tango.text.Util; 
    4850     
    4951 
     
    401403    --- 
    402404*/ 
    403 IHTMLElement waitId(IWebBrowser2 iwb2, char[] id,  uint sec = 30_000, uint delay = 100) 
     405IHTMLElement waitId(IWebBrowser2 iwb2, char[] id,  uint ms = 30_000, uint delay = 100) 
    404406{ 
    405407    IHTMLElement result; 
     
    416418    
    417419   uint begin = GetTickCount(); 
    418    while( (GetTickCount() - begin) < sec  ) 
     420   while( (GetTickCount() - begin) < ms  ) 
    419421   {            
    420422       doEvents(delay); 
     
    427429//waitId 
    428430 
     431     
     432bool waitTitle(IWebBrowser2 iwb2, char[] titleSign, int ms = 15_000) 
     433{ 
     434   uint begin = GetTickCount(); 
     435   while( (GetTickCount() - begin) < ms  ) 
     436   {            
     437       doEvents(50); 
     438       char[] title = getTitle(iwb2); 
     439       if(title.length && TextUtil.containsPattern(title, titleSign)) 
     440           return true; 
     441   }            
     442   return false;     
     443} 
     444 
    429445/// 
    430446bool isReadystateComplete(IWebBrowser2 iwb2)