]> git.saurik.com Git - bison.git/commit
(YYSTACK_REALLOC): Remove.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Nov 2001 02:54:54 +0000 (02:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Nov 2001 02:54:54 +0000 (02:54 +0000)
commit600f9b0cccca08ac972d0bbea0d99352b69dcc88
treebf771696df0e55455519b3f1d7f4c7b21248f2c9
parent04a76783abc8d92caa37bfd173a227ffa304ce90
(YYSTACK_REALLOC): Remove.
(YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
(YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
New macros.
(union yyalloc): New type.
(__yy_memcpy): Last arg is size_t, not unsigned int, to remove
an arbitrary restriction on hosts where size_t is wider than int.

(yyparse): Don't dump core if alloca or malloc fails; instead, report
a parser stack overflow.  Allocate just one block of memory for all
three stacks, instead of allocating three blocks; this typically is
faster and reduces fragmentation.

Do not limit the number of items in the stack to a value that fits
in 'int', as this is an arbitrary limit on hosts with 64-bit
size_t and 32-bit int.
src/bison.simple