From: drh Date: Mon, 6 Jun 2016 13:24:57 +0000 (+0000) Subject: Initialize the yyerrcnt variable in the lemon parser template. This has no X-Git-Tag: version-3.14.0~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4335ad05b893cc3ab48796e746dee309a823a7d8;p=thirdparty%2Fsqlite.git Initialize the yyerrcnt variable in the lemon parser template. This has no effect on SQLite itself. FossilOrigin-Name: 45531654f7f5be3a08e9ee8598f14efe028245d8 --- diff --git a/manifest b/manifest index eca2ed0fc6..e299eaa5ba 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Small\sperformance\sboost\sand\ssize\sdecrease\sin\ssqlite3BtreeMovetoUnpacked(). -D 2016-06-06T01:54:20.047 +C Initialize\sthe\syyerrcnt\svariable\sin\sthe\slemon\sparser\stemplate.\s\sThis\shas\sno\neffect\son\sSQLite\sitself. +D 2016-06-06T13:24:57.848 F Makefile.in 7321ef0b584224781ec7731408857fa8962c32cc F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 831503fc4e988f571590af1405645fff121b5f1e @@ -1428,7 +1428,7 @@ F tool/genfkey.README cf68fddd4643bbe3ff8e31b8b6d8b0a1b85e20f4 F tool/genfkey.test 4196a8928b78f51d54ef58e99e99401ab2f0a7e5 F tool/getlock.c f4c39b651370156cae979501a7b156bdba50e7ce F tool/lemon.c 09a96bed19955697a5e20c49ad863ec2005815a2 -F tool/lempar.c f06b7e98a6b7efb404375b6f4a0c71c85faa1512 +F tool/lempar.c 66a16b5e00fefff278b9e6e3aae14037c0246427 F tool/libvers.c caafc3b689638a1d88d44bc5f526c2278760d9b9 F tool/loadfts.c c3c64e4d5e90e8ba41159232c2189dba4be7b862 F tool/logest.c 11346aa019e2e77a00902aa7d0cabd27bd2e8cca @@ -1500,7 +1500,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 5fb0c35459cf7a8662bf8cd84ac345f6fafda6cc -R 6c89b96783c3d80d21140f4fa1e28558 +P e106a77d85c20ae23ebe49a5acceeaffecb40fc2 +R 44ddd09e002da6e14637db41834f8d1e U drh -Z fcd58109b062d41d087b764fb431a88f +Z 4d4207228c1d0bca23b591b2a4bc29d5 diff --git a/manifest.uuid b/manifest.uuid index 41857ac25e..a22289fa3a 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -e106a77d85c20ae23ebe49a5acceeaffecb40fc2 \ No newline at end of file +45531654f7f5be3a08e9ee8598f14efe028245d8 \ No newline at end of file diff --git a/tool/lempar.c b/tool/lempar.c index 1258c549de..5b6e6d77d3 100644 --- a/tool/lempar.c +++ b/tool/lempar.c @@ -339,6 +339,9 @@ void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE)){ pParser->yystack = &pParser->yystk0; pParser->yystksz = 1; } +#endif +#ifndef YYNOERRORRECOVERY + pParser->yyerrcnt = -1; #endif pParser->yytos = pParser->yystack; pParser->yystack[0].stateno = 0;