Minor tweaks to various TCL build scripts so that they work even for TCL 8.4,

which is obsolete, but is also all that is available for some legacy platforms.

FossilOrigin-Name: 2269ce64f707c4a198fcb9a72933648ea61a80b4251024b8058ff28ad81b4917
This commit is contained in:
drh
2021-07-29 16:49:28 +00:00
parent fd4c7862ee
commit 20de9f6cb1
5 changed files with 17 additions and 13 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ puts "const char *sqlite3OpcodeName(int i)\173"
puts " static const char *const azName\[\] = \173"
set mx 0
set in [open [lindex $argv 0] rb]
set in [open [lindex $argv 0]]
fconfigure $in -translation binary
while {![eof $in]} {
set line [gets $in]
if {[regexp {^#define OP_} $line]} {
+4 -2
View File
@@ -30,7 +30,8 @@ puts $out {/* DO NOT EDIT!
** edit the src/shell.c.in" and/or some of the other files that are included
** by "src/shell.c.in", then rerun the tool/mkshellc.tcl script.
*/}
set in [open $topdir/src/shell.c.in rb]
set in [open $topdir/src/shell.c.in]
fconfigure $in -translation binary
proc omit_redundant_typedefs {line} {
global typedef_seen
if {[regexp {^typedef .*;} $line]} {
@@ -50,7 +51,8 @@ while {1} {
set cfile [lindex $lx 1]
puts $out "/************************* Begin $cfile ******************/"
# puts $out "#line 1 \"$cfile\""
set in2 [open $topdir/src/$cfile rb]
set in2 [open $topdir/src/$cfile]
fconfigure $in2 -translation binary
while {![eof $in2]} {
set lx [omit_redundant_typedefs [gets $in2]]
if {[regexp {^#include "sqlite} $lx]} {