From: drh Date: Tue, 1 Sep 2020 12:26:55 +0000 (+0000) Subject: In the Lemon output, add a prefix comment that explains that the output file X-Git-Tag: version-3.34.0~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=512aa78ca28981229858e0fd98aaba1158b6e8af;p=thirdparty%2Fsqlite.git In the Lemon output, add a prefix comment that explains that the output file is automatically generated and shows the name of the source file. FossilOrigin-Name: d34caf3bb63d0512ea116a8c8c8343b76aa39441bd4b3e98231747a705b91d54 --- diff --git a/manifest b/manifest index 37b2099bb2..c80c5cffe6 100644 --- 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 diff --git a/manifest.uuid b/manifest.uuid index 6136c16e36..12efad1e94 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -84d54eb35716174195ee7e5ac846f47308e5dbb0056e8ff568daa133860bab74 \ No newline at end of file +d34caf3bb63d0512ea116a8c8c8343b76aa39441bd4b3e98231747a705b91d54 \ No newline at end of file diff --git a/tool/lemon.c b/tool/lemon.c index 97e5fab440..315719c021 100644 --- a/tool/lemon.c +++ b/tool/lemon.c @@ -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 */