Don't lose top specpdl entry when memory is exhausted.
commit5e301d7651c0691bb2bc7f3fbe711fdbe26ac471
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jul 2013 00:24:38 +0000 (12 17:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jul 2013 00:24:38 +0000 (12 17:24 -0700)
treeee4962eb5ebb86a5de385d554b854864b9a53f21
parentc04bbd85c9b5a7db4b7fb62e741563aa848dce67
Don't lose top specpdl entry when memory is exhausted.

* eval.c (grow_specpdl): Increment specpdl top by 1 and check for
specpdl overflow here, to simplify callers; all callers changed.
Always reserve an unused entry at the stack top; this avoids
losing the top entry's information when memory is exhausted.
src/ChangeLog
src/eval.c