From owner-freebsd-hackers Fri Apr 26 9: 0:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 6F20337B41F for ; Fri, 26 Apr 2002 09:00:13 -0700 (PDT) Received: from storm.FreeBSD.org.uk (uucp@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.2/8.12.2) with ESMTP id g3QFxp1R074668; Fri, 26 Apr 2002 16:59:51 +0100 (BST) (envelope-from mark@grimreaper.grondar.org) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.12.2/8.12.2/Submit) with UUCP id g3QFxpc1074667; Fri, 26 Apr 2002 16:59:51 +0100 (BST) Received: from grimreaper.grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.3/8.12.3) with ESMTP id g3QFwWoI001525; Fri, 26 Apr 2002 16:58:32 +0100 (BST) (envelope-from mark@grimreaper.grondar.org) Message-Id: <200204261558.g3QFwWoI001525@grimreaper.grondar.org> To: Tony Finch Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: improved unifdef(1) References: <20020426152250.B18410@chiark.greenend.org.uk> In-Reply-To: <20020426152250.B18410@chiark.greenend.org.uk> ; from Tony Finch "Fri, 26 Apr 2002 15:22:50 BST." Date: Fri, 26 Apr 2002 16:58:32 +0100 From: Mark Murray 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 > The unifdef in the system is not suited to heavyweight tasks like > (say) xterm's main.c or wu-ftpd for a number of reasons: > > * it has a very low limit on the number of command-line arguments > that it can cope with (100) -- I've sumbitted PR#37454 about this. > > * it doesn't have the slightest clue about #elif > > * it doesn't attempt to handle #if I am in violent agreement :-). > Because I needed an unifdef with a bit more oomph and couldn't > find a better one, I have done my own tune-up job on the BSD > one, starting from the NetBSD sources (which seemed to have > a mostly-superset of the changes made by the other BSDs). > It's available from . > The detailed change list is below. Note that only a very > limited subset of #if expressions are understood, involving > just defined(), !, &&, ||, and brackets. > > If anyone is interested I'd appreciate some testing, and it > would be nice to get it committed eventually. Ooooh! :-) Yes please! I'll look at this. M -- o Mark Murray \_ O.\_ Warning: this .sig is umop ap!sdn #text/plain; name=cv.doc [Mark Murray CV Plain Text] cv.doc #application/octet-stream; name=cv.pdf [Mark Murray CV PDF] cv.pdf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message