From owner-freebsd-hackers Mon Nov 5 11:41:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by hub.freebsd.org (Postfix) with ESMTP id A4B7D37B416; Mon, 5 Nov 2001 11:41:37 -0800 (PST) Received: from xena.gsicomp.on.ca ([216.209.80.3]) by tomts12-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011105194136.SJUJ2489.tomts12-srv.bellnexxia.net@xena.gsicomp.on.ca>; Mon, 5 Nov 2001 14:41:36 -0500 Received: from localhost (matt@localhost) by xena.gsicomp.on.ca (8.11.1/8.11.1) with ESMTP id fA5JXNm82003; Mon, 5 Nov 2001 14:33:24 -0500 (EST) (envelope-from matt@xena.gsicomp.on.ca) Date: Mon, 5 Nov 2001 14:33:23 -0500 (EST) From: Matthew Emmerton To: "David O'Brien" Cc: Poul-Henning Kamp , hackers@FreeBSD.ORG Subject: Re: Idea for project: Make cpp do unifdef service... In-Reply-To: <20011105100711.A75324@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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