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

Side by Side Diff: third_party/sqlite/src/tool/addopcodes.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
OLDNEW
1 #!/usr/bin/tclsh 1 #!/usr/bin/tclsh
2 # 2 #
3 # This script appends additional token codes to the end of the 3 # This script appends additional token codes to the end of the
4 # parse.h file that lemon generates. These extra token codes are 4 # parse.h file that lemon generates. These extra token codes are
5 # not used by the parser. But they are used by the tokenizer and/or 5 # not used by the parser. But they are used by the tokenizer and/or
6 # the code generator. 6 # the code generator.
7 # 7 #
8 # 8 #
9 set in [open [lindex $argv 0] rb] 9 set in [open [lindex $argv 0] rb]
10 set max 0 10 set max 0
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 # 54 #
55 puts "\n/* The token codes above must all fit in 8 bits */" 55 puts "\n/* The token codes above must all fit in 8 bits */"
56 puts [format "#define %-20s %-6s" TKFLG_MASK 0xff] 56 puts [format "#define %-20s %-6s" TKFLG_MASK 0xff]
57 puts "\n/* Flags that can be added to a token code when it is not" 57 puts "\n/* Flags that can be added to a token code when it is not"
58 puts "** being stored in a u8: */" 58 puts "** being stored in a u8: */"
59 foreach {fg val comment} { 59 foreach {fg val comment} {
60 TKFLG_DONTFOLD 0x100 {/* Omit constant folding optimizations */} 60 TKFLG_DONTFOLD 0x100 {/* Omit constant folding optimizations */}
61 } { 61 } {
62 puts [format "#define %-20s %-6s %s" $fg $val $comment] 62 puts [format "#define %-20s %-6s %s" $fg $val $comment]
63 } 63 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/GetTclKit.bat ('k') | third_party/sqlite/src/tool/build-all-msvc.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698