From: drh Date: Wed, 21 Feb 2007 16:44:33 +0000 (+0000) Subject: Add comments to the top of keywordhash.h. (CVS 3651) X-Git-Tag: version-3.6.10~2519 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d5359b9d824f3e9fc54e7734e3479507e827e13;p=thirdparty%2Fsqlite.git Add comments to the top of keywordhash.h. (CVS 3651) FossilOrigin-Name: 0aa9ed5bbfb756967a6f761c5fc2f274a5466e2d --- diff --git a/manifest b/manifest index 7304fd3615..e1cfe33094 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Enhance\sthe\sdocumentation\sto\sclarify\sthat\sSQLite\sis\snot\sreentrant\sthrough\nthe\sauthorization\scallback\sfunction.\s\sTicket\s#2242.\s(CVS\s3650) -D 2007-02-20T15:21:05 +C Add\scomments\sto\sthe\stop\sof\skeywordhash.h.\s(CVS\s3651) +D 2007-02-21T16:44:33 F Makefile.in 1fe3d0b46e40fd684e1e61f8e8056cefed16de9f F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -366,7 +366,7 @@ F tool/lempar.c fdc1672e97f72f72e76553038501da40fec9d251 F tool/memleak.awk 4e7690a51bf3ed757e611273d43fe3f65b510133 F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8 F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf -F tool/mkkeywordhash.c 966af86ab29e2d152eebd40dfd9c8f45b3f0716b +F tool/mkkeywordhash.c eb7cd7244b9725e9e77270d0572de8b22a96e83a F tool/mkopts.tcl 66ac10d240cc6e86abd37dc908d50382f84ff46e x F tool/omittest.tcl e6b3d6a1285f9813bc1dea53bb522b4b72774710 F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c @@ -432,7 +432,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 309f2de62f34160fa24a5e1a3de0d653aabfb52b -R ec1e53d4484168716399300b8217329e +P b18a758a8fbd4b286ae3475af26f290d8cd583f0 +R 566ea5b1e0dfed2e2d241f4a3621febf U drh -Z bf338e8653240f5646718738c1dd0f1f +Z 7bc0929710516af4b73ecceb079cfb42 diff --git a/manifest.uuid b/manifest.uuid index c653c756aa..5084636e11 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -b18a758a8fbd4b286ae3475af26f290d8cd583f0 \ No newline at end of file +0aa9ed5bbfb756967a6f761c5fc2f274a5466e2d \ No newline at end of file diff --git a/tool/mkkeywordhash.c b/tool/mkkeywordhash.c index a1df7827cd..680d406243 100644 --- a/tool/mkkeywordhash.c +++ b/tool/mkkeywordhash.c @@ -7,6 +7,25 @@ #include #include +/* +** A header comment placed at the beginning of generated code. +*/ +static const char zHdr[] = + "/***** This file contains automatically generated code ******\n" + "**\n" + "** The code in this file has been automatically generated by\n" + "**\n" + "** $Header: /home/drh/sqlite/trans/cvs/sqlite/sqlite/tool/mkkeywordhash.c,v 1.25 2007/02/21 16:44:33 drh Exp $\n" + "**\n" + "** The code in this file implements a function that determines whether\n" + "** or not a given identifier is really an SQL keyword. The same thing\n" + "** might be implemented more directly using a hand-written hash table.\n" + "** But by using this automatically generated code, the size of the code\n" + "** is substantially reduced. This is important for embedded applications\n" + "** on platforms with limited memory.\n" + "*/\n" +; + /* ** All the keywords of the SQL language are stored as in a hash ** table composed of instances of the following structure. @@ -410,6 +429,7 @@ int main(int argc, char **argv){ } /* Begin generating code */ + printf("%s", zHdr); printf("/* Hash score: %d */\n", bestCount); printf("static int keywordCode(const char *z, int n){\n");