[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison/src bison.simple
From: |
Paul Eggert |
Subject: |
bison/src bison.simple |
Date: |
Thu, 29 Nov 2001 21:54:54 -0500 |
CVSROOT: /cvsroot/bison
Module name: bison
Changes by: Paul Eggert <address@hidden> 01/11/29 21:54:54
Modified files:
src : bison.simple
Log message:
(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.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/src/bison.simple.diff?tr1=1.79&tr2=1.80&r1=text&r2=text