vern@surf.ee.lbl.gov (Vern Paxson) (08/30/90)
This patch fixes a serious bug in yymore(). Vern *** Patch-5/Changes Thu Aug 16 17:22:16 1990 --- Patch-6/Changes Wed Aug 29 12:11:34 1990 *************** *** 1,3 **** --- 1,11 ---- + Changes between 2.3 Patch #6 (29Aug90) and 2.3 Patch #5: + + - Fixed a serious bug in yymore() which basically made it + completely broken. Thanks goes to Jean Christophe of + the Nethack development team for finding the problem + and passing along the fix. + + Changes between 2.3 Patch #5 (16Aug90) and 2.3 Patch #4: - An up-to-date version of initscan.c so "make test" will *** Original/gen.c Wed Jun 27 21:44:28 1990 --- Patch-6/gen.c Wed Aug 29 12:11:25 1990 *************** *** 28,34 **** #ifndef lint static char rcsid[] = ! "@(#) $Header: /usr/fsys/odin/a/vern/flex/RCS/gen.c,v 2.9 90/06/27 23:48:22 vern Exp $ (LBL)"; #endif #include "flexdef.h" --- 28,34 ---- #ifndef lint static char rcsid[] = ! "@(#) $Header: /usr/helios/u0/vern/flex/RCS/gen.c,v 2.10 90/08/29 12:11:13 vern Exp $ (LBL)"; #endif #include "flexdef.h" *************** *** 1198,1203 **** --- 1198,1204 ---- if ( yymore_used ) { + indent_puts( "yy_more_len = 0;" ); indent_puts( "yy_doing_yy_more = yy_more_flag;" ); indent_puts( "if ( yy_doing_yy_more )" ); indent_up(); -- Vern Paxson vern@csam.lbl.gov [lbl-csam.arpa] Real Time Systems ucbvax!csam.lbl.gov!vern Lawrence Berkeley Laboratory (415) 486-6580