bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make token stacks to work with c++ compiler


From: Coe, Rich (MED)
Subject: make token stacks to work with c++ compiler
Date: Wed, 19 Mar 2003 10:23:35 -0600


The following patch reverts a change which was made sometime after 
bison-1.28.  Without this patch, when the bison output is compiled 
with a c++ compiler, it prevents the token stack from growing beyond its
initial size. 

This change is made against 1.875a, which was (at the time) 
the latest available for download.

Tested on gcc-2.95.3 and gcc-3.2, with all tests passing.

*** bison-1.875a/data/yacc.c    2003-01-22 00:38:32.000000000 -0600
--- bison-1.875a-1/data/yacc.c  2003-03-19 09:58:14.000000000 -0600
***************
*** 247,254 ****
  
  
  #if (! defined (yyoverflow) \
!      && (! defined (__cplusplus) \
!        || (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL)))
  
  /* A type that is properly aligned for any stack member.  */
  union yyalloc
--- 247,253 ----
  
  
  #if (! defined (yyoverflow) \
!      && (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL))
  
  /* A type that is properly aligned for any stack member.  */
  union yyalloc


--
Rich Coe                address@hidden
General Electric Medical Systems




reply via email to

[Prev in Thread] Current Thread [Next in Thread]