diff options
| author | Bernard Xiong <[email protected]> | 2013-11-30 03:36:56 -0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-11-30 03:36:56 -0800 |
| commit | be2f628160fa1262b6cc10df3823c5f984bc3c48 (patch) | |
| tree | 6a96d2f30c979713b5f175b08c90a03f359faeb6 /components/external/SQLite-3.8.1/tool/opcodeDoc.awk | |
| parent | 35d83be62ff504d2b595288e0a377160604e71a8 (diff) | |
| parent | 9326719a12cf54f3418e292835e37ddc3afa92fd (diff) | |
Merge pull request #205 from geniusgogo/sqlite
Sqlite
Diffstat (limited to 'components/external/SQLite-3.8.1/tool/opcodeDoc.awk')
| -rw-r--r-- | components/external/SQLite-3.8.1/tool/opcodeDoc.awk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/external/SQLite-3.8.1/tool/opcodeDoc.awk b/components/external/SQLite-3.8.1/tool/opcodeDoc.awk new file mode 100644 index 0000000000..492010624f --- /dev/null +++ b/components/external/SQLite-3.8.1/tool/opcodeDoc.awk @@ -0,0 +1,23 @@ +# +# Extract opcode documentation for sqliteVdbe.c and generate HTML +# +BEGIN { + print "<html><body bgcolor=white>" + print "<h1>SQLite Virtual Database Engine Opcodes</h1>" + print "<table>" +} +/ Opcode: /,/\*\// { + if( $2=="Opcode:" ){ + printf "<tr><td>%s %s %s %s</td>\n<td>\n", $3, $4, $5, $6 + }else if( $1=="*/" ){ + printf "</td></tr>\n" + }else if( NF>1 ){ + sub(/^ *\*\* /,"") + gsub(/</,"<") + gsub(/&/,"&") + print + } +} +END { + print "</table></body></html>" +} |
