]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
In the Lemon output, add a prefix comment that explains that the output file
authordrh <drh@noemail.net>
Tue, 1 Sep 2020 12:26:55 +0000 (12:26 +0000)
committerdrh <drh@noemail.net>
Tue, 1 Sep 2020 12:26:55 +0000 (12:26 +0000)
is automatically generated and shows the name of the source file.

FossilOrigin-Name: d34caf3bb63d0512ea116a8c8c8343b76aa39441bd4b3e98231747a705b91d54

manifest
manifest.uuid
tool/lemon.c

index 37b2099bb2eae7d3dc0502364d0d23dade3c3237..c80c5cffe675975287abc8298dc7b444b71b8b53 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Lemon\supdates:\s\s(1)\sinclude\sthe\s#defines\sfor\sall\stokens\sin\sthe\sgenerated\sC\nfile,\sso\sthat\sthe\sC-file\scan\sbe\sstand-alone.\s\s(2)\sIf\sthe\sgrammar\sbegins\swith\na\s%include\s{...}\sdirective\son\sline\sone,\smake\sthat\sdirective\sthe\sheader\sfor\nthe\sgenerated\sC\sfile.\s\s(3)\sEnhance\sthe\slemon.html\sdocumentation.
-D 2020-09-01T11:20:03.785
+C In\sthe\sLemon\soutput,\sadd\sa\sprefix\scomment\sthat\sexplains\sthat\sthe\soutput\sfile\nis\sautomatically\sgenerated\sand\sshows\sthe\sname\sof\sthe\ssource\sfile.
+D 2020-09-01T12:26:55.781
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
 F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -1798,7 +1798,7 @@ F tool/genfkey.test b6afd7b825d797a1e1274f519ab5695373552ecad5cd373530c63533638a
 F tool/getlock.c f4c39b651370156cae979501a7b156bdba50e7ce
 F tool/index_usage.c f62a0c701b2c7ff2f3e21d206f093c123f222dbf07136a10ffd1ca15a5c706c5
 F tool/kvtest-speed.sh 4761a9c4b3530907562314d7757995787f7aef8f
-F tool/lemon.c 5206111b82f279115c1bfd25a2d859e2b99ab068fc6cddd124d93efd7112cc20
+F tool/lemon.c 01eff5008ba46e98f4b954317bfe57ea29b836e6d3e72e1bbdaad4ca3db501b3
 F tool/lempar.c dc1f5e8a0847c2257b0b069c61e290227062c4d75f5b5a0797b75b08b1c00405
 F tool/libvers.c caafc3b689638a1d88d44bc5f526c2278760d9b9
 F tool/loadfts.c c3c64e4d5e90e8ba41159232c2189dba4be7b862
@@ -1879,7 +1879,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
 F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
 F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 35505c68c1945c35babd2496e02bc4907a15c8e7b8d77f05f230bd0e9d4891d7
-R ca40e65faf80d0ec5a9ea286af461844
+P 84d54eb35716174195ee7e5ac846f47308e5dbb0056e8ff568daa133860bab74
+R 7f45e5b59f1c52d29dee23ebb0c2337a
 U drh
-Z b58ed847c13aa05b57f422755df0e3ad
+Z 0e6fd8fbc683d31bd259b25e22ecc736
index 6136c16e365eee6cb27c8bdf3a087103a8096b66..12efad1e94cbe6732c8ac9e5bec5d2c018016bde 100644 (file)
@@ -1 +1 @@
-84d54eb35716174195ee7e5ac846f47308e5dbb0056e8ff568daa133860bab74
\ No newline at end of file
+d34caf3bb63d0512ea116a8c8c8343b76aa39441bd4b3e98231747a705b91d54
\ No newline at end of file
index 97e5fab4400382d3f46c3caec7463461e7e1e0ae..315719c02155763decfbac0020faac7dcb3841c5 100644 (file)
@@ -4389,6 +4389,10 @@ void ReportTable(
   }
   lineno = 1;
 
+  fprintf(out, 
+     "/* This file is automatically generated by Lemon from input grammar\n"
+     "** source file \"%s\". */\n", lemp->filename); lineno += 2;
+  
   /* The first %include directive begins with a C-language comment,
   ** then skip over the header comment of the template file
   */