Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/sqlite/sqlite-src-3170000/tool/tostr.tcl

Issue 2747283002: [sql] Import reference version of SQLite 3.17.. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3170000/tool/tostr.tcl
diff --git a/third_party/sqlite/sqlite-src-3170000/tool/tostr.tcl b/third_party/sqlite/sqlite-src-3170000/tool/tostr.tcl
new file mode 100644
index 0000000000000000000000000000000000000000..cb06ee947f98c33c2d55c09381b314c2fe6b7c57
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3170000/tool/tostr.tcl
@@ -0,0 +1,12 @@
+#!/usr/bin/tcl
+#
+# Convert input text into a C string
+#
+set in [open [lindex $argv 0] rb]
+while {![eof $in]} {
+ set line [gets $in]
+ if {[eof $in]} break;
+ set x [string map "\\\\ \\\\\\\\ \\\" \\\\\"" $line]
+ puts "\"$x\\n\""
+}
+close $in
« no previous file with comments | « third_party/sqlite/sqlite-src-3170000/tool/symbols-mingw.sh ('k') | third_party/sqlite/sqlite-src-3170000/tool/varint.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698