diff options
author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
---|---|---|
committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/cmd/svc/configd/sqlite/tool/opcodeDoc.awk | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/cmd/svc/configd/sqlite/tool/opcodeDoc.awk')
-rw-r--r-- | usr/src/cmd/svc/configd/sqlite/tool/opcodeDoc.awk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/usr/src/cmd/svc/configd/sqlite/tool/opcodeDoc.awk b/usr/src/cmd/svc/configd/sqlite/tool/opcodeDoc.awk new file mode 100644 index 0000000000..19f824bfac --- /dev/null +++ b/usr/src/cmd/svc/configd/sqlite/tool/opcodeDoc.awk @@ -0,0 +1,26 @@ + +#pragma ident "%Z%%M% %I% %E% SMI" + +# +# 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>" +} |