Initialize the yyerrcnt variable in the lemon parser template. This has no

effect on SQLite itself.

FossilOrigin-Name: 45531654f7f5be3a08e9ee8598f14efe028245d8
This commit is contained in:
drh 2016-06-06 13:24:57 +00:00
parent 05a360913d
commit 4335ad05b8
3 changed files with 10 additions and 7 deletions

View File

@ -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

View File

@ -1 +1 @@
e106a77d85c20ae23ebe49a5acceeaffecb40fc2
45531654f7f5be3a08e9ee8598f14efe028245d8

View File

@ -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;