Date: Fri, 26 Apr 2002 16:58:32 +0100 From: Mark Murray <mark@grondar.za> To: Tony Finch <dot@dotat.at> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: improved unifdef(1) Message-ID: <200204261558.g3QFwWoI001525@grimreaper.grondar.org> In-Reply-To: <20020426152250.B18410@chiark.greenend.org.uk> ; from Tony Finch <dot@dotat.at> "Fri, 26 Apr 2002 15:22:50 BST." References: <20020426152250.B18410@chiark.greenend.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <http://dotat.at/prog/misc/unifdef.c>. > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204261558.g3QFwWoI001525>