head 1.2; access; symbols pkgsrc-2015Q4:1.1.0.48 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.46 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.44 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.42 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.40 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.38 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.36 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.34 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.32 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.30 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.28 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.26 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.24 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.22 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.20 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.18 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.16 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.14 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.12 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.10 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.8 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.6 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.4 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2016.01.07.12.05.31; author wiz; state dead; branches; next 1.1; commitid l13ip4zYn0BWLZPy; 1.1 date 2010.01.31.17.10.08; author spz; state Exp; branches; next ; desc @@ 1.2 log @Update flex to 2.6.0. While here, send patches upstream. Changes: * version 2.6.0 released 2015-11-17 ** User Visible Changes *** C++ scanners now use references instead of pointers. See the manual for details. *** A number of compiler warnings were addressed, so flex generated scanners should be quieter under compiler warning scenarios. *** Allow error reporting routines to accept varying number of arguments *** Removed deprecated 'register' storage class specifier *** Changeed output formats from octal to hexadecimal *** check limits before using array index cclp; resolves sf-166 *** Suppress clang warning about empty @@param paragraph; resolves sf#158 *** Fixed malloc/realloc replacement, resolves sf bug#151. *** Adjusted buffer sizes on ia64. *** various documentation and code clean up fixes: resolves sf bugs #167, #168, among other patches. ** Flex Internals *** flex is now organized into subdirectories. This keeps the tree neater at the top level and puts like things near each other and unlike things away from each other. *** The test suite has been reorganized and is now run with the parallel test suite harness from automake. *** Cleaned up the automake parts of the build system to better reflect what automake does on its own. Also added a call to libtoolize in autogen.sh because autoreconf gets confused without a prior run of libtoolize. *** po/Makefile now includes a rule to fetch the latest translations from the translation project. "make -f po/Makefile getpo" from the top level of the flex tree will fetch the files. *** New da translation from the translation project @ text @$NetBSD: patch-ad,v 1.1 2010/01/31 17:10:08 spz Exp $ --- filter.c.orig 2007-03-07 21:50:24.000000000 +0000 +++ filter.c @@@@ -164,7 +164,8 @@@@ bool filter_apply_chain (struct filter * if (dup2 (pipes[0], fileno (stdin)) == -1) flexfatal (_("dup2(pipes[0],0)")); close (pipes[0]); - fseek (stdin, 0, SEEK_CUR); + ungetc(' ', stdin); /* still an evil hack, but one that works better */ + (void)fgetc(stdin); /* on NetBSD than the fseek attempt does */ /* run as a filter, either internally or by exec */ if (chain->filter_func) { @ 1.1 log @The comment above the code patch in the new patch file says: "This is a Hail Mary situation. It seems to work." It doesn't reliably on NetBSD-5 or -current; namely, it makes flex spit out a "Broken pipe" when presented with an input file on stdin. Finding the problem area and suggesting a workaround kudos mlelstv. There are better ways to fix it properly, which will be employed in Due Time. @ text @d1 1 a1 1 $NetBSD$ @