-C Bring\sin\strunk\sshell\smods.
-D 2022-01-02T00:16:09.068
+C mkshellc.tcl\sto\sconvert\s#include\sto\sINCLUDE\sfor\sin-tree\sincludees
+D 2022-01-08T21:59:49.612
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
F tool/mkopcodeh.tcl 130b88697da6ec5b89b41844d955d08fb62c2552e889dec8c7bcecb28d8f50bd
F tool/mkopts.tcl 680f785fdb09729fd9ac50632413da4eadbdf9071535e3f26d03795828ab07fa
F tool/mkpragmatab.tcl de206c64b6e9ac8cd5e3cbd0ffe456f07d5710605ef8385d677e60ce3335ea12
-F tool/mkshellc.tcl 005d8c68e4d22bf6739f6f95f61e269e2fa1d3c33596fb08e027acbd79c9e053
+F tool/mkshellc.tcl e02ca680bec146e483394fa2f6ce9f0ba6a34e7d4e9c9aa6ee87aab50ef4b141
F tool/mksourceid.c 36aa8020014aed0836fd13c51d6dc9219b0df1761d6b5f58ff5b616211b079b9
F tool/mkspeedsql.tcl a1a334d288f7adfe6e996f2e712becf076745c97
F tool/mksqlite3c-noext.tcl 4f7cfef5152b0c91920355cbfc1d608a4ad242cb819f1aea07f6d0274f584a7f
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 653db501b46a4035ea1cb2f39862d781fa40fa0442a6abc84d32a9ac29e3af20 e199a851e316bd471bfc54204b8c250d3ae93b829261214158a2c74acad4093e
-R 05e5f1a4d019a7b473688a3079da0d5e
+P f628c3afd0a0527b1db7e3e117afc33a6cb929a507d1e32670e5fd5933fc4833
+R 59637fb955c3322a47f3cc2a0fb0721f
U larrybr
-Z 6520f133c5c5f2050f3ae99030c9a426
+Z 3a2f0529fc6b670cc5387b026b5b1a8a
# Remove this line to create a well-formed Fossil manifest.
array set ::typedefsSeen {}
# Filter redundant typedefs and certain includes and qualifiers, in place.
-# Return whether anything changed.
+# Return 1 if line can be emitted as-is, 0 if to be processed further.
+# In either case, the line named by $lineVar may have been changed.
proc transform_line {lineVar nesting} {
upvar $lineVar line
if {[regexp {^typedef .*;} $line]} {
set line "/* $line */"
return 1
}
+ if {$nesting > 0 && [regexp {^#include "([\w\.]+)"} $line _ incRelPath]} {
+ set fromPath [lindex $::incFileStack end]
+ set incPath [file join [file dirname $fromPath] $incRelPath]
+ set inTree [file exists $incPath]
+ if {$inTree} {
+ set line "INCLUDE $incRelPath"
+ return 0
+ }
+ }
if {[string first "__declspec(dllexport)" $line] >= 0} {
set line [string map [list __declspec(dllexport) {}] $line]
return 1