]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Avoid commenting out #include statements when building the amalgamation source code...
authormistachkin <mistachkin@noemail.net>
Sat, 31 Aug 2013 05:46:42 +0000 (05:46 +0000)
committermistachkin <mistachkin@noemail.net>
Sat, 31 Aug 2013 05:46:42 +0000 (05:46 +0000)
FossilOrigin-Name: 2fca6d784b000fd3a4d6890e38a0b087767f3a7f

manifest
manifest.uuid
tool/mksqlite3c.tcl

index 0c61c93cf6de45a75cc5ac58ff80ae1ee34eac57..2863afe545993662e661713563a8eccaa02d8ec2 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Fix\sharmless\sMSVC\scompiler\swarning\swith\sMEMDEBUG\sdefined.
-D 2013-08-31T05:13:22.387
+C Avoid\scommenting\sout\s#include\sstatements\swhen\sbuilding\sthe\samalgamation\ssource\scode\sfile.
+D 2013-08-31T05:46:42.494
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 5e41da95d92656a5004b03d3576e8b226858a28e
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -1079,7 +1079,7 @@ F tool/mkkeywordhash.c bb52064aa614e1426445e4b2b9b00eeecd23cc79
 F tool/mkopts.tcl 66ac10d240cc6e86abd37dc908d50382f84ff46e
 F tool/mkspeedsql.tcl a1a334d288f7adfe6e996f2e712becf076745c97
 F tool/mksqlite3c-noext.tcl 8bce31074e4cbe631bb7676526a048335f4c9f02
-F tool/mksqlite3c.tcl a61fe62a2895ca6458c463fccf1211ca1c000fcf
+F tool/mksqlite3c.tcl d8d51141424a0227aecfd7bd07a92304a946b8b2
 F tool/mksqlite3h.tcl ba24038056f51fde07c0079c41885ab85e2cff12
 F tool/mksqlite3internalh.tcl 3dca7bb5374cee003379b8cbac73714f610ef795
 F tool/mkvsix.tcl 0be7f7a591f1e83f9199cb82911b66668ca484c9
@@ -1109,7 +1109,7 @@ F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
 F tool/wherecosttest.c f407dc4c79786982a475261866a161cd007947ae
 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac
-P c6f174a0cb27fe79740fffc7ce51081ec52a5dbd
-R bb417a9280c6c7257f662f98515af4c7
+P b48cfd2dfca70091a52deeeee16619237e1c270b
+R b57559fe8be860201c533ce843be8c05
 U mistachkin
-Z ce71d33f787d820719edc5d9e21c8ccd
+Z 5c7a5afeef353865f26e419014385170
index 66324b2b9e7a56e479dd887364f60c4b2cc9d8e7..895cd83cdf935087f5a17cdf8f85d073a1ab5a55 100644 (file)
@@ -1 +1 @@
-b48cfd2dfca70091a52deeeee16619237e1c270b
\ No newline at end of file
+2fca6d784b000fd3a4d6890e38a0b087767f3a7f
\ No newline at end of file
index c93bcea44d5389327af0d4505bd7b3d310596216..8826f25b77cc8528aa55edceaa74a1cae731aee4 100644 (file)
@@ -137,10 +137,10 @@ proc section_comment {text} {
 
 # Read the source file named $filename and write it into the
 # sqlite3.c output file.  If any #include statements are seen,
-# process them approprately.
+# process them appropriately.
 #
 proc copy_file {filename} {
-  global seen_hdr available_hdr out addstatic linemacros
+  global available_hdr out addstatic linemacros
   set ln 0
   set tail [file tail $filename]
   section_comment "Begin file $tail"
@@ -166,11 +166,12 @@ proc copy_file {filename} {
           section_comment "Continuing where we left off in $tail"
           if {$linemacros} {puts $out "#line [expr {$ln+1}] \"$filename\""}
         }
-      } elseif {![info exists seen_hdr($hdr)]} {
-        set seen_hdr($hdr) 1
-        puts $out $line
       } else {
-        puts $out "/* $line */"
+        set suffix [string toupper [string map [list / _ . _] $hdr]]
+        puts $out "#ifndef SQLITE_HEADER_$suffix"
+        puts $out "#define SQLITE_HEADER_$suffix"
+        puts $out $line
+        puts $out "#endif"
       }
     } elseif {[regexp {^#ifdef __cplusplus} $line]} {
       puts $out "#if 0"