diff options
Diffstat (limited to 'tool/vdbe-compress.tcl')
-rw-r--r-- | tool/vdbe-compress.tcl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tool/vdbe-compress.tcl b/tool/vdbe-compress.tcl index 95cc1eb..a349830 100644 --- a/tool/vdbe-compress.tcl +++ b/tool/vdbe-compress.tcl @@ -13,7 +13,7 @@ # Script usage: # # mv vdbe.c vdbe.c.template -# tclsh vdbe-compress.tcl <vdbe.c.template >vdbe.c +# tclsh vdbe-compress.tcl $CFLAGS <vdbe.c.template >vdbe.c # # Modifications made: # @@ -42,6 +42,16 @@ set unionDef {} ;# C code of the union set afterUnion {} ;# C code after the union set sCtr 0 ;# Context counter +# If the SQLITE_SMALL_STACK compile-time option is missing, then +# this transformation becomes a no-op. +# +if {![regexp {SQLITE_SMALL_STACK} $argv]} { + while {![eof stdin]} { + puts [gets stdin] + } + exit +} + # Read program text up to the spot where the union should be # inserted. # |