GNU bug report logs - #7648
ylwrap appears not to support bison's lalr1.cc skeleton

Previous Next

Package: automake;

Reported by: James Bostock <james.bostock <at> gmail.com>

Date: Wed, 15 Dec 2010 18:45:02 UTC

Severity: normal

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: automake-patches <at> gnu.org
Cc: 7648 <at> debbugs.gnu.org, James Bostock <james.bostock <at> gmail.com>
Subject: bug#7648: [PATCH] {yacc-work} yacc: extension of headers modelled after extension of sources
Date: Sun, 10 Apr 2011 10:26:40 +0200
Reference:
 <http://lists.gnu.org/archive/html/automake-patches/2011-01/msg00306.html>

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/yacc.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.
> * automake.in (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/Makefile.am (TESTS): Update.
> 
This patch has been applied in the meantime, but it lacked NEWS and
documentation updates.  I will post them soonish in two different
patches.

Sorry for the noise,
  Stefano




This bug report was last modified 12 years and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.