Re: Latest acpica

Matthew Wilcox
2005-09-08T19:30:57Z

On Thu, Sep 08, 2005 at 12:23:50PM -0700, Moore, Robert wrote:
> Tell me what needs to change in order to make it compatible.

I've never looked into it in any detail. From the Debian description:

The behaviour of Flex has undergone a major change since version
2.5.4a; Flex scanners are now reenterant, you may have multiple
scanners in the same program with differing sets of defaults, and
they play nicer with modern C and C++ compilers. The Flip side is
that Flex no longer conforms to the POSIX lex behaviour, and the
scanners require conforming implementations when flex is used in ANSI
C mode. The package flex-old provides the older behaviour.

The GNU web page has some more detail:

http://www.gnu.org/software/flex/manual/html_chapter/flex_20.html#SEC20

and there's a bug showing exactly this problem being encountered here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=191942

The important bit is probably the quote:

The relevant change in the new flex is that it's no longer valid
to call unput() from the section after %%, only in actions or
in the %{ ... %} section.

HTH.

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf