[PATCH libxkbcommon 0/2] Use flex and bison features

Gaetan Nadon memsize at videotron.ca
Fri Feb 24 07:16:39 PST 2012


On 12-02-23 07:58 PM, Ran Benita wrote:
> These patches break yacc and lex compatibility mainly for removing the
> global state from the parser, which I think is expected given that this
> is a library.
>
> This is my first patch to this list, so a few disclaimers:
> - I hope it's the right list.
Yes
> - I couldn't figure out the coding style (there seems to be use of
>   *all* of them...), so I just tried to match the surroundings.
> - I've been using libxkbcommon for some time and I have some more
>   patches laying around. I can send them too if all is well.
>
> Thanks,
> Ran
These look perfect to me. I build them on Linux with bison 2.4.1 and
flex 2.5.35.
I don't know if there could be differences on other platforms such as
Solaris, *BSD MAC, it does not look like there would be any bison/flex
specific features being used.

The title of the e-mail makes it sound like you are using features that
are specific to flex & bison as opposed to lex & yacc. You are also
saying you are breaking compatibility with lex & yacc, I am confused. I
suppose you are aware that this library builds on multiple platforms
with a variety of scanner/lexer. We document the tools requirements in
http://www.x.org/wiki/ModularDevelopersGuide#Required_Tools, but it is
not very clear in this case.

One should run 'make maintainer-clean' to remove the old generated code.
Ping me if you need someone to push the patches after review.

Acked-by: Gaetan Nadon<memsize at videotron.ca>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>



More information about the xorg-devel mailing list