Changeset 229
- Timestamp:
- 10/07/08 07:24:22 (3 months ago)
- Files:
-
- trunk/database/sqlite/Base.d (modified) (8 diffs)
- trunk/dsss.conf (modified) (1 diff)
- trunk/lab/HTMLayoutTest.d (modified) (1 diff)
- trunk/lab/SqliteSample.d (modified) (5 diffs)
- trunk/lib/dwin.lib (modified) (previous)
- trunk/lib/libmarkdown.lib (added)
- trunk/net/libcurl/EasyCurl.d (modified) (1 diff)
- trunk/net/libcurl/MultiPartForm.d (modified) (1 diff)
- trunk/net/smtp/CDOMessage.d (modified) (1 diff)
- trunk/sys/win32/ie/HTMLElement.d (modified) (3 diffs)
- trunk/sys/win32/ie/IE.d (modified) (4 diffs)
- trunk/text/markdown (added)
- trunk/text/markdown/Markdown.d (added)
- trunk/text/markdown/c (added)
- trunk/text/markdown/c/Mkdio.d (added)
- trunk/text/markdown/c/_mingw.h (added)
- trunk/text/markdown/c/htod.bat (added)
- trunk/text/markdown/c/mkdio.h (added)
- trunk/text/markdown/c/stdarg.h (added)
- trunk/text/markdown/c/stddef.h (added)
- trunk/text/markdown/c/stdio.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/database/sqlite/Base.d
r210 r229 116 116 else 117 117 { 118 //private import tango.io.Stdout;118 private import tango.io.Stdout; 119 119 //alias Stdout writefln; 120 120 //alias Stdout write; 121 private import tango.util.log.Trace;121 //private import tango.util.log.Trace; 122 122 } 123 123 } … … 591 591 version(Phobos) 592 592 debug writefln("debug: ", this.classinfo.name); 593 else594 debug Trace.formatln("debug: {}", this.classinfo.name);593 //else 594 //debug Stdout.formatln("debug: {}", this.classinfo.name); 595 595 } 596 596 /// Connection constructor and open the Connection with the specified file name. … … 599 599 debug writefln("debug: ", this.classinfo.name); 600 600 else 601 debug Trace.formatln("debug: {}", this.classinfo.name);601 debug Stdout.formatln("debug: {}", this.classinfo.name); 602 602 open(path); 603 603 } … … 606 606 debug writefln("debug: ~", this.classinfo.name); 607 607 else 608 debug Trace.formatln("debug: ~{}", this.classinfo.name);608 debug Stdout.formatln("debug: ~{}", this.classinfo.name); 609 609 if(available()) close(); 610 610 } … … 896 896 version(Phobos) 897 897 debug writefln("debug: ~", this.classinfo.name); 898 else899 debug Trace.formatln("debug: ~{}", this.classinfo.name);898 //else 899 //debug Stdout.formatln("debug: ~{}", this.classinfo.name); 900 900 if(_pstmt) finalize(); 901 901 } … … 1453 1453 version(Phobos) 1454 1454 debug writefln("debug: ~", this.classinfo.name); 1455 else1456 debug Trace.formatln("debug: ~{}", this.classinfo.name);1455 //else 1456 //debug Stdout.formatln("debug: ~{}", this.classinfo.name); 1457 1457 } 1458 1458 … … 1537 1537 debug writefln("debug: ", this.classinfo.name); 1538 1538 else 1539 debug Trace.formatln("debug: {}", this.classinfo.name);1539 debug Stdout.formatln("debug: {}", this.classinfo.name); 1540 1540 _con = con; 1541 1541 _cstmt = con.createStatement(); … … 1545 1545 debug writefln("debug: ~", this.classinfo.name); 1546 1546 else 1547 debug Trace.formatln("debug: ~{}", this.classinfo.name);1547 debug Stdout.formatln("debug: ~{}", this.classinfo.name); 1548 1548 } 1549 1549 trunk/dsss.conf
r228 r229 3 3 target=dwin 4 4 buildflags=-version=Tango -inline -O -release 5 exclude+=dwin\lab\* 5 6 version (!Windows) { 6 7 exclude+=dwin\sys\win32\* trunk/lab/HTMLayoutTest.d
r190 r229 27 27 version(Win32): 28 28 version(DFL): 29 version(HTMLAYOUT): 29 30 30 31 import flowerd.dfl; trunk/lab/SqliteSample.d
r228 r229 51 51 char[] databaseName = "sample.db"; 52 52 53 53 54 version(Phobos) 54 55 { … … 61 62 if(fp.exists) fp.remove; 62 63 } 64 63 65 //sqlite3* pdb; 64 66 //sqlite3_open("sample.db", &pdb); … … 91 93 writefln("[Create Table And Insert Rows:]\n"); 92 94 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); 94 96 cur.execute("insert into sample (title, author, rank) values ('First Look', 'icee', 4);"c); 95 97 cur.execute("insert into sample (title, author, rank) values ('Second Look', 'icee', 5);"c); … … 116 118 stmt.reset(); 117 119 stmt.bindParameters(ps); 118 writefln(cur.execute(stmt)); 120 //writefln(cur.execute(stmt)); 121 stmt.step(); // should be step ? 119 122 } 120 123 con.commit(); … … 294 297 writefln("\n[Utils Test:]"); 295 298 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); 297 300 cur.execute("create index idx_tx1_ab on tx1(a, b);"c); 298 301 cur.execute("create view vx1 as select b as vb, c as vc from tx1;"c); trunk/net/libcurl/EasyCurl.d
r228 r229 81 81 public import dwin.net.libcurl.MultiPartForm; 82 82 public import dwin.net.libcurl.model.IEasyCurl; 83 public import dwin.net.libcurl.Assert_string; 83 84 private import dwin.net.libcurl.Platform; 84 85 trunk/net/libcurl/MultiPartForm.d
r228 r229 18 18 class MultiPartForm : IMultiPartForm 19 19 { 20 21 20 22 21 trunk/net/smtp/CDOMessage.d
r227 r229 111 111 } 112 112 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 { 118 116 foreach(f;files) 119 117 addAttachment(f); 120 return true;121 118 } 122 */119 123 120 124 121 void server(char[] p) trunk/sys/win32/ie/HTMLElement.d
r154 r229 110 110 scope(exit) 111 111 freeBStr(w); 112 return (t.put_innerText(w) == S_OK) ? true : false;112 return t.put_innerText(w) == S_OK; 113 113 } 114 114 else … … 133 133 scope(exit) 134 134 freeBStr(w); 135 return (t.put_innerHTML(w) == S_OK) ? true : false;135 return t.put_innerHTML(w) == S_OK; 136 136 } 137 137 else … … 155 155 scope(exit) 156 156 freeBStr(w); 157 return (t.put_outerHTML(w) == S_OK) ? true : false;157 return t.put_outerHTML(w) == S_OK; 158 158 } 159 159 else trunk/sys/win32/ie/IE.d
r154 r229 46 46 private import tango.core.Vararg, 47 47 tango.sys.win32.CodePage; 48 49 private import TextUtil = tango.text.Util; 48 50 49 51 … … 401 403 --- 402 404 */ 403 IHTMLElement waitId(IWebBrowser2 iwb2, char[] id, uint sec= 30_000, uint delay = 100)405 IHTMLElement waitId(IWebBrowser2 iwb2, char[] id, uint ms = 30_000, uint delay = 100) 404 406 { 405 407 IHTMLElement result; … … 416 418 417 419 uint begin = GetTickCount(); 418 while( (GetTickCount() - begin) < sec)420 while( (GetTickCount() - begin) < ms ) 419 421 { 420 422 doEvents(delay); … … 427 429 //waitId 428 430 431 432 bool 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 429 445 /// 430 446 bool isReadystateComplete(IWebBrowser2 iwb2)
