Changeset 20798 for lang/cplusplus
- Timestamp:
- 10/05/08 16:53:59 (2 months ago)
- Location:
- lang/cplusplus/llv8call/trunk
- Files:
-
- 9 modified
-
ext/sqlite3/sqlite3.cc (modified) (1 diff)
-
manual/ext/clearsilver/clearsilver.html (modified) (1 diff)
-
manual/ext/fs/dir.html (modified) (1 diff)
-
manual/ext/fs/file.html (modified) (1 diff)
-
manual/ext/libmemcached/libmemcached.html (modified) (1 diff)
-
manual/ext/shttpd/shttpd.html (modified) (1 diff)
-
manual/ext/sqlite3/sqlite3.html (modified) (1 diff)
-
tools/makedoc/make-docs.js (modified) (4 diffs)
-
tools/makedoc/tmpl/doc.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/sqlite3/sqlite3.cc
r20753 r20798 25 25 // http://www.python.org/dev/peps/pep-0249/ 26 26 // http://www.python.jp/doc/contrib/peps/pep-0249.txt 27 28 /** DESCRIPTION: 29 * 30 * SQLite3 is embeddable RDBMS =) 31 * 32 */ 33 34 /** SYNOPSIS: 35 * 36 * v8ext.LoadBinary("org.coderepos.sqlite3"); 37 * var db = new SQLite3(":memory:"); 38 * var cursor = db.Cursor(); 39 * cursor.Execute("SELECT COUNT(*) FROM foo"); 40 * p( cursor.FetchOne()[0] ); 41 * cursor.Close(); 42 * db.Close(); 43 * 44 */ 27 45 28 46 #include "sqlite3.h" -
lang/cplusplus/llv8call/trunk/manual/ext/clearsilver/clearsilver.html
r20792 r20798 15 15 <div class="main container"> 16 16 <h1>llv8call docs</h1> 17 18 17 19 18 20 -
lang/cplusplus/llv8call/trunk/manual/ext/fs/dir.html
r20796 r20798 15 15 <div class="main container"> 16 16 <h1>llv8call docs</h1> 17 18 17 19 18 20 -
lang/cplusplus/llv8call/trunk/manual/ext/fs/file.html
r20792 r20798 15 15 <div class="main container"> 16 16 <h1>llv8call docs</h1> 17 18 17 19 18 20 -
lang/cplusplus/llv8call/trunk/manual/ext/libmemcached/libmemcached.html
r20792 r20798 15 15 <div class="main container"> 16 16 <h1>llv8call docs</h1> 17 18 17 19 18 20 -
lang/cplusplus/llv8call/trunk/manual/ext/shttpd/shttpd.html
r20792 r20798 15 15 <div class="main container"> 16 16 <h1>llv8call docs</h1> 17 18 17 19 18 20 -
lang/cplusplus/llv8call/trunk/manual/ext/sqlite3/sqlite3.html
r20792 r20798 16 16 <h1>llv8call docs</h1> 17 17 18 19 <div class="description">SQLite3 is embeddable RDBMS =) 20 </div> 21 22 23 24 <pre>v8ext.LoadBinary("org.coderepos.sqlite3"); 25 var db = new SQLite3(":memory:"); 26 var cursor = db.Cursor(); 27 cursor.Execute("SELECT COUNT(*) FROM foo"); 28 p( cursor.FetchOne()[0] ); 29 cursor.Close(); 30 db.Close(); 31 </pre> 18 32 19 33 -
lang/cplusplus/llv8call/trunk/tools/makedoc/make-docs.js
r20795 r20798 21 21 var modules = []; 22 22 var currentmodule; 23 var mode = "SYNOPSIS";24 23 var parser; 24 var sections = {}; 25 25 var parser_normal; 26 var synopsis = ''; 27 var parser_synopsis = function (line) { 28 if (line.match(/\*\//)) { 29 parser = parser_normal; 30 } else if (line.match(/^\s*\*\s*(.+)/)) { 31 synopsis += RegExp.$1 + "\n"; 32 } 26 var section_parser_generator = function (name) { 27 return function (line) { 28 if (line.match(/\*\//)) { 29 parser = parser_normal; 30 } else if (line.match(/^\s*\*\s*(.+)/)) { 31 if (!sections[name]) { sections[name] = '' } 32 sections[name] += RegExp.$1 + "\n"; 33 } 34 }; 33 35 }; 34 36 parser_normal = function (line) { … … 37 39 currentmodule['CLASSNAME'] = RegExp.$1; 38 40 modules.push(currentmodule); 39 } else if (line.match(/\/\*\*\s* SYNOPSIS/)) {40 parser = parser_synopsis;41 } else if (line.match(/\/\*\*\s*(SYNOPSIS|DESCRIPTION)/)) { 42 parser = section_parser_generator(RegExp.$1); 41 43 } else if (line.match(/CLASS(?:_WITH_CONSTRUCTOR)?\(/)) { 42 currentmodule = {"CCV" : [], "CM" : [], "IM" : [], "CLASSNAME" : "" , "SYNOPSIS":""};44 currentmodule = {"CCV" : [], "CM" : [], "IM" : [], "CLASSNAME" : "" }; 43 45 } else if (line.match(/BIND_([IC]M)\("([^"]+)"/)) { 44 46 currentmodule[RegExp.$1].push(RegExp.$2); … … 52 54 } 53 55 file.Close(); 54 return {"modules":modules, "s ynopsis":synopsis};56 return {"modules":modules, "sections":sections}; 55 57 }; 56 58 … … 66 68 hdf.AddArray(basekey + ".IM", entry["IM"]); 67 69 } 68 hdf.SetValue("data.synopsis", data.synopsis); 70 if(data.sections.SYNOPSIS) { 71 hdf.SetValue("data.sections.SYNOPSIS", data.sections.SYNOPSIS); 72 } 73 if(data.sections.DESCRIPTION) { 74 hdf.SetValue("data.sections.DESCRIPTION", data.sections.DESCRIPTION); 75 } 69 76 // p(hdf.DumpStr(undefined, 0)); 70 77 var cs = new clearsilver.CS(hdf); -
lang/cplusplus/llv8call/trunk/tools/makedoc/tmpl/doc.cs
r20792 r20798 16 16 <h1>llv8call docs</h1> 17 17 18 <?cs if:data.synopsis ?> 19 <pre><?cs var:data.synopsis ?></pre> 18 <?cs if:data.sections.DESCRIPTION ?> 19 <div class="description"><?cs var:data.sections.DESCRIPTION ?></div> 20 <?cs /if ?> 21 22 <?cs if:data.sections.SYNOPSIS ?> 23 <pre><?cs var:data.sections.SYNOPSIS ?></pre> 20 24 <?cs /if ?> 21 25
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)