[Top][All Lists]

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

Re: [PATCH] {yacc-work} yacc: extension of headers modelled after extens

From: Stefano Lattarini
Subject: Re: [PATCH] {yacc-work} yacc: extension of headers modelled after extension of sources
Date: Mon, 14 Mar 2011 16:59:03 +0100
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

Hello automakers.


On Friday 28 January 2011, Stefano Lattarini wrote:
> Hello automakers.  The reasons of this patch should be
> explained in details in the ChangeLog entry (see below).
> OK for the 'yacc-work' branch?
> Regards,
>    Stefano
> -*-*-
> With this change, if '-d' is in *YFLAGS, a yacc input file named
> foo.y++ will cause a foo.h++ header to be generated, instead of a
> foo.h header.  Similarly for foo.ypp, foo.yxx and foo.yy.
> This way, the name of the files generated by an automake-created
> `ylwrap' invocation should be consistent with those generated by
> a `bison -o' call.
> Related to automake bug#7648 and PR automake/491.
> * lib/am/ (am__yacc_c2h): New internal variable.
> (?GENERIC?%EXT%%DERIVED-EXT%, ?!GENERIC?%OBJ%): Get the name of
> the header dynamically at make runtime, so that its extension is
> modelled after the extension of the source.
> * (lang_yacc_target_hook): Adjust the calculation of
> `$header' accordingly.
> * tests/yacc-cxx.test: New test.
> * tests/yacc-d-cxx.test: Likewise.
> * tests/yacc-weirdnames.test: Likewise.
> * tests/yacc-basic.test: Update comments.
> * tests/yacc-d-basic.test: Likewise.
> * tests/yaccpp.test: Updated and extended.
> * tests/ (TESTS): Update.

Ping on this?

I will push in 72 hours if there is no objection.


reply via email to

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