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

Side by Side Diff: third_party/sqlite/src/tool/tostr.tcl

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/tool/tostr.awk ('k') | third_party/sqlite/src/tool/varint.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/tcl 1 #!/usr/bin/tcl
2 # 2 #
3 # Convert input text into a C string 3 # Convert input text into a C string
4 # 4 #
5 set in [open [lindex $argv 0] rb] 5 set in [open [lindex $argv 0] rb]
6 while {![eof $in]} { 6 while {![eof $in]} {
7 set line [gets $in] 7 set line [gets $in]
8 if {[eof $in]} break; 8 if {[eof $in]} break;
9 set x [string map "\\\\ \\\\\\\\ \\\" \\\\\"" $line] 9 set x [string map "\\\\ \\\\\\\\ \\\" \\\\\"" $line]
10 puts "\"$x\\n\"" 10 puts "\"$x\\n\""
11 } 11 }
12 close $in 12 close $in
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/tostr.awk ('k') | third_party/sqlite/src/tool/varint.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698