Date: Mon, 5 Nov 2001 14:33:23 -0500 (EST) From: Matthew Emmerton <matt@gsicomp.on.ca> To: "David O'Brien" <obrien@FreeBSD.ORG> Cc: Poul-Henning Kamp <phk@FreeBSD.ORG>, hackers@FreeBSD.ORG Subject: Re: Idea for project: Make cpp do unifdef service... Message-ID: <Pine.BSF.4.21.0111051429570.81985-100000@xena.gsicomp.on.ca> In-Reply-To: <20011105100711.A75324@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I looked into this over the weekend. Although it's fairly trivial to make it understand things like '#if defined(FOO)', it's somewhat more tricky to understand something like '#if ((!defined(FOO) && defined(BAR)) || defined(FUBAR))', which I believe was the functionality that phk wanted, and why he requested it of cpp rather than unifdef. -- Matthew Emmerton || matt@gsicomp.on.ca GSI Computer Services || http://www.gsicomp.on.ca On Mon, 5 Nov 2001, David O'Brien wrote: > On Sat, Nov 03, 2001 at 10:15:00AM +0100, Poul-Henning Kamp wrote: > > In particular it doesn't understand lines like: > > #if defined(foo) || defined(bar) > > > > Is there a volunteer who would attempt to add the unifdef functionality > > to cpp ? > > Concidering that cpp is vendor software, there would need to be a strong > case for it. What is wrong with just fixing unifdef(1) itself? > > -- > -- David (obrien@FreeBSD.org) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0111051429570.81985-100000>