Fix to the lemon parser template when YYSTACKSIZE is 0 (dynamically

allocated stack space). (CVS 5919)

FossilOrigin-Name: 00ccc5967f8912961029a3513445c5e2ac713560
This commit is contained in:
drh 2008-11-18 23:25:54 +00:00
parent 50128aea6a
commit 4c6517848f
3 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,5 @@
C Add\ssupport\sfor\sSQLITE_NO_SYNC\sfor\sOS/2,\stoo.\s(CVS\s5918)
D 2008-11-18T23:03:40
C Fix\sto\sthe\slemon\sparser\stemplate\swhen\sYYSTACKSIZE\sis\s0\s(dynamically\nallocated\sstack\sspace).\s(CVS\s5919)
D 2008-11-18T23:25:55
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 6cbc7db84c23804c368bc7ffe51367412212d7b2
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -636,7 +636,7 @@ F tool/genfkey.README 080ca2269f727fcf14c8e76d52e85d157e3a8e9a
F tool/genfkey.c e1b9c93da828db10c1109c7b4fa611aec8adc407
F tool/genfkey.test 182829596fb15785b94b2493c5f735b847d91076
F tool/lemon.c 6cb39632ef3bfec2cea8f81b4d7f63c09fe12802
F tool/lempar.c 770dc64b74429daf9611676f43bfbd7c1bed0152
F tool/lempar.c 9ef6809804f9066fa94a0bdc02224ce015951843
F tool/memleak.awk 4e7690a51bf3ed757e611273d43fe3f65b510133
F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8
F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf
@ -658,7 +658,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P f4411f0c8075adc8a37002ac7ad958ff3158c0c0
R d6955add2239a6f2f254f4336539162f
U pweilbacher
Z a712bebfcb26c6919d0c8a2c12bc726c
P 2990b5b8e7bd8f91af24e5a606666077855ae283
R d14041d00b154aef89232b6b6d2d34f2
U drh
Z 887cd197809b3ccb7d5ef687ab5d5c82

View File

@ -1 +1 @@
2990b5b8e7bd8f91af24e5a606666077855ae283
00ccc5967f8912961029a3513445c5e2ac713560

View File

@ -266,6 +266,8 @@ void *ParseAlloc(void *(*mallocProc)(size_t)){
pParser->yyidxMax = 0;
#endif
#if YYSTACKDEPTH<=0
pParser->yystack = NULL;
pParser->yystksz = 0;
yyGrowStack(pParser);
#endif
}